#ifndef NEWITEMDIALOG_H #define NEWITEMDIALOG_H #include "abstractdialog.h" class QDoubleSpinBox; class QLineEdit; class QSpinBox; class QLabel; class NewItemDialog : public AbstractDialog { Q_OBJECT public: NewItemDialog(QWidget* parent = nullptr); void createContent() override; signals: void addItems(const QByteArray& jsonDoc); public slots: void accept() override; // void reject() override; private: QLabel* m_nameLabel = nullptr; QLineEdit* m_nameEdit = nullptr; QLabel* m_descriptionLabel = nullptr; QLineEdit* m_descriptionEdit = nullptr; QLabel* m_infoLabel = nullptr; QLineEdit* m_infoEdit = nullptr; QLabel* m_amountLabel = nullptr; QSpinBox* m_amountBox = nullptr; QLabel* m_factorLabel = nullptr; QDoubleSpinBox* m_factorBox = nullptr; }; #endif // NEWITEMDIALOG_H