Skip to content

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
 

‎src/composer/qgscomposer.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "qgscomposer.h"
1818

1919
#include "qgisapp.h"
20+
#include "qgsapplication.h"
2021
#include "qgscomposerview.h"
2122
#include "qgscomposition.h"
2223
#include "qgsexception.h"
@@ -84,14 +85,7 @@ QgsComposer::~QgsComposer()
8485
void QgsComposer::setupTheme()
8586
{
8687
//calculate the active theme path
87-
QSettings mySettings;
88-
#if defined(WIN32) || defined(Q_OS_MACX)
89-
QString myAppDir = qApp->applicationDirPath();
90-
#else
91-
QString myAppDir = PREFIX;
92-
#endif
93-
QString myThemeName = mySettings.readEntry("/Themes","default");
94-
QString myThemePath= myAppDir + "/share/qgis/themes/" + myThemeName;
88+
QString myThemePath= QgsApplication::themePath();
9589

9690

9791
//now set all the icons

0 commit comments

Comments
 (0)
Please sign in to comment.