KDEUI
KDateWidget Class Reference
#include <kdatewidget.h>

Detailed Description
A pushbutton to display or allow user selection of a date.This widget can be used to display or allow user selection of a date.
- See also:
- KDatePicker
Definition at line 38 of file kdatewidget.h.
Signals | |
void | changed (const QDate &date) |
Public Member Functions | |
const KCalendarSystem * | calendar () const |
const QDate & | date () const |
KDateWidget (const QDate &date, QWidget *parent=0) | |
KDateWidget (QWidget *parent=0) | |
bool | setCalendar (const QString &calendarType) |
bool | setCalendar (KCalendarSystem *calendar=0) |
bool | setDate (const QDate &date) |
virtual | ~KDateWidget () |
Protected Slots | |
void | slotDateChanged () |
Protected Member Functions | |
void | init (const QDate &date) |
Properties | |
QDate | date |
Constructor & Destructor Documentation
KDateWidget::KDateWidget | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructs a date selection widget with the initial date set to date
.
Definition at line 63 of file kdatewidget.cpp.
KDateWidget::~KDateWidget | ( | ) | [virtual] |
Member Function Documentation
const KCalendarSystem * KDateWidget::calendar | ( | ) | const |
Returns the currently selected calendar system.
- Returns:
- a KCalendarSystem object
Definition at line 165 of file kdatewidget.cpp.
void KDateWidget::changed | ( | const QDate & | date | ) | [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.
void KDateWidget::init | ( | const QDate & | date | ) | [protected] |
Definition at line 72 of file kdatewidget.cpp.
Changes the calendar system to use.
Will always use global locale.
- Parameters:
-
calendarType the calendar system type to use
- Returns:
true
if the calendar system was successfully set,false
otherwise
Definition at line 180 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:
true
if the calendar system was successfully set,false
otherwise
Definition at line 174 of file kdatewidget.cpp.
Changes the selected date to date
.
- Returns:
true
if the date was successfully set,false
otherwise
Definition at line 116 of file kdatewidget.cpp.
void KDateWidget::slotDateChanged | ( | ) | [protected, slot] |
Definition at line 144 of file kdatewidget.cpp.
Property Documentation
const QDate & KDateWidget::date [read, write] |
Definition at line 41 of file kdatewidget.h.
The documentation for this class was generated from the following files: