This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* @note Collapsible function not shown in promoted QtDesigner widgets.
*/
#include<QGroupBox>
#include<QSettings>
#include<QPointer>
classQToolButton;
classQScrollArea;
classGUI_EXPORT QgsCollapsibleGroupBox : public QGroupBox
/** \ingroup gui
* \class QgsCollapsibleGroupBoxBasic
* A groupbox that collapses/expands when toggled.
* Basic class QgsCollapsibleGroupBoxBasic does not auto-save collapsed or checked state
* @note To add Collapsible properties in promoted QtDesigner widgets, you can add the following "Dynamic properties" by clicking on the green + in the propreties palette:
* bool collapsed
*/
classGUI_EXPORT QgsCollapsibleGroupBoxBasic : public QGroupBox
{
Q_OBJECT
Q_PROPERTY( bool collapsed READ isCollapsed WRITE setCollapsed USER true )
/** Signal emitted when groupbox collapsed/expanded state is changed, and when first shown */
voidcollapsedStateChanged( bool collapsed );
public slots:
voidcheckToggled( bool ckd );
voidtoggleCollapsed();
protected:
voidinit();
voidshowEvent( QShowEvent *event );
voidmouseReleaseEvent( QMouseEvent *event );
voidchangeEvent( QEvent *event );
voidupdateStyle();
QRect titleRect() const;
boolmCollapsed;
boolmInitFlat;
boolmInitFlatChecked;
boolmScrollOnExpand;
boolmShown;
QScrollArea* mParentScrollArea;
QToolButton* mCollapseButton;
static QIcon mCollapseIcon;
static QIcon mExpandIcon;
};
/** \ingroup gui
* \class QgsCollapsibleGroupBox
* A groupbox that collapses/expands when toggled and can save its collapsed and checked states.
* By default, it auto-saves only its collapsed state to the global settings based on the widget and it's parent names.
* @see basic class QgsCollapsibleGroupBoxBasic which does not auto-save states
* @note To add Collapsible properties in promoted QtDesigner widgets, you can add the following "Dynamic properties" by clicking on the green + in the propreties palette:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters