Added the type role to the EditItemDialog.

This commit is contained in:
2026-03-02 08:43:21 +01:00
parent 385dc7ca76
commit d56af7231c
2 changed files with 23 additions and 8 deletions

View File

@ -1,7 +1,9 @@
#ifndef ITEMDETAILMAPPER_H
#define ITEMDETAILMAPPER_H
#include <QComboBox>
#include <QDataWidgetMapper>
#include <QStringListModel>
#include <QWidget>
class QLabel;
@ -54,6 +56,10 @@ class ItemDetailMapper : public QWidget {
QLabel* m_infoLabel = nullptr;
QLineEdit* m_infoEdit = nullptr;
QLabel* m_typeLabel;
QComboBox* m_typeBox;
QStringListModel* m_typeModel = nullptr;
QLabel* m_amountLabel = nullptr;
QSpinBox* m_amountBox = nullptr;