Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt authored and nyalldawson committed Feb 17, 2024
1 parent c418467 commit b572110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayerloadstyledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void QgsMapLayerLoadStyleDialog::invertSelection()
for ( int i = 0; i < mModel->rowCount( QModelIndex() ); i++ )
{
QModelIndex index = mModel->index( i, 0 );
Qt::CheckState currentState = Qt::CheckState( mModel->data(index, Qt::CheckStateRole).toInt() );
Qt::CheckState currentState = Qt::CheckState( mModel->data( index, Qt::CheckStateRole ).toInt() );
Qt::CheckState newState = ( currentState == Qt::Checked ) ? Qt::Unchecked : Qt::Checked;
mModel->setData( index, newState, Qt::CheckStateRole );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayersavestyledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void QgsMapLayerSaveStyleDialog::invertSelection()
for ( int i = 0; i < mModel->rowCount( QModelIndex() ); i++ )
{
QModelIndex index = mModel->index( i, 0 );
Qt::CheckState currentState = Qt::CheckState( mModel->data(index, Qt::CheckStateRole).toInt() );
Qt::CheckState currentState = Qt::CheckState( mModel->data( index, Qt::CheckStateRole ).toInt() );
Qt::CheckState newState = ( currentState == Qt::Checked ) ? Qt::Unchecked : Qt::Checked;
mModel->setData( index, newState, Qt::CheckStateRole );
}
Expand Down

0 comments on commit b572110

Please sign in to comment.