src/NullDateEdit.h

Mon, 26 Feb 2024 16:05:53 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 26 Feb 2024 16:05:53 +0100
changeset 517
64525ab563fc
parent 94
380b1331ad2e
permissions
-rw-r--r--

Version 0.4.3. Fix add fermentables in products when packaging sugar was defined but no amount was yet set.

#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);
};

mercurial