pqExpanderButton provides a frame with a toggle mode.
More...
#include <pqExpanderButton.h>
Inherits QFrame.
|
| enum | HeadingLevel { H1 = 0,
H2
} |
| | This enum specifies the level of the button in a hierarchy of expanders, similar to heading levels in a document. More...
|
| |
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.
◆ HeadingLevel
This enum specifies the level of the button in a hierarchy of expanders, similar to heading levels in a document.
H1 (the default) is for top level sections such as Properties/Display/View (plus/minus icons, border), H2 is for nested groups such as property groups (subtler arrow icons, no border).
Definition at line 35 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 (minus, collapse) which means the content is shown.
By default, the button is unchecked (plus, expand) which means the content is not shown.
◆ 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 |
◆ setHeadingLevel
| void pqExpanderButton::setHeadingLevel |
( |
HeadingLevel |
level | ) |
|
|
slot |
This property holds the heading level of the button, which determines its look.
By default, the heading level is H1.
◆ headingLevel
◆ 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 |
◆ headingLevel
The documentation for this class was generated from the following file: