QGIS API Documentation
2.8.2-Wien
|
A groupbox that collapses/expands when toggled. More...
#include <qgscollapsiblegroupbox.h>
Public Slots | |
void | checkClicked (bool ckd) |
void | checkToggled (bool ckd) |
void | toggleCollapsed () |
Signals | |
void | collapsedStateChanged (bool collapsed) |
Signal emitted when groupbox collapsed/expanded state is changed, and when first shown. |
Public Member Functions | |
QgsCollapsibleGroupBoxBasic (QWidget *parent=0) | |
QgsCollapsibleGroupBoxBasic (const QString &title, QWidget *parent=0) | |
~QgsCollapsibleGroupBoxBasic () | |
bool | isCollapsed () const |
bool | scrollOnExpand () |
void | setCollapsed (bool collapse) |
void | setScrollOnExpand (bool scroll) |
set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded | |
void | setSyncGroup (QString grp) |
QString | syncGroup () const |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key. |
Protected Member Functions | |
void | changeEvent (QEvent *event) override |
void | clearModifiers () |
void | collapseExpandFixes () |
Visual fixes for when group box is collapsed/expanded. | |
void | init () |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | showEvent (QShowEvent *event) override |
QRect | titleRect () const |
void | updateStyle () |
Protected Attributes | |
bool | mAltDown |
QgsGroupBoxCollapseButton * | mCollapseButton |
bool | mCollapsed |
bool | mInitFlat |
bool | mInitFlatChecked |
QScrollArea * | mParentScrollArea |
bool | mScrollOnExpand |
bool | mShiftDown |
bool | mShown |
QString | mSyncGroup |
QWidget * | mSyncParent |
bool | mTitleClicked |
Static Protected Attributes | |
static QIcon | mCollapseIcon |
static QIcon | mExpandIcon |
Properties | |
bool | collapsed |
bool | scrollOnExpand |
QString | syncGroup |
A groupbox that collapses/expands when toggled.
Basic class QgsCollapsibleGroupBoxBasic does not auto-save collapsed or checked state Holding Alt modifier key when toggling collapsed state will synchronize the toggling across other collapsible group boxes with the same syncGroup QString value Holding Shift modifier key when attempting to toggle collapsed state will expand current group box, then collapse any others with the same syncGroup QString value
Definition at line 71 of file qgscollapsiblegroupbox.h.
QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | QWidget * | parent = 0 | ) |
Definition at line 33 of file qgscollapsiblegroupbox.cpp.
QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | const QString & | title, |
QWidget * | parent = 0 |
||
) |
Definition at line 39 of file qgscollapsiblegroupbox.cpp.
QgsCollapsibleGroupBoxBasic::~QgsCollapsibleGroupBoxBasic | ( | ) |
Definition at line 46 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Definition at line 178 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 223 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 217 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 209 of file qgscollapsiblegroupbox.cpp.
|
signal |
Signal emitted when groupbox collapsed/expanded state is changed, and when first shown.
|
protected |
Visual fixes for when group box is collapsed/expanded.
Definition at line 450 of file qgscollapsiblegroupbox.cpp.
|
protected |
Reimplemented in QgsCollapsibleGroupBox.
Definition at line 51 of file qgscollapsiblegroupbox.cpp.
|
inline |
Definition at line 84 of file qgscollapsiblegroupbox.h.
|
overrideprotected |
Definition at line 143 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Definition at line 158 of file qgscollapsiblegroupbox.cpp.
|
inline |
Definition at line 94 of file qgscollapsiblegroupbox.h.
void QgsCollapsibleGroupBoxBasic::setCollapsed | ( | bool | collapse | ) |
Definition at line 409 of file qgscollapsiblegroupbox.cpp.
|
inline |
set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded
Definition at line 92 of file qgscollapsiblegroupbox.h.
void QgsCollapsibleGroupBoxBasic::setSyncGroup | ( | QString | grp | ) |
Definition at line 190 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Reimplemented in QgsCollapsibleGroupBox.
Definition at line 90 of file qgscollapsiblegroupbox.cpp.
|
inline |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
Definition at line 88 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 201 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 235 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 311 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 129 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 126 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 120 of file qgscollapsiblegroupbox.h.
|
staticprotected |
Definition at line 133 of file qgscollapsiblegroupbox.h.
|
staticprotected |
Definition at line 134 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 121 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 122 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 125 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 123 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 130 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 124 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 128 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 127 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 131 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 75 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 77 of file qgscollapsiblegroupbox.h.
|
readwrite |
Definition at line 76 of file qgscollapsiblegroupbox.h.