src/NullDateEdit.h

Fri, 03 Feb 2023 11:59:17 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 03 Feb 2023 11:59:17 +0100
changeset 486
f1cc6a30623d
parent 94
380b1331ad2e
permissions
-rw-r--r--

Use cells from yeastpack if set to calculate the initcells. Use 90% underpitch to decide for a starter. Hide starter retry label and button if no starter is needed.

#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