working on something

This commit is contained in:
Rasmus Karlsson
2017-07-02 12:36:50 +02:00
parent f2ef14422b
commit 3c2ee99731
9 changed files with 116 additions and 99 deletions
+9 -8
View File
@@ -11,13 +11,11 @@ class SettingsDialog;
class SettingsDialogTab : public QWidget
{
Q_OBJECT
Q_PROPERTY(bool getSelected READ getSelected WRITE setSelected NOTIFY selectedChanged)
public:
SettingsDialogTab(SettingsDialog *_dialog, QString _label, QString imageRes);
SettingsDialogTab(SettingsDialog *dialog, QString _label, QString imageFileName);
void setSelected(bool selected);
bool getSelected() const;
QWidget *getWidget();
void setWidget(QWidget *widget);
@@ -28,13 +26,16 @@ private:
void paintEvent(QPaintEvent *);
void mousePressEvent(QMouseEvent *event);
QWidget *_widget;
QString _label;
QImage _image;
struct {
QWidget *widget;
QString labelText;
QImage image;
} ui;
SettingsDialog *_dialog;
// Parent settings dialog
SettingsDialog *dialog;
bool _selected;
bool selected = false;
};
} // namespace widgets