class KDatePicker |
|
A date selection widget.
Provides a widget for calendar date input. Different from the previous versions, it now emits two types of signals, either dateSelected() or dateEntered() (see documentation for both signals). A line edit has been added in the newer versions to allow the user to select a date directly by entering numbers like 19990101 or 990101. Author Tim Gilman, Mirko Boehm |
|
The constructor. The current date will be displayed initially. |
|
The constructor. The given date will be displayed initially. |
|
Returns the currently selected calendar system.
Returns a KCalendarSystem object |
|
Returns the selected date. |
|
This signal is emitted each time the selected date is changed.
Usually, this does not mean that the date has been entered,
since the date also changes, for example, when another month is
selected.
See also dateSelected |
|
|
This signal is emitted when enter is pressed and a VALID date has been entered before into the line edit. Connect to both dateEntered() and dateSelected() to receive all events where the user really enters a date. |
|
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in the current month). It has the same meaning as dateSelected() in older versions of KDatePicker. |
|
Returns the KDateTable widget child of this KDatePicker widget. |
|
to catch move keyEvents when QLineEdit has keyFocus |
|
Returns the font size of the widget elements. |
|
Returns true if a KDatePicker shows a close-button.
See also setCloseButton |
|
|
|
|
the resize event |
|
|
|
Changes the calendar system to use. Can use its own local locale if set.
calendar - the calendar system object to use, defaults to global Returns true if the calendar system was successfully set, false otherwise |
|
Changes the calendar system to use. Will always use global locale.
calendarType - the calendar system type to use Returns true if the calendar system was successfully set, false otherwise |
|
By calling this method with enable = true, KDatePicker will show
a little close-button in the upper button-row. Clicking the
close-button will cause the KDatePicker's topLevelWidget()'s close()
method being called. This is mostly useful for toplevel datepickers
without a window manager decoration.
See also hasCloseButton |
|
Sets the date.
Returns false and does not change anything if the date given is invalid. |
|
Enables or disables the widget. |
|
Sets the font size of the widgets elements. |
|
The size hint for date pickers. The size hint recommends the minimum size of the widget so that all elements may be placed without clipping. This sometimes looks ugly, so when using the size hint, try adding 28 to each of the reported numbers of pixels. |
|
This signal is emitted when the day has been selected by clicking on it in the table. |
|
|
|
|
|