#include <Libs/Widgets/ctkDateRangeWidget.h>
|
QScopedPointer< ctkDateRangeWidgetPrivate > | d_ptr |
|
ctkDateRangeWidget allows the user to select a time range between two dates
Definition at line 39 of file ctkDateRangeWidget.h.
ctkDateRangeWidget::ctkDateRangeWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructor If
- parent is null, ctkDateRangeWidget will be a top-level widget
- Note
- The
- parent can be set later using QWidget::setParent() By default, the range is "Any Date"
virtual ctkDateRangeWidget::~ctkDateRangeWidget |
( |
| ) |
|
|
virtual |
bool ctkDateRangeWidget::displayTime |
( |
| ) |
const |
QDateTime ctkDateRangeWidget::endDateTime |
( |
| ) |
const |
Access the start date/times The returned date is never NULL/empty, but set to QDateTimeEdit::maximumDateTime
void ctkDateRangeWidget::endDateTimeChanged |
( |
const QDateTime & |
value | ) |
|
|
signal |
Fired when the end date is changed.
bool ctkDateRangeWidget::isAnyDate |
( |
| ) |
const |
Utility function that returns true if the range correspond to any date It can be useful if the time must be handled specially in that case. Returns true if any of the start or end date is invalid.
void ctkDateRangeWidget::onDateTimeChanged |
( |
| ) |
|
|
protectedslot |
void ctkDateRangeWidget::setAnyDate |
( |
| ) |
|
|
slot |
handle clicks on radio buttons
void ctkDateRangeWidget::setDateRange |
( |
QDate |
start, |
|
|
QDate |
end |
|
) |
| |
|
slot |
void ctkDateRangeWidget::setDateTimeRange |
( |
QDateTime |
start, |
|
|
QDateTime |
end |
|
) |
| |
|
slot |
Utility function that set the start and end values at once.
void ctkDateRangeWidget::setDisplayTime |
( |
bool |
includeTime | ) |
|
This property holds whether the date range includes time If includeTime is disabled (the default), the widget only shows dates If includeTime is enabled the date widgets display time as well as date
void ctkDateRangeWidget::setEndDateTime |
( |
QDateTime |
end | ) |
|
|
slot |
Set the end date. If the date is null or invalid, it will be automatically converted into a valid date (31 December, 7999 and a time of 23:59:59 and 999 milliseconds)
void ctkDateRangeWidget::setLastMonth |
( |
| ) |
|
|
slot |
void ctkDateRangeWidget::setLastWeek |
( |
| ) |
|
|
slot |
void ctkDateRangeWidget::setSelectRange |
( |
| ) |
|
|
slot |
void ctkDateRangeWidget::setStartDateTime |
( |
QDateTime |
start | ) |
|
|
slot |
Set the start date. If the date is null or invalid, it will be automatically converted into a valid date (14 September 1752)
void ctkDateRangeWidget::setToday |
( |
| ) |
|
|
slot |
void ctkDateRangeWidget::setYesterday |
( |
| ) |
|
|
slot |
QDateTime ctkDateRangeWidget::startDateTime |
( |
| ) |
const |
Access the start date/times The returned date is never NULL/empty, but set to QDateTimeEdit::minimumDateTime
void ctkDateRangeWidget::startDateTimeChanged |
( |
const QDateTime & |
value | ) |
|
|
signal |
Fired when the start date is changed.
QScopedPointer<ctkDateRangeWidgetPrivate> ctkDateRangeWidget::d_ptr |
|
protected |
bool ctkDateRangeWidget::displayTime |
|
readwrite |
QDateTime ctkDateRangeWidget::endDateTime |
|
readwrite |
QDateTime ctkDateRangeWidget::startDateTime |
|
readwrite |
The documentation for this class was generated from the following file: