Skip to content

Commit a811cbc

Browse files
committedJun 20, 2015
[georef] apply user preference icon size to toolbars
1 parent 5dc0db6 commit a811cbc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎src/plugins/georeferencer/qgsgeorefplugingui.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,13 @@ void QgsGeorefPluginGui::createMenus()
994994
mToolbarMenu->addAction( toolBarEdit->toggleViewAction() );
995995
mToolbarMenu->addAction( toolBarView->toggleViewAction() );
996996

997+
QSettings s;
998+
int size = s.value( "/IconSize", 32 ).toInt();
999+
toolBarFile->setIconSize( QSize( size, size ) );
1000+
toolBarEdit->setIconSize( QSize( size, size ) );
1001+
toolBarView->setIconSize( QSize( size, size ) );
1002+
toolBarHistogramStretch->setIconSize( QSize( size, size ) );
1003+
9971004
// View menu
9981005
if ( layout != QDialogButtonBox::KdeLayout )
9991006
{

‎src/plugins/georeferencer/qgsgeorefpluginguibase.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
</widget>
165165
<widget class="QToolBar" name="toolBarHistogramStretch">
166166
<property name="windowTitle">
167-
<string>toolBar</string>
167+
<string>Histogram</string>
168168
</property>
169169
<attribute name="toolBarArea">
170170
<enum>TopToolBarArea</enum>

0 commit comments

Comments
 (0)
Please sign in to comment.