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;
106 QString nullRepresentation()
const;
115 void setNullRepresentation(
const QString &null );
123 bool event( QEvent *event )
override;
134 void mousePressEvent( QMouseEvent *event )
override;
135 void focusOutEvent( QFocusEvent *event )
override;
136 void focusInEvent( QFocusEvent *event )
override;
137 void wheelEvent( QWheelEvent *event )
override;
138 void showEvent( QShowEvent *event )
override;
142#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
143 QgsDateTimeEdit(
const QVariant &var, QVariant::Type parserType, QWidget *parent );
145 QgsDateTimeEdit(
const QVariant &var, QMetaType::Type parserType, QWidget *parent );
151 bool mIsEmpty =
false;
154 int mBlockChangedSignal = 0;
160 void displayNull(
bool updateCalendar =
false );
165 virtual void emitValueChanged(
const QVariant &value );
175 void changed(
const QVariant &dateTime );
181 bool mCurrentPressEvent =
false;
183 QString mOriginalStyleSheet = QString();
184 QAction *mClearAction;
185 QString mNullRepresentation;
188 bool mAllowNull =
true;
191 bool mIsNull =
false;
196 void displayCurrentDate();
199 void resetBeforeChange(
int delta );
213 void setMinimumEditDateTime();
215 friend class TestQgsDateTimeEdit;