KDEUI
#include <kdatewidget.h>

Signals | |
| void | changed (const QDate &date) |
Public Member Functions | |
| KDateWidget (QWidget *parent=0) | |
| KDateWidget (const QDate &date, QWidget *parent=0) | |
| virtual | ~KDateWidget () |
| const KCalendarSystem * | calendar () const |
| const QDate & | date () const |
| bool | setCalendar (KCalendarSystem *calendar=0) |
| bool | setCalendar (const QString &calendarType) |
| bool | setCalendarSystem (KLocale::CalendarSystem calendarSystem) |
| bool | setDate (const QDate &date) |
Protected Slots | |
| void | slotDateChanged () |
Protected Member Functions | |
| void | init (const QDate &date) |
Properties | |
| QDate | date |
Detailed Description
A date selection widget.
This widget can be used to display or allow user selection of a date.
- See also
- KDatePicker
Definition at line 44 of file kdatewidget.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a date selection widget.
Definition at line 59 of file kdatewidget.cpp.
|
explicit |
Constructs a date selection widget with the initial date set to date.
Definition at line 64 of file kdatewidget.cpp.
|
virtual |
Destructs the date selection widget.
Definition at line 99 of file kdatewidget.cpp.
Member Function Documentation
| const KCalendarSystem * KDateWidget::calendar | ( | ) | const |
Returns the currently selected calendar system.
- Returns
- a KCalendarSystem object
Definition at line 162 of file kdatewidget.cpp.
|
signal |
Emitted whenever the date of the widget is changed, either with setDate() or via user selection.
| const QDate& KDateWidget::date | ( | ) | const |
Returns the currently selected date.
|
protected |
Definition at line 70 of file kdatewidget.cpp.
| bool KDateWidget::setCalendar | ( | KCalendarSystem * | calendar = 0 | ) |
Changes the calendar system to use.
Can use its own local locale if set.
- Parameters
-
calendar the calendar system object to use, defaults to global
- Returns
trueif the calendar system was successfully set,falseotherwise
Definition at line 167 of file kdatewidget.cpp.
Changes the calendar system to use.
Will always use global locale.
- Parameters
-
calendarType the calendar system type to use
- Returns
trueif the calendar system was successfully set,falseotherwise
Definition at line 174 of file kdatewidget.cpp.
| bool KDateWidget::setCalendarSystem | ( | KLocale::CalendarSystem | calendarSystem | ) |
- Since
- 4.6
Changes the calendar system to use. Will always use global locale.
- Parameters
-
calendarSystem the calendar system to use
- Returns
trueif the calendar system was successfully set,falseotherwise
Definition at line 179 of file kdatewidget.cpp.
| bool KDateWidget::setDate | ( | const QDate & | date | ) |
Changes the selected date to date.
- Returns
trueif the date was successfully set,falseotherwise
Definition at line 104 of file kdatewidget.cpp.
|
protectedslot |
Definition at line 141 of file kdatewidget.cpp.
Property Documentation
|
readwrite |
Definition at line 47 of file kdatewidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference