Skip to content

Commit

Permalink
Clean with prepare-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 11, 2012
1 parent 6787a87 commit 77c6842
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gui/qgscollapsiblegroupbox.cpp
Expand Up @@ -29,7 +29,7 @@ QIcon QgsCollapsibleGroupBox::mCollapseIcon;
QIcon QgsCollapsibleGroupBox::mExpandIcon;

QgsCollapsibleGroupBox::QgsCollapsibleGroupBox( QWidget *parent )
: QGroupBox( parent ), mCollapsed( false ), mSaveState( true )
: QGroupBox( parent ), mCollapsed( false ), mSaveState( true )
{
init();
}
Expand Down Expand Up @@ -88,10 +88,10 @@ void QgsCollapsibleGroupBox::showEvent( QShowEvent * event )
event->accept();
}

void QgsCollapsibleGroupBox::mouseReleaseEvent( QMouseEvent *event )
void QgsCollapsibleGroupBox::mouseReleaseEvent( QMouseEvent *event )
{
// catch mouse release over title when non checkable, to collapse/expand
if ( !isCheckable() && event->button() == Qt::LeftButton )
if ( !isCheckable() && event->button() == Qt::LeftButton )
{
if ( titleRect().contains( event->pos() ) )
{
Expand All @@ -107,7 +107,7 @@ QRect QgsCollapsibleGroupBox::titleRect() const
{
QStyleOptionGroupBox box;
initStyleOption( &box );
return style()->subControlRect( QStyle::CC_GroupBox, &box,
return style()->subControlRect( QStyle::CC_GroupBox, &box,
QStyle::SC_GroupBoxLabel, this );
}

Expand All @@ -131,9 +131,9 @@ QString QgsCollapsibleGroupBox::saveKey() const

void QgsCollapsibleGroupBox::loadState()
{
if ( ! mSaveState )
if ( ! mSaveState )
return;

setUpdatesEnabled( false );

QSettings settings;
Expand All @@ -150,7 +150,7 @@ void QgsCollapsibleGroupBox::loadState()

void QgsCollapsibleGroupBox::saveState()
{
if ( ! mSaveState )
if ( ! mSaveState )
return;
QgsDebugMsg( "key = " + saveKey() + " objectName = " + objectName() );
QSettings settings;
Expand Down

0 comments on commit 77c6842

Please sign in to comment.