pqExpanderButton provides a frame with a toggle mode.
More...
#include <pqExpanderButton.h>
Inherits QFrame.
pqExpanderButton provides a frame with a toggle mode.
This can be used to simulate a toggle button used to expand frames in an accordion style, for example.
Definition at line 15 of file pqExpanderButton.h.
◆ pqExpanderButton()
pqExpanderButton::pqExpanderButton |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~pqExpanderButton()
pqExpanderButton::~pqExpanderButton |
( |
| ) |
|
|
override |
◆ toggle
void pqExpanderButton::toggle |
( |
| ) |
|
|
slot |
Toggles the state of the checkable button.
◆ setChecked
void pqExpanderButton::setChecked |
( |
bool |
| ) |
|
|
slot |
This property holds whether the button is checked.
By default, the button is unchecked.
◆ checked
bool pqExpanderButton::checked |
( |
| ) |
const |
|
inlineslot |
◆ setText
void pqExpanderButton::setText |
( |
const QString & |
text | ) |
|
|
slot |
This property holds the text shown on the button.
◆ text
QString pqExpanderButton::text |
( |
| ) |
const |
|
slot |
◆ toggled
void pqExpanderButton::toggled |
( |
bool |
checked | ) |
|
|
signal |
This signal is emitted whenever a button changes its state.
checked is true if the button is checked, or false if the button is unchecked.
◆ mousePressEvent()
void pqExpanderButton::mousePressEvent |
( |
QMouseEvent * |
evt | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
void pqExpanderButton::mouseReleaseEvent |
( |
QMouseEvent * |
evt | ) |
|
|
overrideprotected |
◆ text
QString pqExpanderButton::text |
|
readwrite |
◆ checked
bool pqExpanderButton::checked |
|
readwrite |
The documentation for this class was generated from the following file: