Mercurial > minori
view include/gui/widgets/optional_date.h @ 49:f4bea5ef5b8a
paragraph: fix size hint
only tested on Linux (KDE)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Sep 2023 11:40:14 -0400 |
parents | d8eb763e6661 |
children | 75c804f713b2 |
line wrap: on
line source
#ifndef __gui__widgets__optional_date_h #define __gui__widgets__optional_date_h #include <QWidget> class QCheckBox; class QDateEdit; class QDate; class OptionalDate : public QWidget { public: OptionalDate(QWidget* parent = nullptr); OptionalDate(bool enabled, QWidget* parent = nullptr); QDateEdit* GetDateEdit(); QCheckBox* GetCheckBox(); void SetDate(QDate date); void SetEnabled(bool enabled); bool IsEnabled(); private: QDateEdit* _dateedit; QCheckBox* _checkbox; }; #endif // __gui__widgets__optional_date_h