Fri, 20 Jan 2023 16:44:08 +0100
Added more buttons to the images tab. Load images from the database and display thumbnails added. Added support for jpeg files. Rename pictures in the database to .png. Added temporary images_list, images_count and images_current variables to the product record.
228 | 1 | #ifndef _PRODONNAME_H |
2 | #define _PRODONNAME_H | |
3 | ||
4 | #include <QDialog> | |
5 | #include <QtWidgets/QGridLayout> | |
6 | #include <QtWidgets/QGroupBox> | |
7 | #include <QtWidgets/QHBoxLayout> | |
8 | #include <QtWidgets/QHeaderView> | |
9 | #include <QtWidgets/QPushButton> | |
10 | #include <QtWidgets/QTableWidget> | |
11 | ||
12 | namespace Ui { | |
13 | class ProdOnName; | |
14 | } | |
15 | ||
16 | class ProdOnName : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit ProdOnName(QWidget *parent = nullptr); | |
22 | ~ProdOnName(); | |
23 | ||
24 | signals: | |
25 | void setStatus(QString); | |
26 | ||
27 | private slots: | |
28 | void on_editButton_clicked(); | |
29 | void refreshTable(void); | |
30 | ||
31 | private: | |
32 | QGridLayout *gridLayout; | |
33 | QTableWidget *tableOnName; | |
34 | QGroupBox *groupBox; | |
35 | QHBoxLayout *horizontalLayout; | |
36 | QPushButton *quitButton; | |
37 | QPushButton *insertButton; | |
38 | ||
39 | void edit(int recno); | |
40 | }; | |
41 | ||
42 | #endif |