• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KDateWidget Class Reference

#include <kdatewidget.h>

Inheritance diagram for KDateWidget:

Inheritance graph
[legend]

List of all members.


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.

Definition at line 57 of file kdatewidget.cpp.

KDateWidget::KDateWidget ( const QDate &  date,
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]

Destructs the date selection widget.

Definition at line 111 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 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.

bool KDateWidget::setCalendar ( const QString &  calendarType  ) 

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.

bool KDateWidget::setDate ( const QDate &  date  ) 

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:
  • kdatewidget.h
  • kdatewidget.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal