#include <ktimeedit.h>
Inherits TQComboBox.
Public Slots | |
void | setTime (TQTime qt) |
Signals | |
void | timeChanged (TQTime newt) |
Public Member Functions | |
KTimeEdit (TQWidget *parent=0, TQTime qt=TQTime(12, 0), const char *name=0) | |
bool | hasTime () const |
TQTime | getTime () const |
TQSizePolicy | sizePolicy () const |
bool | inputIsValid () const |
Protected Slots | |
void | active (int) |
void | hilit (int) |
void | changedText () |
Protected Member Functions | |
virtual void | keyPressEvent (TQKeyEvent *qke) |
void | addTime (TQTime qt) |
void | subTime (TQTime qt) |
void | updateText () |
Detailed Description
This is a class that provides an easy, user friendly way to edit times.
up/down/ increase or decrease time, respectively.
Provides a way to edit times in a user-friendly manner.
Definition at line 44 of file ktimeedit.h.
Constructor & Destructor Documentation
◆ KTimeEdit()
KTimeEdit::KTimeEdit | ( | TQWidget * | parent = 0 , |
TQTime | qt = TQTime(12,0) , |
||
const char * | name = 0 |
||
) |
constructs a new time edit.
Definition at line 108 of file ktimeedit.cpp.
Member Function Documentation
◆ getTime()
TQTime KTimeEdit::getTime | ( | ) | const |
returns the time that is currently set in the timeLineEdit.
Definition at line 149 of file ktimeedit.cpp.
◆ hasTime()
bool KTimeEdit::hasTime | ( | ) | const |
Returns, if a time is selected.
Can not return false anymore....
Definition at line 140 of file ktimeedit.cpp.
◆ inputIsValid()
bool KTimeEdit::inputIsValid | ( | ) | const |
return true if input is a valid time and false if not
Definition at line 277 of file ktimeedit.cpp.
◆ setTime
|
slot |
used to set the time which is displayed to a specific value.
Definition at line 177 of file ktimeedit.cpp.
◆ sizePolicy()
TQSizePolicy KTimeEdit::sizePolicy | ( | ) | const |
returns the preferred size policy of the KTimeEdit
Definition at line 168 of file ktimeedit.cpp.
◆ timeChanged
|
signal |
Emitted every time the time displayed changes.
"newt" is the new time.
The documentation for this class was generated from the following files: