Skip to content

Commit ca3c014

Browse files
author
jef
committedNov 16, 2009
automatic indentation update (r11371-r12139)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12141 c8812cc2-4d05-0410-92ff-de0c093fc19c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+740
-731
lines changed
 

‎src/app/attributetable/qgsattributetabledialog.cpp

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void QgsAttributeTableDialog::updateRowSelection( int first, int last, int click
389389
if ( clickType == 0 ) // Single click
390390
{
391391
if ( mSelectedFeatures.size() == 1 && wasSelected ) // One item selected
392-
return; // Click over a selected item doesn't do anything
392+
return; // Click over a selected item doesn't do anything
393393

394394
mView->setCurrentIndex( mFilterModel->index( first, 0 ) );
395395
mView->selectRow( first );
@@ -418,10 +418,14 @@ void QgsAttributeTableDialog::updateRowSelection( int first, int last, int click
418418

419419
// Remove items in mSelectedFeatures if they aren't in mNewSelection
420420
QgsFeatureIds::Iterator it = mSelectedFeatures.begin();
421-
while ( it != mSelectedFeatures.end() ) {
422-
if ( !newSelection.contains( *it ) ) {
421+
while ( it != mSelectedFeatures.end() )
422+
{
423+
if ( !newSelection.contains( *it ) )
424+
{
423425
it = mSelectedFeatures.erase( it );
424-
} else {
426+
}
427+
else
428+
{
425429
++it;
426430
}
427431
}
@@ -461,10 +465,14 @@ void QgsAttributeTableDialog::updateRowSelection( int first, int last, int click
461465

462466
// Remove items in mSelectedFeatures if they aren't in mNewSelection
463467
QgsFeatureIds::Iterator it = mSelectedFeatures.begin();
464-
while ( it != mSelectedFeatures.end() ) {
465-
if ( !newSelection.contains( *it ) ) {
468+
while ( it != mSelectedFeatures.end() )
469+
{
470+
if ( !newSelection.contains( *it ) )
471+
{
466472
it = mSelectedFeatures.erase( it );
467-
} else {
473+
}
474+
else
475+
{
468476
++it;
469477
}
470478
}

‎src/app/composer/qgscomposerlegendwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ QgsComposerLegendWidget::QgsComposerLegendWidget( QgsComposerLegend* legend ): m
2727

2828
//add widget for item properties
2929
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, legend );
30-
toolBox->addItem( itemPropertiesWidget, tr( "Item Options") );
31-
30+
toolBox->addItem( itemPropertiesWidget, tr( "Item Options" ) );
31+
3232
if ( legend )
3333
{
3434
mItemTreeView->setModel( legend->model() );

0 commit comments

Comments
 (0)
Please sign in to comment.