Sat, 12 Feb 2022 21:24:43 +0100
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
3 | 1 | #ifndef _MAINWINDOW_H |
2 | #define _MAINWINDOW_H | |
3 | ||
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
4 | #include "InventorySuppliers.h" |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
5 | |
3 | 6 | #include <QMainWindow> |
7 | #include <QStandardItemModel> | |
8 | #include <QMenu> | |
9 | #include <QToolButton> | |
10 | ||
11 | namespace Ui { | |
12 | class MainWindow; | |
13 | } | |
14 | ||
15 | class MainWindow : public QMainWindow | |
16 | { | |
4 | 17 | Q_OBJECT |
3 | 18 | |
19 | public: | |
4 | 20 | explicit MainWindow(QWidget *parent = 0); |
21 | ~MainWindow(); | |
3 | 22 | |
23 | private slots: | |
4 | 24 | void on_actionExit_triggered(); |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
25 | void on_actionSuppliers_triggered(); |
4 | 26 | void on_actionAbout_triggered(); |
3 | 27 | |
28 | public slots: | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
29 | void fromInventorySuppliers(); |
3 | 30 | |
31 | private: | |
32 | Ui::MainWindow *ui; | |
6
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
33 | |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
34 | // Keep pointers to new windows. |
f8474f2c5db9
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
35 | InventorySuppliers *InventorySuppliersWindow; |
3 | 36 | }; |
37 | ||
38 | #endif |