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

KDEUI

Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties
KDateWidget Class Reference

#include <kdatewidget.h>

Inheritance diagram for KDateWidget:
QWidget

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 (KCalendarSystem *calendar=0)
bool setCalendar (const QString &calendarType)
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 basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g, John Layt john@.nosp@m.layt.nosp@m..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 162 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.

 @param calendar the calendar system object to use, defaults to global

 @return @c true if the calendar system was successfully set, @c false otherwise

Definition at line 167 of file kdatewidget.cpp.

bool KDateWidget::setCalendar ( const QString &  calendarType)

Changes the calendar system to use.

Will always use global locale.

 @param calendarType the calendar system type to use

 @return @c true if the calendar system was successfully set, @c false otherwise

Definition at line 174 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 179 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 ( )
protectedslot

Definition at line 141 of file kdatewidget.cpp.


Property Documentation

const QDate & KDateWidget::date
readwrite

Definition at line 47 of file kdatewidget.h.


The documentation for this class was generated from the following files:
  • kdatewidget.h
  • kdatewidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:46:21 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal