![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkCheckablePushButton.h>
Signals | |
void | checkBoxToggled (bool) |
Fired anytime the checkbox change of state. More... | |
void | checkStateChanged (Qt::CheckState newCheckState) |
Fired anytime the checkbox change of state. More... | |
Public Member Functions | |
virtual bool | checkBoxControlsButton () const |
virtual Qt::CheckState | checkState () const |
ctkCheckablePushButton (const QString &text, QWidget *parent=0) | |
ctkCheckablePushButton (QWidget *parent=0) | |
Qt::Alignment | indicatorAlignment () const |
virtual bool | isCheckBoxUserCheckable () const |
virtual void | setCheckBoxControlsButton (bool b) |
virtual void | setCheckBoxUserCheckable (bool b) |
virtual void | setCheckState (Qt::CheckState checkState) |
void | setIndicatorAlignment (Qt::Alignment indicatorAlignment) |
virtual | ~ctkCheckablePushButton () |
![]() | |
Qt::Alignment | buttonTextAlignment () const |
ctkPushButton (const QIcon &icon, const QString &text, QWidget *parent=0) | |
ctkPushButton (const QString &text, QWidget *parent=0) | |
ctkPushButton (QWidget *parent=0) | |
Qt::Alignment | iconAlignment () const |
virtual QSize | minimumSizeHint () const |
void | setButtonTextAlignment (Qt::Alignment buttonTextAlignment) |
void | setIconAlignment (Qt::Alignment iconAlignment) |
virtual QSize | sizeHint () const |
virtual | ~ctkPushButton () |
Protected Member Functions | |
virtual bool | hitButton (const QPoint &pos) const |
Reimplemented for internal reasons. More... | |
virtual void | mousePressEvent (QMouseEvent *event) |
Reimplemented for internal reasons. More... | |
![]() | |
ctkPushButton (ctkPushButtonPrivate *, QWidget *parent=0) | |
virtual void | paintEvent (QPaintEvent *) |
Reimplemented for internal reasons. More... | |
Properties | |
bool | checkBoxControlsButton |
bool | checkBoxUserCheckable |
Qt::CheckState | checkState |
Qt::Alignment | indicatorAlignment |
![]() | |
Qt::Alignment | buttonTextAlignment |
Qt::Alignment | iconAlignment |
Additional Inherited Members | |
![]() | |
QScopedPointer< ctkPushButtonPrivate > | d_ptr |
Description ctkCheckablePushButton is a QPushButton with a checkbox. By default the checkbox is connected to the checkable property of the push button. You can change this behaviour by clearing the "checkBoxControlsButton" property. The checkBoxUserCheckable property determines if the state of the checkbox can be changed interactively by the user by clicking on the checkbox.
Definition at line 48 of file ctkCheckablePushButton.h.
ctkCheckablePushButton::ctkCheckablePushButton | ( | QWidget * | parent = 0 | ) |
ctkCheckablePushButton::ctkCheckablePushButton | ( | const QString & | text, |
QWidget * | parent = 0 |
||
) |
|
virtual |
|
virtual |
|
signal |
Fired anytime the checkbox change of state.
|
virtual |
|
signal |
Fired anytime the checkbox change of state.
|
protectedvirtual |
Reimplemented for internal reasons.
Qt::Alignment ctkCheckablePushButton::indicatorAlignment | ( | ) | const |
|
virtual |
|
protectedvirtual |
Reimplemented for internal reasons.
|
virtual |
|
virtual |
|
virtual |
void ctkCheckablePushButton::setIndicatorAlignment | ( | Qt::Alignment | indicatorAlignment | ) |
Set the alignment of the indicator (arrow) on the button, Qt::AlignLeft|Qt::AlignVCenter by default.
|
readwrite |
Definition at line 1 of file ctkCheckablePushButton.h.
|
readwrite |
Definition at line 1 of file ctkCheckablePushButton.h.
|
readwrite |
Definition at line 1 of file ctkCheckablePushButton.h.
|
readwrite |
This property controls the location of the checkbox with regard to the text. Qt::AlignLeft|Qt::AlignVCenter by default
Definition at line 1 of file ctkCheckablePushButton.h.