KDWinUtils
Helper library for MFC to Qt migration
|
The KCheck class is used to replace DDX_Check data exchange. More...
#include <kcheck.h>
Public Types | |
enum | State { Unchecked = 0x0000 , Checked = 0x0001 , Intermediate = 0x0002 } |
Public Member Functions | |
KCheck (int value=Unchecked) | |
operator int () const | |
KCheck & | operator= (int value) |
void | setWidget (QAbstractButton *button) |
QAbstractButton * | widget () const |
The KCheck class is used to replace DDX_Check data exchange.
This class handles widget with check interfaces. It is a proxy for the widget, and can be used to set and get the value. There are no MFC equivalent for this class, as an int is used in MFC to represent the state of the checkbox.
enum KCheck::State |
KCheck::operator int | ( | ) | const |
Returns the current state if the underlying widget is checked, false otherwise.
KCheck & KCheck::operator= | ( | int | value | ) |
Sets the state of the underlying widget.
void KCheck::setWidget | ( | QAbstractButton * | button | ) |
Sets the widget the class is proxying.
QAbstractButton * KCheck::widget | ( | ) | const |
Returns the underlying widget the class is proxying.