kstars
#include <timespinbox.h>

Public Slots | |
void | changeScale (float s) |
Signals | |
void | scaleChanged (float s) |
Public Member Functions | |
TimeSpinBox (QWidget *parent, bool daysOnly=false) | |
~TimeSpinBox () | |
bool | daysOnly () const |
void | setDaysOnly (bool daysonly) |
virtual QString | textFromValue (int value) const |
float | timeScale () const |
virtual int | valueFromText (const QString &text) const |
Protected Slots | |
void | reportChange () |
Detailed Description
Custom spinbox to handle selection of timestep values with variable units.
- Note
- this should only be used internally, embedded in a TimeStepBox widget.
- Version
- 1.0
Definition at line 32 of file timespinbox.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 43 of file timespinbox.cpp.
|
inline |
Destructor (empty)
Definition at line 38 of file timespinbox.h.
Member Function Documentation
|
slot |
Definition at line 200 of file timespinbox.cpp.
|
inline |
Definition at line 58 of file timespinbox.h.
|
protectedslot |
Definition at line 219 of file timespinbox.cpp.
|
signal |
void TimeSpinBox::setDaysOnly | ( | bool | daysonly | ) |
Definition at line 70 of file timespinbox.cpp.
|
virtual |
Convert the internal value to a display string.
- Note
- reimplemented from QSpinBox
value
the internal value to convert to a display string
- Returns
- the display string
Definition at line 189 of file timespinbox.cpp.
float TimeSpinBox::timeScale | ( | void | ) | const |
- Returns
- the current TimeStep setting
Definition at line 215 of file timespinbox.cpp.
|
virtual |
Convert the displayed string to an internal value.
- Note
- reimplemented from QSpinBox
ok
bool pointer set to true if conversion was successful
- Returns
- internal value converted from displayed text
Definition at line 180 of file timespinbox.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.