The "factor" value can be inserted as a floating point.

This commit is contained in:
2025-12-08 13:28:01 +01:00
parent ea75e57dbf
commit c51c06ba50
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ void NewItemDialog::createContent() {
m_amountLabel->setBuddy(m_amountBox);
m_factorLabel = new QLabel("&Factor");
m_factorBox = new QSpinBox();
m_factorBox = new QDoubleSpinBox();
m_factorBox->setMaximum(1000);
m_factorLabel->setBuddy(m_factorBox);

View File

@ -35,8 +35,8 @@ class NewItemDialog : public AbstractDialog {
QLabel* m_amountLabel = nullptr;
QSpinBox* m_amountBox = nullptr;
QLabel* m_factorLabel = nullptr;
QSpinBox* m_factorBox = nullptr;
QLabel* m_factorLabel = nullptr;
QDoubleSpinBox* m_factorBox = nullptr;
};
#endif // NEWITEMDIALOG_H