Skip to content

Commit

Permalink
Identation update
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent b586330 commit 963ce09
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions src/gui/qgspropertyoverridebutton.cpp
Expand Up @@ -202,7 +202,7 @@ void QgsPropertyOverrideButton::setVectorLayer( const QgsVectorLayer* layer )

void QgsPropertyOverrideButton::registerCheckedWidget( QWidget* widget )
{
Q_FOREACH( const QPointer<QWidget>& w, mCheckedWidgets )
Q_FOREACH ( const QPointer<QWidget>& w, mCheckedWidgets )
{
if ( widget == w.data() )
return;
Expand Down Expand Up @@ -620,26 +620,26 @@ void QgsPropertyOverrideButton::setActivePrivate( bool active )

void QgsPropertyOverrideButton::checkCheckedWidgets( bool check )
{
// don't uncheck, only set to checked
if ( !check )
// don't uncheck, only set to checked
if ( !check )
{
return;
}

Q_FOREACH ( const QPointer< QWidget >& w, mCheckedWidgets )
{
QAbstractButton *btn = qobject_cast< QAbstractButton * >( w.data() );
if ( btn && btn->isCheckable() )
{
return;
btn->setChecked( true );
continue;
}

Q_FOREACH( const QPointer< QWidget >& w, mCheckedWidgets )
QGroupBox *grpbx = qobject_cast< QGroupBox * >( w.data() );
if ( grpbx && grpbx->isCheckable() )
{
QAbstractButton *btn = qobject_cast< QAbstractButton * >( w.data() );
if ( btn && btn->isCheckable() )
{
btn->setChecked( true );
continue;
}
QGroupBox *grpbx = qobject_cast< QGroupBox * >( w.data() );
if ( grpbx && grpbx->isCheckable() )
{
grpbx->setChecked( true );
}
grpbx->setChecked( true );
}
}
}

void QgsPropertyOverrideButton::setActive( bool active )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgspropertyoverridebutton.h
Expand Up @@ -59,7 +59,7 @@ class GUI_EXPORT QgsPropertyOverrideButton: public QToolButton
* @param layer associated vector layer
*/
QgsPropertyOverrideButton( QWidget* parent = nullptr,
const QgsVectorLayer* layer = nullptr );
const QgsVectorLayer* layer = nullptr );

/**
* Initialize a newly constructed property button (useful if button was included in a UI layout).
Expand Down

0 comments on commit 963ce09

Please sign in to comment.