Skip to content

Commit

Permalink
Use QgsApplication::themPath() to determin where icons are
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4634 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 10, 2006
1 parent 0cf0921 commit dd89cfd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/composer/qgscomposer.cpp
Expand Up @@ -17,6 +17,7 @@
#include "qgscomposer.h"

#include "qgisapp.h"
#include "qgsapplication.h"
#include "qgscomposerview.h"
#include "qgscomposition.h"
#include "qgsexception.h"
Expand Down Expand Up @@ -84,14 +85,7 @@ QgsComposer::~QgsComposer()
void QgsComposer::setupTheme()
{
//calculate the active theme path
QSettings mySettings;
#if defined(WIN32) || defined(Q_OS_MACX)
QString myAppDir = qApp->applicationDirPath();
#else
QString myAppDir = PREFIX;
#endif
QString myThemeName = mySettings.readEntry("/Themes","default");
QString myThemePath= myAppDir + "/share/qgis/themes/" + myThemeName;
QString myThemePath= QgsApplication::themePath();


//now set all the icons
Expand Down

0 comments on commit dd89cfd

Please sign in to comment.