16 #ifndef QGSDATETIMEEDIT_H
17 #define QGSDATETIMEEDIT_H
19 #include <QDateTimeEdit>
30 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull )
36 void setAllowNull(
bool allowNull );
43 void setDateTime(
const QDateTime &dateTime );
49 QDateTime dateTime()
const;
53 virtual void clear()
override;
57 virtual void resizeEvent( QResizeEvent* event )
override;
59 void mousePressEvent( QMouseEvent*event )
override;
63 void changed(
const QDateTime & dateTime );
67 int spinButtonWidth()
const;
68 int frameWidth()
const;
73 QLineEdit* mNullLabel;
74 QToolButton* mClearButton;
78 #endif // QGSDATETIMEEDIT_H