Skip to content

Commit 69d80b9

Browse files
committed
Merge pull request #698 from 3nids/svgpan
SVG for pan icons
2 parents 25e79f9 + 66a7afa commit 69d80b9

12 files changed

+127
-48
lines changed

images/images.qrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@
230230
<file>themes/default/mActionOffsetCurve.png</file>
231231
<file>themes/default/mActionOpenTable.png</file>
232232
<file>themes/default/mActionOptions.svg</file>
233-
<file>themes/default/mActionPan.png</file>
234-
<file>themes/default/mActionPanToSelected.png</file>
233+
<file>themes/default/mActionPan.svg</file>
235234
<file>themes/default/mActionPanToSelected.svg</file>
236235
<file>themes/default/mActionPinLabels.svg</file>
237236
<file>themes/default/mActionProjectProperties.png</file>

images/themes/default/mActionPan.png

-606 Bytes
Binary file not shown.

images/themes/default/mActionPan.svg

+79
Loading
-1.09 KB
Binary file not shown.

images/themes/default/mActionPanToSelected.svg

+38-37
Loading

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ void QgisApp::setTheme( QString theThemeName )
17671767
#ifdef HAVE_TOUCH
17681768
mActionTouch->setIcon( QgsApplication::getThemeIcon( "/mActionTouch.png" ) );
17691769
#endif
1770-
mActionPan->setIcon( QgsApplication::getThemeIcon( "/mActionPan.png" ) );
1770+
mActionPan->setIcon( QgsApplication::getThemeIcon( "/mActionPan.svg" ) );
17711771
mActionPanToSelected->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.svg" ) );
17721772
mActionZoomLast->setIcon( QgsApplication::getThemeIcon( "/mActionZoomLast.svg" ) );
17731773
mActionZoomNext->setIcon( QgsApplication::getThemeIcon( "/mActionZoomNext.svg" ) );

src/app/qgsattributetabledialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
136136
mSelectedToTopButton->setIcon( QgsApplication::getThemeIcon( "/mActionSelectedToTop.png" ) );
137137
mCopySelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionCopySelected.png" ) );
138138
mZoomMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionZoomToSelected.svg" ) );
139-
mPanMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.png" ) );
139+
mPanMapToSelectedRowsButton->setIcon( QgsApplication::getThemeIcon( "/mActionPanToSelected.svg" ) );
140140
mInvertSelectionButton->setIcon( QgsApplication::getThemeIcon( "/mActionInvertSelection.png" ) );
141141
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( "/mActionToggleEditing.svg" ) );
142142
mSaveEditsButton->setIcon( QgsApplication::getThemeIcon( "/mActionSaveEdits.svg" ) );

src/plugins/georeferencer/qgsgeorefplugingui.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ void QgsGeorefPluginGui::createActions()
829829
connect( mActionMoveGCPPoint, SIGNAL( triggered() ), this, SLOT( setMovePointTool() ) );
830830

831831
// View actions
832-
mActionPan->setIcon( getThemeIcon( "/mActionPan.png" ) );
832+
mActionPan->setIcon( getThemeIcon( "/mActionPan.svg" ) );
833833
connect( mActionPan, SIGNAL( triggered() ), this, SLOT( setPanTool() ) );
834834

835835
mActionZoomIn->setIcon( getThemeIcon( "/mActionZoomIn.svg" ) );
@@ -1089,7 +1089,7 @@ void QgsGeorefPluginGui::updateIconTheme( QString theme )
10891089
mActionMoveGCPPoint->setIcon( getThemeIcon( "/mActionMoveGCPPoint.png" ) );
10901090

10911091
// View actions
1092-
mActionPan->setIcon( getThemeIcon( "/mActionPan.png" ) );
1092+
mActionPan->setIcon( getThemeIcon( "/mActionPan.svg" ) );
10931093
mActionZoomIn->setIcon( getThemeIcon( "/mActionZoomIn.svg" ) );
10941094
mActionZoomOut->setIcon( getThemeIcon( "/mActionZoomOut.svg" ) );
10951095
mActionZoomToLayer->setIcon( getThemeIcon( "/mActionZoomToLayer.svg" ) );

src/ui/qgisapp.ui

+2-2
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@
799799
</property>
800800
<property name="icon">
801801
<iconset resource="../../images/images.qrc">
802-
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
802+
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
803803
</property>
804804
<property name="text">
805805
<string>Pan Map</string>
@@ -1688,7 +1688,7 @@ Ctl (Cmd) increments by 15 deg.</string>
16881688
<action name="mActionPanToSelected">
16891689
<property name="icon">
16901690
<iconset resource="../../images/images.qrc">
1691-
<normaloff>:/images/themes/default/mActionPanToSelected.png</normaloff>:/images/themes/default/mActionPanToSelected.png</iconset>
1691+
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>:/images/themes/default/mActionPanToSelected.svg</iconset>
16921692
</property>
16931693
<property name="text">
16941694
<string>Pan Map to Selection</string>

src/ui/qgsattributetabledialog.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
</property>
245245
<property name="icon">
246246
<iconset>
247-
<normaloff>:/images/themes/default/mActionPanToSelected.png</normaloff>:/images/themes/default/mActionPanToSelected.png</iconset>
247+
<normaloff>:/images/themes/default/mActionPanToSelected.svg</normaloff>../../images/themes/default/mActionPanToSelected.svg</iconset>
248248
</property>
249249
<property name="iconSize">
250250
<size>

src/ui/qgscomposerbase.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
<action name="mActionSelectMoveItem">
211211
<property name="icon">
212212
<iconset resource="../../images/images.qrc">
213-
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
213+
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
214214
</property>
215215
<property name="text">
216216
<string>Move Item</string>

src/ui/qgslabelingguibase.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@
550550
</property>
551551
<property name="icon">
552552
<iconset resource="../../images/images.qrc">
553-
<normaloff>:/images/themes/default/mActionPan.png</normaloff>:/images/themes/default/mActionPan.png</iconset>
553+
<normaloff>:/images/themes/default/mActionPan.svg</normaloff>:/images/themes/default/mActionPan.svg</iconset>
554554
</property>
555555
</item>
556556
<item>

0 commit comments

Comments
 (0)