KDEUI
KIntSpinBox Class Reference
A QSpinBox with support for arbitrary base numbers. More...
#include <knuminput.h>

Public Member Functions | |
int | base () const |
KIntSpinBox (int lower, int upper, int step, int value, QWidget *parent, int base=10) | |
KIntSpinBox (QWidget *parent=0) | |
void | setBase (int base) |
void | setEditFocus (bool mark) |
virtual | ~KIntSpinBox () |
Protected Member Functions | |
virtual QString | textFromValue (int) const |
virtual int | valueFromText (const QString &text) const |
Properties | |
int | base |
Detailed Description
A QSpinBox with support for arbitrary base numbers.A QSpinBox with support for arbitrary base numbers (e.g. hexadecimal).
The class provides an easy interface to use other numeric systems than the decimal.
Definition at line 657 of file knuminput.h.
Constructor & Destructor Documentation
KIntSpinBox::KIntSpinBox | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor.
Constructs a widget with an integer inputline with a little scrollbar and a slider, with minimal value 0, maximal value 99, step 1, base 10 and initial value 0.
Definition at line 234 of file knuminput.cpp.
KIntSpinBox::KIntSpinBox | ( | int | lower, | |
int | upper, | |||
int | step, | |||
int | value, | |||
QWidget * | parent, | |||
int | base = 10 | |||
) |
Constructor.
Constructs a widget with an integer inputline with a little scrollbar and a slider.
- Parameters:
-
lower The lowest valid value. upper The greatest valid value. step The step size of the scrollbar. value The actual value. base The base of the used number system. parent The parent of the widget.
Definition at line 246 of file knuminput.cpp.
KIntSpinBox::~KIntSpinBox | ( | ) | [virtual] |
Member Function Documentation
int KIntSpinBox::base | ( | ) | const |
- Returns:
- the base in which numbers in the spin box are represented.
void KIntSpinBox::setBase | ( | int | base | ) |
Sets the base in which the numbers in the spin box are represented.
Definition at line 255 of file knuminput.cpp.
void KIntSpinBox::setEditFocus | ( | bool | mark | ) |
QString KIntSpinBox::textFromValue | ( | int | v | ) | const [protected, virtual] |
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition at line 266 of file knuminput.cpp.
int KIntSpinBox::valueFromText | ( | const QString & | text | ) | const [protected, virtual] |
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition at line 271 of file knuminput.cpp.
Property Documentation
int KIntSpinBox::base [read, write] |
Definition at line 660 of file knuminput.h.
The documentation for this class was generated from the following files: