Skip to content
Permalink
Browse files
Identation update
  • Loading branch information
nyalldawson committed Jan 23, 2017
1 parent b586330 commit 963ce09d51705cfaf0fe80089334336b6fbeac5b
Showing with 18 additions and 18 deletions.
  1. +17 −17 src/gui/qgspropertyoverridebutton.cpp
  2. +1 −1 src/gui/qgspropertyoverridebutton.h
@@ -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;
@@ -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 )
@@ -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).

0 comments on commit 963ce09

Please sign in to comment.