Skip to content

Commit c4ef70e

Browse files
committedApr 23, 2018
New icons for identify modes
1 parent 8c7b632 commit c4ef70e

8 files changed

+264
-10
lines changed
 

‎images/images.qrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@
649649
<file>themes/default/mActionNewReport.svg</file>
650650
<file>themes/default/mIconReport.svg</file>
651651
<file>themes/default/downloading_svg.svg</file>
652+
<file>themes/default/mActionIdentifyByFreehand.svg</file>
653+
<file>themes/default/mActionIdentifyByPolygon.svg</file>
654+
<file>themes/default/mActionIdentifyByRadius.svg</file>
655+
<file>themes/default/mActionIdentifyByRectangle.svg</file>
652656
</qresource>
653657
<qresource prefix="/images/tips">
654658
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Lines changed: 63 additions & 0 deletions
Loading
Lines changed: 63 additions & 0 deletions
Loading
Lines changed: 68 additions & 0 deletions
Loading
Lines changed: 59 additions & 0 deletions
Loading

‎src/app/qgsidentifyresultsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ void QgsIdentifyResultsDialog::setSelectionMode()
20482048
emit selectionModeChanged();
20492049
}
20502050

2051-
QgsMapToolSelectionHandler::SelectionMode QgsIdentifyResultsDialog::selectionMode()
2051+
QgsMapToolSelectionHandler::SelectionMode QgsIdentifyResultsDialog::selectionMode() const
20522052
{
20532053
return mSelectionMode;
20542054
}

‎src/app/qgsidentifyresultsdialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti
168168
*/
169169
QgsExpressionContextScope expressionContextScope() const;
170170

171-
QgsMapToolSelectionHandler::SelectionMode selectionMode();
171+
QgsMapToolSelectionHandler::SelectionMode selectionMode() const;
172172

173173
signals:
174174
void selectedFeatureChanged( QgsVectorLayer *, QgsFeatureId featureId );

‎src/ui/qgsidentifyresultsbase.ui

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,10 @@
339339
<string>Print Selected HTML Response</string>
340340
</property>
341341
</action>
342-
343-
<action name="mActionSelectFeatures">
342+
<action name="mActionSelectFeatures">
344343
<property name="icon">
345344
<iconset resource="../../images/images.qrc">
346-
<normaloff>:/images/themes/default/mActionSelectRectangle.svg</normaloff>:/images/themes/default/mActionSelectRectangle.svg</iconset>
345+
<normaloff>:/images/themes/default/mActionIdentifyByRectangle.svg</normaloff>:/images/themes/default/mActionIdentifyByRectangle.svg</iconset>
347346
</property>
348347
<property name="text">
349348
<string>Identify Feature(s)</string>
@@ -355,7 +354,7 @@
355354
<action name="mActionSelectPolygon">
356355
<property name="icon">
357356
<iconset resource="../../images/images.qrc">
358-
<normaloff>:/images/themes/default/mActionSelectPolygon.svg</normaloff>:/images/themes/default/mActionSelectPolygon.svg</iconset>
357+
<normaloff>:/images/themes/default/mActionIdentifyByPolygon.svg</normaloff>:/images/themes/default/mActionIdentifyByPolygon.svg</iconset>
359358
</property>
360359
<property name="text">
361360
<string>Identify Features by Polygon</string>
@@ -364,7 +363,7 @@
364363
<action name="mActionSelectFreehand">
365364
<property name="icon">
366365
<iconset resource="../../images/images.qrc">
367-
<normaloff>:/images/themes/default/mActionSelectFreehand.svg</normaloff>:/images/themes/default/mActionSelectFreehand.svg</iconset>
366+
<normaloff>:/images/themes/default/mActionIdentifyByFreehand.svg</normaloff>:/images/themes/default/mActionIdentifyByFreehand.svg</iconset>
368367
</property>
369368
<property name="text">
370369
<string>Identify Features by Freehand</string>
@@ -373,14 +372,12 @@
373372
<action name="mActionSelectRadius">
374373
<property name="icon">
375374
<iconset resource="../../images/images.qrc">
376-
<normaloff>:/images/themes/default/mActionSelectRadius.svg</normaloff>:/images/themes/default/mActionSelectRadius.svg</iconset>
375+
<normaloff>:/images/themes/default/mActionIdentifyByRadius.svg</normaloff>:/images/themes/default/mActionIdentifyByRadius.svg</iconset>
377376
</property>
378377
<property name="text">
379378
<string>Identify Features by Radius</string>
380379
</property>
381380
</action>
382-
383-
384381
</widget>
385382
<layoutdefault spacing="6" margin="11"/>
386383
<customwidgets>

0 commit comments

Comments
 (0)
Please sign in to comment.