Qt API | Qtopia API Qtopia Documentation

QPETimeEdit Class Reference

The QPETimeEdit class provides a compact widget for selecting a time. More...

#include <qtopia/datetimeedit.h>

List of all member functions.

Public Members

Public Slots

Signals

Protected Members


Detailed Description

The QPETimeEdit class provides a compact widget for selecting a time.

QPETimeEdit extends QSpinBox to validate times as they are entered. It handles 12 hour and 24 hour time formats.

First availability: Qtopia 1.6

See also Qtopia Classes.


Member Function Documentation

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

Constructs a QPETimeEdit with the time set to 00:00.

QPETimeEdit::QPETimeEdit ( const QTime & dt, QWidget * parent = 0, const char * name = 0 )

Constructs a QPETimeEdit with the time set to dt.

QPETimeEdit::~QPETimeEdit ()

Destructs QPETimeEdit.

int QPETimeEdit::mapTextToValue ( bool * ok ) [protected]

Reimplemented to validate the time entered.

QString QPETimeEdit::mapValueToText ( int v ) [protected]

Reimplemented to validate the time entered.

void QPETimeEdit::setTime ( const QTime & tm ) [virtual slot]

Sets displayed time to tm.

See also time().

void QPETimeEdit::stepDown () [slot]

Decreases the time by 15 minutes.

void QPETimeEdit::stepUp () [slot]

Increases the time by 15 minutes.

QTime QPETimeEdit::time () const

Returns the time selected.

See also setTime().

void QPETimeEdit::valueChanged ( const QTime & t ) [signal]

This signal is emitted when the time is changed.


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


Copyright © 2001-2002 TrolltechTrademarks
Qtopia version 1.7.1