Wed, 25 Jan 2023 13:11:51 +0100
Some extra debug info en some removed for the product images. Clear picmap area if no pixmaps are left. Block pictype_changed and piccomment_changed if there are no pictures, prevents segfault.
#ifndef _INVENTORYMISCS_H #define _INVENTORYMISCS_H #include <QDialog> #include <QtWidgets/QGridLayout> #include <QtWidgets/QGroupBox> #include <QtWidgets/QHBoxLayout> #include <QtWidgets/QHeaderView> #include <QtWidgets/QPushButton> #include <QtWidgets/QTableWidget> namespace Ui { class InventoryMiscs; } class InventoryMiscs : public QDialog { Q_OBJECT public: explicit InventoryMiscs(QWidget *parent = nullptr); ~InventoryMiscs(); signals: void setStatus(QString); private slots: void on_insertButton_clicked(); void on_editButton_clicked(); void on_exportButton_clicked(); void refreshTable(void); private: QGridLayout *gridLayout; QTableWidget *tableMiscs; QGroupBox *groupBox; QHBoxLayout *horizontalLayout; QPushButton *quitButton; QPushButton *exportButton; QPushButton *insertButton; void edit(int recno); }; #endif