KDatePicker Class Reference

[kdeui Index] [kdeui Hierarchy] [Headers]


A widget for selecting dates. More...

#include <kdatepik.h>

Inherits: QFrame (qt)

Public Members

Public Slots

Protected Members

Signals

Private Members


Detailed Description

Use this class to make a date picker widget. When a date is selected by the user, it emits a signal: dateSelected(QDate)


KDatePicker(QWidget *parent=0, QDate=QDate::currentDate() [public]

The usual constructor, the given date will be displayed initially.

QSize sizeHint() const [public]

Returns a recommended size for the widget.The recommended size is calculated so that the widget "looks good", that means everything fits in it and there is some additional space between the rows. Also the buttons and every (!) month name fit in the headline.

void setFontSize(int size) [public]

Set the size of the contents of the datepicker widget using setFontSize. The days are displayed with the font size, the headline gets a size of fontsize + 2 by default. The default is 12pt. Important: this changes the headline size, so adjust it later!

void setHeadlineSize(int size) [public]

Set the font size of the headline, independent from the rest of the widget.The default size is fontsize + 2.

static const int PreferredButtonSize[protected]

The size that lets the button look best.

static const int MinimumFrameAroundButtons[protected]

The minimum space between the button and the border.

static const int NoOfMonth[protected]

The number of month in a year, usually 12 I suppose :-).

int fontsize[protected]

The names of the 12 month translated to the user language.

void dateSelected(QDate) [signal]

This signal is emmitted when the user picked a date.


  • Author: Mirko Sucker (mirko.sucker@unibw-hamburg.de)
  • Version: $Id: kdatepik.h,v 1.6.4.1 1999/03/29 17:28:03 mirko Exp $
  • Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:27 CEST 1999
Kdoc