![]() |
KDWinUtils
Helper library for MFC to Qt migration
|
The KSpinButtonCtrl class is used to replace DDX_Control edit data exchange. More...
#include <kspinbuttonctrl.h>
Public Member Functions | |
| int | GetPos () const |
| Retrieves the current position of a spin button control. | |
| void | GetRange (int &lower, int &upper) const |
| Retrieves the upper and lower limits (range) for a spin button control. | |
| int | SetPos (int nPos) |
| Sets the current position for a spin button control. Return the previous position. | |
| void | SetRange (short nLower, short nUpper) |
| Sets the upper and lower limits (range) for a spin button control. | |
| void | setWidget (QSpinBox *lineEdit) |
| QSpinBox * | widget () const |
The KSpinButtonCtrl class is used to replace DDX_Control edit data exchange.
This class is the equivalent of CSpinButtonCtrl in MFC. It is a proxy for the widget, and can be used to set and get the value.
| int KSpinButtonCtrl::GetPos | ( | ) | const |
Retrieves the current position of a spin button control.
| void KSpinButtonCtrl::GetRange | ( | int & | lower, |
| int & | upper ) const |
Retrieves the upper and lower limits (range) for a spin button control.
| int KSpinButtonCtrl::SetPos | ( | int | nPos | ) |
Sets the current position for a spin button control. Return the previous position.
| void KSpinButtonCtrl::SetRange | ( | short | nLower, |
| short | nUpper ) |
Sets the upper and lower limits (range) for a spin button control.
| void KSpinButtonCtrl::setWidget | ( | QSpinBox * | lineEdit | ) |
Sets the widget the class is proxying.
| QSpinBox * KSpinButtonCtrl::widget | ( | ) | const |
Returns the underlying widget the class is proxying.