@@ -29,7 +29,7 @@ QIcon QgsCollapsibleGroupBox::mCollapseIcon;
29
29
QIcon QgsCollapsibleGroupBox::mExpandIcon ;
30
30
31
31
QgsCollapsibleGroupBox::QgsCollapsibleGroupBox ( QWidget *parent )
32
- : QGroupBox( parent ), mCollapsed( false ), mSaveState( true )
32
+ : QGroupBox( parent ), mCollapsed( false ), mSaveState( true )
33
33
{
34
34
init ();
35
35
}
@@ -88,10 +88,10 @@ void QgsCollapsibleGroupBox::showEvent( QShowEvent * event )
88
88
event->accept ();
89
89
}
90
90
91
- void QgsCollapsibleGroupBox::mouseReleaseEvent ( QMouseEvent *event )
91
+ void QgsCollapsibleGroupBox::mouseReleaseEvent ( QMouseEvent *event )
92
92
{
93
93
// catch mouse release over title when non checkable, to collapse/expand
94
- if ( !isCheckable () && event->button () == Qt::LeftButton )
94
+ if ( !isCheckable () && event->button () == Qt::LeftButton )
95
95
{
96
96
if ( titleRect ().contains ( event->pos () ) )
97
97
{
@@ -107,7 +107,7 @@ QRect QgsCollapsibleGroupBox::titleRect() const
107
107
{
108
108
QStyleOptionGroupBox box;
109
109
initStyleOption ( &box );
110
- return style ()->subControlRect ( QStyle::CC_GroupBox, &box,
110
+ return style ()->subControlRect ( QStyle::CC_GroupBox, &box,
111
111
QStyle::SC_GroupBoxLabel, this );
112
112
}
113
113
@@ -131,9 +131,9 @@ QString QgsCollapsibleGroupBox::saveKey() const
131
131
132
132
void QgsCollapsibleGroupBox::loadState ()
133
133
{
134
- if ( ! mSaveState )
134
+ if ( ! mSaveState )
135
135
return ;
136
-
136
+
137
137
setUpdatesEnabled ( false );
138
138
139
139
QSettings settings;
@@ -150,7 +150,7 @@ void QgsCollapsibleGroupBox::loadState()
150
150
151
151
void QgsCollapsibleGroupBox::saveState ()
152
152
{
153
- if ( ! mSaveState )
153
+ if ( ! mSaveState )
154
154
return ;
155
155
QgsDebugMsg ( " key = " + saveKey () + " objectName = " + objectName () );
156
156
QSettings settings;
0 commit comments