libopie API Documentation

OTimePickerDialog Class Reference

A small dialog to pick a time. More...

#include <otimepicker.h>

Collaboration diagram for OTimePickerDialog:

Collaboration graph
[legend]
List of all members.

Public Slots

void setTime (const QTime &time)
 Set the time to time.

void setHour (const QString &hour)
 This method takes the current minute and tries to set hour to hour.

void setMinute (const QString &minute)
 Method to set a new minute.


Public Member Functions

 OTimePickerDialog (QWidget *parent=0, const char *name=NULL, WFlags fl=0)
 This is a modal Dialog.

QTime time () const

Detailed Description

A small dialog to pick a time.

Version:
1.0
Author:
Stefan Eilers

Definition at line 64 of file otimepicker.h.


Constructor & Destructor Documentation

OTimePickerDialog::OTimePickerDialog QWidget parent = 0,
const char *  name = NULL,
WFlags  fl = 0
 

This is a modal Dialog.

Parameters:
parent The parent widget
name The name of the object
fl Possible window flags

Definition at line 175 of file otimepicker.cpp.

References QObject::connect(), setHour(), setMinute(), and setTime().


Member Function Documentation

QTime OTimePickerDialog::time  )  const
 

Returns:
the time

Definition at line 191 of file otimepicker.cpp.

void OTimePickerDialog::setTime const QTime time  )  [slot]
 

Set the time to time.

Parameters:
time The time to be set

Definition at line 200 of file otimepicker.cpp.

Referenced by OTimePickerDialog(), setHour(), and setMinute().

void OTimePickerDialog::setHour const QString hour  )  [slot]
 

This method takes the current minute and tries to set hour to hour.

This succeeds if the resulting date is valid

Parameters:
hour The hour as a string

Definition at line 225 of file otimepicker.cpp.

References QTime::isValid(), QTime::minute(), QTime::setHMS(), setTime(), and QString::toInt().

Referenced by OTimePickerDialog().

void OTimePickerDialog::setMinute const QString minute  )  [slot]
 

Method to set a new minute.

It tries to convert the string to int and if the resulting date is valid a new date is set.

See also:
setHour

Definition at line 239 of file otimepicker.cpp.

References QTime::hour(), QTime::isValid(), QTime::setHMS(), setTime(), and QString::toInt().

Referenced by OTimePickerDialog().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:25:05 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001