kdeui Library API Documentation

KDateWidget Class Reference

This widget can be used to display or allow user selection of a date. A pushbutton to display or allow user selection of a date. More...

#include <kdatewidget.h>

Inheritance diagram for KDateWidget:

QWidget List of all members.

Signals

void changed (QDate)

Public Member Functions

 KDateWidget (QWidget *parent=0, const char *name=0)
 KDateWidget (QDate date, QWidget *parent=0, const char *name=0)
virtual ~KDateWidget ()
QDate date () const
void setDate (QDate date)

Protected Slots

void slotDateChanged ()

Protected Member Functions

void init ()
void init (const QDate &)
virtual void virtual_hook (int id, void *data)

Properties

QDate date

Detailed Description

This widget can be used to display or allow user selection of a date. A pushbutton to display or allow user selection of a date.

See also:
KDatePicker

Version:
Id
kdatewidget.h,v 1.7 2003/08/16 19:45:01 coolo Exp

Definition at line 33 of file kdatewidget.h.


Constructor & Destructor Documentation

KDateWidget::KDateWidget QWidget parent = 0,
const char *  name = 0
 

Constructs a date selection widget.

Definition at line 54 of file kdatewidget.cpp.

References KDateWidget(), and setDate().

Referenced by KDateWidget().

KDateWidget::KDateWidget QDate  date,
QWidget parent = 0,
const char *  name = 0
 

Constructs a date selection widget with the initial date set to date.

Definition at line 62 of file kdatewidget.cpp.

References KDateWidget(), and setDate().

KDateWidget::~KDateWidget  )  [virtual]
 

Destructs the date selection widget.

Definition at line 120 of file kdatewidget.cpp.


Member Function Documentation

QDate KDateWidget::date  )  const
 

Returns the currently selected date.

void KDateWidget::setDate QDate  date  ) 
 

Changes the selected date to date.

Definition at line 125 of file kdatewidget.cpp.

References KLocale::calendar(), changed(), KCalendarSystem::day(), KCalendarSystem::daysInMonth(), KGlobal::locale(), KCalendarSystem::month(), setDate(), and KCalendarSystem::year().

Referenced by KDateWidget(), and setDate().

void KDateWidget::changed QDate   )  [signal]
 

Emitted whenever the date of the widget is changed, either with setDate() or via user selection.

Referenced by setDate().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 10 18:55:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003