QPEDatePicker Class Reference
The QPEDatePicker class allows a date to be selected from a
calendar view.
More...
#include <qtopia/datepicker.h>
Inherits QVBox.
List of all member functions.
Public Members
Public Slots
void
setDate ( int y, int m, int d )
virtual void
setDate ( const QDate & d )
Signals
Protected Members
virtual void
paintDay ( const QDate & cDay, QPainter * p, const QRect & cr, const QColorGroup & cg )
virtual void
paintDayBackground ( const QDate &, QPainter * p, const QRect & cr, const QColorGroup & cg )
Detailed Description
The QPEDatePicker class allows a date to be selected from a
calendar view.
QPEDatePicker comprises a header to select month and year and a
calendar view to select the date.
See also Qtopia Classes.
Member Function Documentation
QPEDatePicker::QPEDatePicker ( QWidget * parent = 0, const char * name = 0 )
Constructs a QPEDatePicker.
QPEDatePicker::~QPEDatePicker () [virtual]
Destructs QPEDatePicker.
void QPEDatePicker::dateClicked ( const QDate & date ) [signal]
This signal is emitted when a date in the calendar is clicked.
date contains the date that was clicked
void QPEDatePicker::paintDay ( const QDate & cDay, QPainter * p, const QRect & cr, const QColorGroup & cg ) [virtual protected]
Paints a single day cDay in the calendar using p. The cell
geometry is cr.
The default implementation draws the day of the month in the top left
corner of the cell.
void QPEDatePicker::paintDayBackground ( const QDate &, QPainter * p, const QRect & cr, const QColorGroup & cg ) [virtual protected]
Paints the background of a single day in the calendar using p.
The cell geometry is cr.
The default implementation fills with the base color.
QDate QPEDatePicker::selectedDate () const
Returns the selected date.
void QPEDatePicker::setDate ( int y, int m ) [slot]
Sets the selected date to year y and month m. The current day of
the month is retained unless it falls outside the number of days in the
selected date.
void QPEDatePicker::setDate ( int y, int m, int d ) [slot]
Sets the current date to year y, month m and day d.
void QPEDatePicker::setDate ( const QDate & d ) [virtual slot]
Sets the selected date to d.
void QPEDatePicker::setWeekStartsMonday ( bool startMonday ) [slot]
Display the calendar with weeks starting on Monday if startMonday is
TRUE, otherwise weeks start with Sunday.
See also weekStartsMonday().
bool QPEDatePicker::weekStartsMonday () const
Returns TRUE if the beginning of the week is Monday.
See also setWeekStartsMonday().
This file is part of the Qtopia ,
copyright © 1995-2002
Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks
| Qtopia version 1.7.0
|