An item can be added to the model with accepting the NewItemDialog.

This commit is contained in:
2025-12-08 13:26:42 +01:00
parent 928b795f4e
commit ea75e57dbf
4 changed files with 38 additions and 7 deletions

View File

@ -3,15 +3,25 @@
#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;