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 Types | Public Member Functions | Protected Attributes | Properties | List of all members
ctkCheckBox Class Reference

#include <Libs/Widgets/ctkCheckBox.h>

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

Public Types

typedef QCheckBox Superclass
 

Public Member Functions

 ctkCheckBox (QWidget *_parent=0)
 
QIcon indicatorIcon () const
 
QSize indicatorIconSize () const
 
void setIndicatorIcon (const QIcon &newIcon)
 
void setIndicatorIconSize (const QSize &newSize)
 
virtual ~ctkCheckBox ()
 

Protected Attributes

QScopedPointer< ctkCheckBoxPrivate > d_ptr
 

Properties

QIcon indicatorIcon
 
QSize indicatorIconSize
 

Detailed Description

ctkCheckBox is an advanced QCheckBox that gives more control over its look and feel. We can change the indicator check box by a new QIcon, with two mode On/Off. The indicator icon size can be controled. see setIndicatorIconSize()

Definition at line 38 of file ctkCheckBox.h.

Member Typedef Documentation

◆ Superclass

typedef QCheckBox ctkCheckBox::Superclass

Definition at line 45 of file ctkCheckBox.h.

Constructor & Destructor Documentation

◆ ctkCheckBox()

ctkCheckBox::ctkCheckBox ( QWidget *  _parent = 0)

◆ ~ctkCheckBox()

virtual ctkCheckBox::~ctkCheckBox ( )
virtual

Member Function Documentation

◆ indicatorIcon()

QIcon ctkCheckBox::indicatorIcon ( ) const

◆ indicatorIconSize()

QSize ctkCheckBox::indicatorIconSize ( ) const

◆ setIndicatorIcon()

void ctkCheckBox::setIndicatorIcon ( const QIcon &  newIcon)

◆ setIndicatorIconSize()

void ctkCheckBox::setIndicatorIconSize ( const QSize &  newSize)

Resize the indicator icon to Qsize. If newSize is bigger than the indicator icon's maximum size, The icon will get the icon's maximum size and not newSize.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkCheckBoxPrivate> ctkCheckBox::d_ptr
protected

Definition at line 60 of file ctkCheckBox.h.

Property Documentation

◆ indicatorIcon

QIcon ctkCheckBox::indicatorIcon
readwrite

Definition at line 1 of file ctkCheckBox.h.

◆ indicatorIconSize

QSize ctkCheckBox::indicatorIconSize
readwrite

Definition at line 1 of file ctkCheckBox.h.


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