Skip to content

Commit

Permalink
Added icons for different projection classes in projection selector
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9013 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 7, 2008
1 parent d1e456f commit 864fd7a
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
Binary file added images/themes/default/geographic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/default/transformed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/default/user.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 110 additions & 0 deletions images/themes/default/user.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/gui/qgsprojectionselector.cpp
Expand Up @@ -496,7 +496,9 @@ void QgsProjectionSelector::applyUserProjList(QSet<QString> * crsFilter)

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

//determine where the user proj database lives for this user. If none is found an empty
//now only will be shown
Expand Down Expand Up @@ -568,17 +570,21 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
//
// Geographic coordinate system node
mGeoList = new QTreeWidgetItem(lstCoordinateSystems,QStringList(tr("Geographic Coordinate Systems")));

QFont fontTemp = mGeoList->font(0);
fontTemp.setItalic(TRUE);
fontTemp.setBold(TRUE);
mGeoList->setFont(0, fontTemp);
mGeoList->setIcon(0,QIcon(QgsApplication::activeThemePath()+"geographic.png"));

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

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

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

0 comments on commit 864fd7a

Please sign in to comment.