File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ class QgsCollapsibleGroupBoxBasic : QGroupBox
28
28
29
29
//! set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded
30
30
void setScrollOnExpand( bool scroll );
31
+
32
+ bool scrollOnExpand();
31
33
32
34
signals:
33
35
/** Signal emitted when groupbox collapsed/expanded state is changed, and when first shown */
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class GUI_EXPORT QgsCollapsibleGroupBoxBasic : public QGroupBox
74
74
75
75
Q_PROPERTY ( bool collapsed READ isCollapsed WRITE setCollapsed USER true )
76
76
Q_PROPERTY ( QString syncGroup READ syncGroup WRITE setSyncGroup )
77
+ Q_PROPERTY ( bool scrollOnExpand READ scrollOnExpand WRITE setScrollOnExpand )
77
78
78
79
public:
79
80
QgsCollapsibleGroupBoxBasic ( QWidget *parent = 0 );
@@ -90,6 +91,8 @@ class GUI_EXPORT QgsCollapsibleGroupBoxBasic : public QGroupBox
90
91
// ! set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded
91
92
void setScrollOnExpand ( bool scroll ) { mScrollOnExpand = scroll; }
92
93
94
+ bool scrollOnExpand () {return mScrollOnExpand ;}
95
+
93
96
signals:
94
97
/* * Signal emitted when groupbox collapsed/expanded state is changed, and when first shown */
95
98
void collapsedStateChanged ( bool collapsed );
@@ -150,6 +153,7 @@ class GUI_EXPORT QgsCollapsibleGroupBox : public QgsCollapsibleGroupBoxBasic
150
153
Q_PROPERTY ( bool saveCollapsedState READ saveCollapsedState WRITE setSaveCollapsedState )
151
154
Q_PROPERTY ( bool saveCheckedState READ saveCheckedState WRITE setSaveCheckedState )
152
155
Q_PROPERTY ( QString syncGroup READ syncGroup WRITE setSyncGroup )
156
+ Q_PROPERTY ( bool scrollOnExpand READ scrollOnExpand WRITE setScrollOnExpand )
153
157
154
158
public:
155
159
QgsCollapsibleGroupBox ( QWidget *parent = 0 , QSettings* settings = 0 );
You can’t perform that action at this time.
0 commit comments