Skip to content

Commit

Permalink
[georef] apply user preference icon size to toolbars
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 20, 2015
1 parent 5dc0db6 commit a811cbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -994,6 +994,13 @@ void QgsGeorefPluginGui::createMenus()
mToolbarMenu->addAction( toolBarEdit->toggleViewAction() ); mToolbarMenu->addAction( toolBarEdit->toggleViewAction() );
mToolbarMenu->addAction( toolBarView->toggleViewAction() ); mToolbarMenu->addAction( toolBarView->toggleViewAction() );


QSettings s;
int size = s.value( "/IconSize", 32 ).toInt();
toolBarFile->setIconSize( QSize( size, size ) );
toolBarEdit->setIconSize( QSize( size, size ) );
toolBarView->setIconSize( QSize( size, size ) );
toolBarHistogramStretch->setIconSize( QSize( size, size ) );

// View menu // View menu
if ( layout != QDialogButtonBox::KdeLayout ) if ( layout != QDialogButtonBox::KdeLayout )
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/georeferencer/qgsgeorefpluginguibase.ui
Expand Up @@ -164,7 +164,7 @@
</widget> </widget>
<widget class="QToolBar" name="toolBarHistogramStretch"> <widget class="QToolBar" name="toolBarHistogramStretch">
<property name="windowTitle"> <property name="windowTitle">
<string>toolBar</string> <string>Histogram</string>
</property> </property>
<attribute name="toolBarArea"> <attribute name="toolBarArea">
<enum>TopToolBarArea</enum> <enum>TopToolBarArea</enum>
Expand Down

0 comments on commit a811cbc

Please sign in to comment.