Skip to content

Commit 1d7a49f

Browse files
author
wonder
committed
Symbol props dialog: Locked/unlocked icons instead of just showing locked icon.
This should allow users easily identify the current state. Default icons from Nuvola icon set, gis/newgis icons from Robert. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15688 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3c50546 commit 1d7a49f

File tree

9 files changed

+432
-424
lines changed

9 files changed

+432
-424
lines changed

images/images.qrc

+428-423
Large diffs are not rendered by default.

images/themes/default/locked.png

1.4 KB
Loading
-3.52 KB
Binary file not shown.

images/themes/default/unlocked.png

1.4 KB
Loading

images/themes/gis/locked.png

883 Bytes
Loading

images/themes/gis/unlocked.png

880 Bytes
Loading

images/themes/newgis/locked.png

883 Bytes
Loading

images/themes/newgis/unlocked.png

880 Bytes
Loading

src/gui/symbology-ng/qgssymbolv2propertiesdialog.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ QgsSymbolV2PropertiesDialog::QgsSymbolV2PropertiesDialog( QgsSymbolV2* symbol, Q
109109
// setup icons
110110
btnAddLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyAdd.png" ) ) );
111111
btnRemoveLayer->setIcon( QIcon( QgsApplication::iconPath( "symbologyRemove.png" ) ) );
112-
btnLock->setIcon( QIcon( QgsApplication::iconPath( "symbologyLock.png" ) ) );
112+
QIcon iconLock;
113+
iconLock.addFile( QgsApplication::iconPath( "locked.png" ), QSize(), QIcon::Normal, QIcon::On );
114+
iconLock.addFile( QgsApplication::iconPath( "unlocked.png" ), QSize(), QIcon::Normal, QIcon::Off );
115+
btnLock->setIcon( iconLock );
113116
btnUp->setIcon( QIcon( QgsApplication::iconPath( "symbologyUp.png" ) ) );
114117
btnDown->setIcon( QIcon( QgsApplication::iconPath( "symbologyDown.png" ) ) );
115118

0 commit comments

Comments
 (0)