kstars
#include <timedialog.h>

Public Slots | |
void | setNow (void) |
Public Member Functions | |
TimeDialog (const KStarsDateTime &now, GeoLocation *_geo, QWidget *parent, bool UTCFrame=false) | |
~TimeDialog () | |
QDate | selectedDate (void) |
KStarsDateTime | selectedDateTime (void) |
QTime | selectedTime (void) |
Protected Member Functions | |
void | keyReleaseEvent (QKeyEvent *) |
Detailed Description
A class for adjusting the Time and Date.
Contains a KDatePicker widget for selecting the date, and a QTimeEdit for selecting the time. There is also a "Now" button for selecting the Time and Date from the system clock. Dialog for adjusting the Time and Date.
- Version
- 1.0
Definition at line 47 of file timedialog.h.
Constructor & Destructor Documentation
TimeDialog::TimeDialog | ( | const KStarsDateTime & | now, |
GeoLocation * | _geo, | ||
QWidget * | parent, | ||
bool | UTCFrame = false |
||
) |
Constructor.
Creates widgets and packs them into QLayouts. Connects Signals and Slots.
Definition at line 36 of file timedialog.cpp.
|
inline |
Destructor (empty)
Definition at line 59 of file timedialog.h.
Member Function Documentation
|
protected |
Definition at line 77 of file timedialog.cpp.
QDate TimeDialog::selectedDate | ( | void | ) |
- Returns
- a QDate object with the selected date
Definition at line 103 of file timedialog.cpp.
KStarsDateTime TimeDialog::selectedDateTime | ( | void | ) |
- Returns
- a KStarsDateTime object with the selected date and time
Definition at line 107 of file timedialog.cpp.
QTime TimeDialog::selectedTime | ( | void | ) |
- Returns
- a QTime object with the selected time
Definition at line 99 of file timedialog.cpp.
|
slot |
When the "Now" button is pressed, read the time and date from the system clock.
Change the selected date in the KDatePicker to the system's date, and the displayed time to the system time.
Definition at line 89 of file timedialog.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.