src/NullDateEdit.h

Thu, 07 Jul 2022 08:51:57 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 07 Jul 2022 08:51:57 +0200
changeset 337
8133cdb19aa1
parent 94
380b1331ad2e
permissions
-rw-r--r--

Added my_height global variable and edit in profile setup. This sets the height of the brewery above or below sealevel. Added calculations for the air pressure, boilpoint and IBU_reduction that all depend on the height. Currently not yet in use. Split out the real IBU calculation from the generic toIBU function. This has no effect on the results.

#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