Wed, 06 Apr 2022 20:26:47 +0200
Fermentables are loaded in the main recipe record in a QList. The refresh table function does the sorting, on added moment (mash first), amount and finally color of the malt. Removed the old hidden table columns. Do all manipulation on the recipe record with QList arrays. The ferment_amount_changed() slot is complete. The whole recipe editor is going in the right direction.
#include <QDateEdit> class NullDateEdit : public QDateEdit { Q_OBJECT Q_PROPERTY(QDate nullDate READ nullDate WRITE setDate USER true) public: NullDateEdit(const QDate& date, QWidget* parent); NullDateEdit(QWidget* parent); ~NullDateEdit(); QDate nullDate() const; public slots: void clear(); void setDate(const QDate& date); };