Skip to content

Commit 864fd7a

Browse files
author
timlinux
committed
Added icons for different projection classes in projection selector
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9013 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d1e456f commit 864fd7a

File tree

5 files changed

+117
-1
lines changed

5 files changed

+117
-1
lines changed

images/themes/default/geographic.png

3.54 KB
Loading

images/themes/default/transformed.png

3.27 KB
Loading

images/themes/default/user.png

1.23 KB
Loading

images/themes/default/user.svg

+110
Loading

src/gui/qgsprojectionselector.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,9 @@ void QgsProjectionSelector::applyUserProjList(QSet<QString> * crsFilter)
496496

497497
QFont fontTemp = mUserProjList->font(0);
498498
fontTemp.setItalic(TRUE);
499+
fontTemp.setBold(TRUE);
499500
mUserProjList->setFont(0, fontTemp);
501+
mUserProjList->setIcon(0,QIcon(QgsApplication::activeThemePath()+"user.png"));
500502

501503
//determine where the user proj database lives for this user. If none is found an empty
502504
//now only will be shown
@@ -568,17 +570,21 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
568570
//
569571
// Geographic coordinate system node
570572
mGeoList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("Geographic Coordinate Systems")));
571-
573+
572574
QFont fontTemp = mGeoList->font(0);
573575
fontTemp.setItalic(TRUE);
576+
fontTemp.setBold(TRUE);
574577
mGeoList->setFont(0, fontTemp);
578+
mGeoList->setIcon(0,QIcon(QgsApplication::activeThemePath()+"geographic.png"));
575579

576580
// Projected coordinate system node
577581
mProjList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("Projected Coordinate Systems")));
578582

579583
fontTemp = mProjList->font(0);
580584
fontTemp.setItalic(TRUE);
585+
fontTemp.setBold(TRUE);
581586
mProjList->setFont(0, fontTemp);
587+
mProjList->setIcon(0,QIcon(QgsApplication::activeThemePath()+"transformed.png"));
582588

583589
//bail out in case the projections db does not exist
584590
//this is neccessary in case the pc is running linux with a

0 commit comments

Comments
 (0)