![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
cvExpanderButton provides a frame with a toggle mode for collapsible sections. More...
#include <cvExpanderButton.h>


Public Slots | |
| void | toggle () |
| Toggles the state of the checkable button. More... | |
| void | setChecked (bool checked) |
| This property holds whether the button is checked. By default, the button is unchecked (collapsed). More... | |
| bool | checked () const |
| void | setText (const QString &text) |
| This property holds the text shown on the button. More... | |
| QString | text () const |
Signals | |
| void | toggled (bool checked) |
| This signal is emitted whenever the button changes its state. More... | |
Public Member Functions | |
| cvExpanderButton (QWidget *parent=nullptr) | |
| ~cvExpanderButton () override | |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *evt) override |
| void | mouseReleaseEvent (QMouseEvent *evt) override |
Properties | |
| QString | text |
| bool | checked |
cvExpanderButton provides a frame with a toggle mode for collapsible sections.
This widget is based on ParaView's pqExpanderButton and is used to simulate a toggle button for expanding/collapsing frames in an accordion style.
When checked (expanded), it shows a minus icon (-). When unchecked (collapsed), it shows a plus icon (+).
Definition at line 27 of file cvExpanderButton.h.
|
explicit |
Definition at line 14 of file cvExpanderButton.cpp.
|
overridedefault |
|
inlineslot |
Definition at line 48 of file cvExpanderButton.h.
|
overrideprotected |
Definition at line 106 of file cvExpanderButton.cpp.
|
overrideprotected |
Definition at line 113 of file cvExpanderButton.cpp.
References toggle().
|
slot |
This property holds whether the button is checked. By default, the button is unchecked (collapsed).
Definition at line 83 of file cvExpanderButton.cpp.
References checked, and toggled().
Referenced by toggle().
|
slot |
This property holds the text shown on the button.
Definition at line 94 of file cvExpanderButton.cpp.
References text.
|
slot |
Definition at line 101 of file cvExpanderButton.cpp.
|
slot |
Toggles the state of the checkable button.
Definition at line 80 of file cvExpanderButton.cpp.
References setChecked().
Referenced by mouseReleaseEvent().
|
signal |
This signal is emitted whenever the button changes its state.
| checked | true if the button is checked (expanded), false if unchecked (collapsed). |
Referenced by setChecked().
|
readwrite |
Definition at line 1 of file cvExpanderButton.h.
Referenced by setChecked().
|
readwrite |
Definition at line 1 of file cvExpanderButton.h.
Referenced by setText().