• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties

KDateWidget Class Reference

A date selection widget. More...

#include <kdatewidget.h>

Inheritance diagram for KDateWidget:
Inheritance graph
[legend]

List of all members.

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 (const QString &calendarType)
bool setCalendar (KCalendarSystem *calendar=0)
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.

kdatewidget.png

KDE Date Widget

See also:
KDatePicker
Author:
Waldo Bastian <bastian@kde.org>, John Layt <john@layt.net>

Definition at line 44 of file kdatewidget.h.


Constructor & Destructor Documentation

KDateWidget::KDateWidget ( QWidget *  parent = 0) [explicit]

Constructs a date selection widget.

Definition at line 59 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 64 of file kdatewidget.cpp.

KDateWidget::~KDateWidget ( ) [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 161 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 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:
calendarthe calendar system object to use, defaults to global
Returns:
true if the calendar system was successfully set, false otherwise

Definition at line 166 of file kdatewidget.cpp.

bool KDateWidget::setCalendar ( const QString &  calendarType)

Changes the calendar system to use.

Will always use global locale.

Parameters:
calendarTypethe calendar system type to use
Returns:
true if the calendar system was successfully set, false otherwise

Definition at line 173 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:
calendarSystemthe calendar system to use
Returns:
true if the calendar system was successfully set, false otherwise

Definition at line 178 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 104 of file kdatewidget.cpp.

void KDateWidget::slotDateChanged ( ) [protected, slot]

Definition at line 140 of file kdatewidget.cpp.


Property Documentation

const QDate & KDateWidget::date [read, write]

Definition at line 47 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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