39 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull )
55 void setAllowNull(
bool allowNull );
67 void setDateTime(
const QDateTime &dateTime );
74 QDateTime dateTime()
const;
92 void clear()
override;
107 QString nullRepresentation()
const;
116 void setNullRepresentation(
const QString &null );
124 bool event( QEvent *event )
override;
135 void mousePressEvent( QMouseEvent *event )
override;
136 void focusOutEvent( QFocusEvent *event )
override;
137 void focusInEvent( QFocusEvent *event )
override;
138 void wheelEvent( QWheelEvent *event )
override;
139 void showEvent( QShowEvent *event )
override;
143#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
144 QgsDateTimeEdit(
const QVariant &var, QVariant::Type parserType, QWidget *parent );
146 QgsDateTimeEdit(
const QVariant &var, QMetaType::Type parserType, QWidget *parent );
152 bool mIsEmpty =
false;
155 int mBlockChangedSignal = 0;
161 void displayNull(
bool updateCalendar =
false );
166 virtual void emitValueChanged(
const QVariant &value );
176 void changed(
const QVariant &dateTime );
182 bool mCurrentPressEvent =
false;
184 QString mOriginalStyleSheet = QString();
185 QAction *mClearAction;
186 QString mNullRepresentation;
189 bool mAllowNull =
true;
192 bool mIsNull =
false;
197 void displayCurrentDate();
200 void resetBeforeChange(
int delta );
215 void setMinimumEditDateTime();
217 friend class TestQgsDateTimeEdit;