39 Q_PROPERTY(
bool allowNull READ allowNull WRITE setAllowNull )
54 void setAllowNull(
bool allowNull );
66 void setDateTime(
const QDateTime &dateTime );
73 QDateTime dateTime()
const;
91 void clear()
override;
105 QString nullRepresentation()
const;
114 void setNullRepresentation(
const QString &null );
122 bool event( QEvent *event )
override;
133 void mousePressEvent( QMouseEvent *event )
override;
134 void focusOutEvent( QFocusEvent *event )
override;
135 void focusInEvent( QFocusEvent *event )
override;
136 void wheelEvent( QWheelEvent *event )
override;
137 void showEvent( QShowEvent *event )
override;
141#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
142 QgsDateTimeEdit(
const QVariant &var, QMetaType::Type parserType, QWidget *parent );
144 QgsDateTimeEdit(
const QVariant &var, QMetaType::Type parserType, QWidget *parent );
150 bool mIsEmpty =
false;
153 int mBlockChangedSignal = 0;
159 void displayNull(
bool updateCalendar =
false );
164 virtual void emitValueChanged(
const QVariant &value );
174 void changed(
const QVariant &dateTime );
180 bool mCurrentPressEvent =
false;
182 QString mOriginalStyleSheet = QString();
183 QAction *mClearAction;
184 QString mNullRepresentation;
187 bool mAllowNull =
true;
190 bool mIsNull =
false;
195 void displayCurrentDate();
198 void resetBeforeChange(
int delta );
210 void setMinimumEditDateTime();
212 friend class TestQgsDateTimeEdit;