CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | Protected Attributes | List of all members
ctkCheckBoxPixmaps Class Reference

#include <Libs/Widgets/ctkCheckBoxPixmaps.h>

Inheritance diagram for ctkCheckBoxPixmaps:
Inheritance graph
[legend]
Collaboration diagram for ctkCheckBoxPixmaps:
Collaboration graph
[legend]

Public Member Functions

 ctkCheckBoxPixmaps (QWidget *parent=0)
 
const QPixmap & pixmap (int state, bool active) const
 
const QPixmap & pixmap (Qt::CheckState state, bool active) const
 
virtual ~ctkCheckBoxPixmaps ()
 

Protected Attributes

QScopedPointer< ctkCheckBoxPixmapsPrivate > d_ptr
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkCheckBoxPixmapsPrivate> ctkCheckBoxPixmaps::d_ptr
protected

Definition at line 92 of file ctkCheckBoxPixmaps.h.


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