#include <Libs/Widgets/ctkCheckBoxPixmaps.h>
|
QScopedPointer< ctkCheckBoxPixmapsPrivate > | d_ptr |
|
ctkCheckBoxPixmaps is a helper class that can used to create pixmaps for checkboxs in various states. This is useful for showing checkboxes in qt-views.
Definition at line 70 of file ctkCheckBoxPixmaps.h.
◆ ctkCheckBoxPixmaps()
ctkCheckBoxPixmaps::ctkCheckBoxPixmaps |
( |
QWidget * |
parent = 0 | ) |
|
The widget is used to retrieve the style of the checkboxes If the widget is 0 (not recommended) use the QApplication style.
◆ ~ctkCheckBoxPixmaps()
virtual ctkCheckBoxPixmaps::~ctkCheckBoxPixmaps |
( |
| ) |
|
|
virtual |
◆ pixmap() [1/2]
const QPixmap & ctkCheckBoxPixmaps::pixmap |
( |
int |
state, |
|
|
bool |
active |
|
) |
| const |
|
inline |
Utility function that can take an int for the state. Best to be avoided.
Definition at line 99 of file ctkCheckBoxPixmaps.h.
◆ pixmap() [2/2]
const QPixmap& ctkCheckBoxPixmaps::pixmap |
( |
Qt::CheckState |
state, |
|
|
bool |
active |
|
) |
| const |
Returns a pixmap for the given state . The pixmaps have been cached so the cost of the function is minimum.
◆ d_ptr
QScopedPointer<ctkCheckBoxPixmapsPrivate> ctkCheckBoxPixmaps::d_ptr |
|
protected |
The documentation for this class was generated from the following file: