QGIS API Documentation
2.6.0-Brighton
|
A groupbox that collapses/expands when toggled. More...
#include <qgscollapsiblegroupbox.h>
Public Slots | |
void | checkToggled (bool ckd) |
void | checkClicked (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 |
void | setCollapsed (bool collapse) |
QString | syncGroup () const |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key. | |
void | setSyncGroup (QString grp) |
void | setScrollOnExpand (bool scroll) |
set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded | |
bool | scrollOnExpand () |
Protected Member Functions | |
void | init () |
void | collapseExpandFixes () |
Visual fixes for when group box is collapsed/expanded. | |
void | showEvent (QShowEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | changeEvent (QEvent *event) |
void | updateStyle () |
QRect | titleRect () const |
void | clearModifiers () |
Protected Attributes | |
bool | mCollapsed |
bool | mInitFlat |
bool | mInitFlatChecked |
bool | mScrollOnExpand |
bool | mShown |
QScrollArea * | mParentScrollArea |
QgsGroupBoxCollapseButton * | mCollapseButton |
QWidget * | mSyncParent |
QString | mSyncGroup |
bool | mAltDown |
bool | mShiftDown |
bool | mTitleClicked |
Static Protected Attributes | |
static QIcon | mCollapseIcon |
static QIcon | mExpandIcon |
Properties | |
bool | collapsed |
QString | syncGroup |
bool | scrollOnExpand |
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
QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | QWidget * | parent = 0 | ) |
QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | const QString & | title, |
QWidget * | parent = 0 |
||
) |
QgsCollapsibleGroupBoxBasic::~QgsCollapsibleGroupBoxBasic | ( | ) |
|
protected |
|
slot |
|
slot |
|
protected |
|
signal |
Signal emitted when groupbox collapsed/expanded state is changed, and when first shown.
|
protected |
Visual fixes for when group box is collapsed/expanded.
|
protected |
Reimplemented in QgsCollapsibleGroupBox.
|
inline |
|
protected |
|
protected |
|
inline |
void QgsCollapsibleGroupBoxBasic::setCollapsed | ( | bool | collapse | ) |
|
inline |
set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded
void QgsCollapsibleGroupBoxBasic::setSyncGroup | ( | QString | grp | ) |
|
protected |
Reimplemented in QgsCollapsibleGroupBox.
|
inline |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
|
protected |
|
slot |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
readwrite |
|
readwrite |
|
readwrite |