Merge pull request #2153 from nirvn/georef_icon_size

[georef] apply user preference icon size to toolbars
This commit is contained in:
Nathan Woodrow 2015-06-20 16:11:22 +10:00
commit d31ba2679d
2 changed files with 8 additions and 1 deletions

View File

@ -994,6 +994,13 @@ void QgsGeorefPluginGui::createMenus()
mToolbarMenu->addAction( toolBarEdit->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
if ( layout != QDialogButtonBox::KdeLayout )
{

View File

@ -164,7 +164,7 @@
</widget>
<widget class="QToolBar" name="toolBarHistogramStretch">
<property name="windowTitle">
<string>toolBar</string>
<string>Histogram</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>