This class is basically the same as the KDE Date Time widget with the exception that a QTimeEdit is placed directly besides it.
|
void | dateTimeChanged (const QDateTime &dateTime) |
| This signal is emitted whenever the user modifies the date or time.
|
|
|
| DDateTimeEdit (QWidget *const parent, const QString &name) |
| Constructor.
|
|
| ~DDateTimeEdit () override |
| Destructor.
|
|
QDateTime | dateTime () const |
| Return the date and time.
|
|
void | setDateTime (const QDateTime &dateTime) |
| Sets the date and the time of this widget.
|
|
| DHBox (QWidget *const parent=nullptr) |
|
QSize | minimumSizeHint () const override |
|
void | setContentsMargins (const QMargins &margins) |
|
void | setContentsMargins (int left, int top, int right, int bottom) |
|
void | setSpacing (int space) |
|
void | setStretchFactor (QWidget *const widget, int stretch) |
|
QSize | sizeHint () const override |
|
|
| DHBox (bool vertical, QWidget *const parent) |
|
void | childEvent (QChildEvent *e) override |
|
◆ DDateTimeEdit()
Digikam::DDateTimeEdit::DDateTimeEdit |
( |
QWidget *const |
parent, |
|
|
const QString & |
name |
|
) |
| |
|
explicit |
- Parameters
-
parent | the parent widget |
name | the name of the widget |
◆ dateTime()
QDateTime Digikam::DDateTimeEdit::dateTime |
( |
| ) |
const |
- Returns
- a QDateTime with the currently chosen date and time
◆ dateTimeChanged
void Digikam::DDateTimeEdit::dateTimeChanged |
( |
const QDateTime & |
dateTime | ) |
|
|
signal |
The passed date and time can be invalid.