mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-08 17:13:45 +08:00
81da8ac9f4
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
32 lines
601 B
C++
32 lines
601 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
|
|
#include "common/params.h"
|
|
|
|
class ExperimentalModeButton : public QPushButton {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExperimentalModeButton(QWidget* parent = 0);
|
|
|
|
signals:
|
|
void openSettings(int index = 0, const QString &toggle = "");
|
|
|
|
private:
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
Params params;
|
|
bool experimental_mode;
|
|
int img_width = 100;
|
|
int horizontal_padding = 30;
|
|
QPixmap experimental_pixmap;
|
|
QPixmap chill_pixmap;
|
|
QLabel *mode_label;
|
|
QLabel *mode_icon;
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
};
|