The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.
More...
#include <qgsdatetimeedit.h>
Public Member Functions |
| QgsDateTimeEdit (QWidget *parent=0) |
bool | allowNull () const |
virtual void | clear () override |
| Set the current date as NULL.
|
QDateTime | dateTime () const |
| dateTime returns the date time which can eventually be a null date/time
|
void | setAllowNull (bool allowNull) |
| determines if the widget allows setting null date/time.
|
void | setDateTime (const QDateTime &dateTime) |
| setDateTime set the date time in the widget and handles null date times.
|
Protected Member Functions |
void | mousePressEvent (QMouseEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
Detailed Description
The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.
Definition at line 27 of file qgsdatetimeedit.h.
Constructor & Destructor Documentation
QgsDateTimeEdit::QgsDateTimeEdit |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Member Function Documentation
bool QgsDateTimeEdit::allowNull |
( |
| ) |
const |
|
inline |
void QgsDateTimeEdit::clear |
( |
| ) |
|
|
overridevirtual |
Set the current date as NULL.
- Note
- if the widget is not configured to accept NULL dates, this will have no effect
Definition at line 66 of file qgsdatetimeedit.cpp.
QDateTime QgsDateTimeEdit::dateTime |
( |
| ) |
const |
dateTime returns the date time which can eventually be a null date/time
- Note
- since QDateTimeEdit::dateTime() is not virtual, dateTime must be called for QgsDateTimeEdit.
Definition at line 112 of file qgsdatetimeedit.cpp.
void QgsDateTimeEdit::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void QgsDateTimeEdit::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotectedvirtual |
void QgsDateTimeEdit::setAllowNull |
( |
bool |
allowNull | ) |
|
determines if the widget allows setting null date/time.
Definition at line 56 of file qgsdatetimeedit.cpp.
void QgsDateTimeEdit::setDateTime |
( |
const QDateTime & |
dateTime | ) |
|
setDateTime set the date time in the widget and handles null date times.
- Note
- since QDateTimeEdit::setDateTime() is not virtual, setDateTime must be called for QgsDateTimeEdit.
Definition at line 99 of file qgsdatetimeedit.cpp.
Property Documentation
bool QgsDateTimeEdit::allowNull |
|
readwrite |
The documentation for this class was generated from the following files: