class KDatePicker
|
A widget for selecting dates.
More... |
|
|
Public Methods
Public Slots
Signals
Protected Methods
Protected 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(), const char *name=0)
|
The usual constructor, the given date will be displayed
initially.
[const]
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)
|
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)
|
Set the font size of the headline, independent from the rest of the widget.
The default size is fontsize + 2.
void resizeEvent (QResizeEvent *)
|
[protected]
[protected]
static const int PreferredButtonSize
|
[protected]
static const int MinimumFrameAroundButtons
|
[protected]
static const int NoOfMonth
|
[protected]
[protected]
[protected]
void dateSelected (QDate)
|
[signal]
This signal is emmitted when the user picked a date.
void updateHeader (QDate dt)
|
[slot]
[slot]
- Version: $Id: kdatepik.h,v 1.6.4.1 1999/03/29 17:28:03 mirko Exp $
- Author: Mirko Sucker (mirko.sucker@unibw-hamburg.de)
- Generated: prospector@porky.devel.redhat.com on Mon Sep 11 01:50:57 2000, using kdoc 2.0a36.