You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
601 B
32 lines
601 B
2 years ago
|
#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;
|
||
|
};
|