Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded

QPEDateTimeEdit Class Reference

The QPEDateTimeEdit class provides a compact widget for selecting a date and time. More...

#include <qtopia/datetimeedit.h>

List of all member functions.

Public Members

Public Slots

Signals


Detailed Description

The QPEDateTimeEdit class provides a compact widget for selecting a date and time.

QPEDateTimeEdit displays a QPEDateEdit and QPETimeEdit above each other.

See also Qtopia Classes.


Member Function Documentation

QPEDateTimeEdit::QPEDateTimeEdit ( QWidget * parent = 0, const char * name = 0 )

Constructs a QPEDateTimeEdit with the date set to today and the time set to 00:00.

The parent and name parameters are the standard Qt parent parameters.

QPEDateTimeEdit::QPEDateTimeEdit ( const QDateTime & dt, QWidget * parent = 0, const char * name = 0 )

Constructs QPEDateTimeEdit with the date and time dt.

The parent and name parameters are the standard Qt parent parameters.

QPEDateTimeEdit::~QPEDateTimeEdit ()

Destructs QPEDateTimeEdit.

QDate QPEDateTimeEdit::date () const

Returns the currently selected date.

bool QPEDateTimeEdit::dateIsEnabled () const

Returns TRUE if changing the date is enabled, otherwise FALSE.

See also setDateEnabled().

QDateTime QPEDateTimeEdit::dateTime () const

Returns the currently selected date and time.

Orientation QPEDateTimeEdit::orientation () const

First availability: Qtopia 2.0

void QPEDateTimeEdit::setDate ( const QDate & dt ) [virtual slot]

Sets the current date to dt.

See also setDateTime().

void QPEDateTimeEdit::setDateEnabled ( bool b )

Enables changing the date if b is TRUE, otherwise disables input.

See also dateIsEnabled() and setTimeEnabled().

void QPEDateTimeEdit::setDateTime ( const QDateTime & dt ) [virtual slot]

Sets the current date and time to dt.

See also setDate() and setTime().

void QPEDateTimeEdit::setOrientation ( Orientation o )

First availability: Qtopia 2.0

void QPEDateTimeEdit::setTime ( const QTime & dt ) [virtual slot]

Sets the current time to dt.

See also setDateTime().

void QPEDateTimeEdit::setTimeEnabled ( bool b )

Enables changing the time if b is TRUE, otherwise disables input.

See also timeIsEnabled() and setDateEnabled().

QTime QPEDateTimeEdit::time () const

Returns the currently selected time.

bool QPEDateTimeEdit::timeIsEnabled () const

Returns TRUE if changing the time is enabled, otherwise FALSE.

See also setTimeEnabled().

void QPEDateTimeEdit::valueChanged ( const QDateTime & dt ) [signal]

This signal is emitted when the date or time is changed to dt.


This file is part of the Qtopia platform, copyright © 1995-2004 Trolltech, all rights reserved.


Copyright © 2001-2005 Trolltech Trademarks
Qtopia version 2.1.1