src/Setup.h

changeset 41
dc4b659a320b
parent 16
a5d8e783a7b0
child 78
3a6cba2dd05d
equal deleted inserted replaced
40:ccdc1dbc0ebb 41:dc4b659a320b
1 #ifndef _SETUP_H 1 #ifndef _SETUP_H
2 #define _SETUP_H 2 #define _SETUP_H
3 3
4 #include <QDialog> 4 #include <QDialog>
5 #include <QFileDialog>
6
7 QT_BEGIN_NAMESPACE
8 class QLabel;
9 QT_END_NAMESPACE
5 10
6 namespace Ui { 11 namespace Ui {
7 class Setup; 12 class Setup;
8 } 13 }
9 14
12 Q_OBJECT 17 Q_OBJECT
13 18
14 public: 19 public:
15 explicit Setup(QWidget *parent = nullptr); 20 explicit Setup(QWidget *parent = nullptr);
16 ~Setup(); 21 ~Setup();
22 bool loadFile(const QString &);
17 23
18 signals: 24 signals:
19 void firstWindow(); 25 void firstWindow();
20 26
21 private slots: 27 private slots:
28 void on_openButton_clicked();
22 void on_quitButton_clicked(); 29 void on_quitButton_clicked();
23 void on_saveButton_clicked(); 30 void on_saveButton_clicked();
24 void is_changed(); 31 void is_changed();
25 32
26 private: 33 private:
27 Ui::Setup *ui; 34 Ui::Setup *ui;
35 QByteArray logoByteArray;
36 QImage image;
37 double scaleFactor = 1;
38
39 void setImage(const QImage &newImage);
28 bool fieldIsChanged = false; 40 bool fieldIsChanged = false;
29 }; 41 };
30 42
31 #endif 43 #endif

mercurial