Sat, 21 Jan 2023 14:27:10 +0100
The images tab now looks complete. Made the left side (thumbnails) a bit smaller. The right side of the screen now shows the current image and all data that belongs to that. After a new image is added, reload the images. Implemented delete image.
#ifndef _PRODINPROD_H #define _PRODINPROD_H #include <QDialog> #include <QtWidgets/QGridLayout> #include <QtWidgets/QGroupBox> #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QHeaderView> #include <QtWidgets/QPushButton> #include <QtWidgets/QTableWidget> namespace Ui { class ProdInprod; } class ProdInprod : public QDialog { Q_OBJECT public: explicit ProdInprod(QWidget *parent = nullptr); ~ProdInprod(); signals: void setStatus(QString); private slots: void on_editButton_clicked(); void on_insertButton_clicked(); void refreshTable(void); private: QGridLayout *gridLayout; QTableWidget *tableInprod; QGroupBox *groupBox; QHBoxLayout *horizontalLayout; QPushButton *quitButton; QPushButton *insertButton; void edit(int recno); }; #endif