Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KSpinButtonCtrl Class Reference

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
 

Detailed Description

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.

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/cspinbuttonctrl-class

Member Function Documentation

◆ GetPos()

int KSpinButtonCtrl::GetPos ( ) const

Retrieves the current position of a spin button control.

◆ GetRange()

void KSpinButtonCtrl::GetRange ( int & lower,
int & upper ) const

Retrieves the upper and lower limits (range) for a spin button control.

◆ SetPos()

int KSpinButtonCtrl::SetPos ( int nPos)

Sets the current position for a spin button control. Return the previous position.

◆ SetRange()

void KSpinButtonCtrl::SetRange ( short nLower,
short nUpper )

Sets the upper and lower limits (range) for a spin button control.

◆ setWidget()

void KSpinButtonCtrl::setWidget ( QSpinBox * lineEdit)

Sets the widget the class is proxying.

◆ widget()

QSpinBox * KSpinButtonCtrl::widget ( ) const

Returns the underlying widget the class is proxying.


The documentation for this class was generated from the following file: