Fri, 20 May 2022 20:43:33 +0200
Implemented the tasting tab. On the generic tab, show the ingredients check or the read only prompt on the same place depending on the product stage. Fixed the yeasts ingredients in stock check. Reordered the tab order of all edit fields. It looks like this module is ready and needs testing.
#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 refreshTable(void); private: QGridLayout *gridLayout; QTableWidget *tableInprod; QGroupBox *groupBox; QHBoxLayout *horizontalLayout; QPushButton *quitButton; QPushButton *insertButton; void edit(int recno); }; #endif