Skip to content
Permalink
Browse files

Merge pull request #2153 from nirvn/georef_icon_size

[georef] apply user preference icon size to toolbars
  • Loading branch information
NathanW2 committed Jun 20, 2015
2 parents 5dc0db6 + a811cbc commit d31ba2679d472bba09648c048a2fd6073c303fee
@@ -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 )
{
@@ -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>

0 comments on commit d31ba26

Please sign in to comment.
You can’t perform that action at this time.