src/NullDateEdit.h

Fri, 13 May 2022 20:51:15 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 13 May 2022 20:51:15 +0200
changeset 205
ae6109192fb2
parent 94
380b1331ad2e
permissions
-rw-r--r--

First changes for brewdate date edit.

#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