Skip to content

Commit 0931de1

Browse files
author
timlinux
committed
Tidy up for the options window to use top tabs as per gui discussion at Wroclaw Hackfest
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14614 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a40cede commit 0931de1

File tree

2 files changed

+94
-243
lines changed

2 files changed

+94
-243
lines changed

src/app/qgsoptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,15 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
389389
} //default is central point
390390

391391
restoreGeometry( settings.value( "/Windows/Options/geometry" ).toByteArray() );
392-
listWidget->setCurrentRow( settings.value( "/Windows/Options/row" ).toInt() );
392+
tabWidget->setCurrentIndex( settings.value( "/Windows/Options/row" ).toInt() );
393393
}
394394

395395
//! Destructor
396396
QgsOptions::~QgsOptions()
397397
{
398398
QSettings settings;
399399
settings.setValue( "/Windows/Options/geometry", saveGeometry() );
400-
settings.setValue( "/Windows/Options/row", listWidget->currentRow() );
400+
settings.setValue( "/Windows/Options/row", tabWidget->currentIndex() );
401401
}
402402

403403
void QgsOptions::on_pbnSelectionColor_clicked()

0 commit comments

Comments
 (0)