We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 0cf0921 commit dd89cfdCopy full SHA for dd89cfd
src/composer/qgscomposer.cpp
@@ -17,6 +17,7 @@
17
#include "qgscomposer.h"
18
19
#include "qgisapp.h"
20
+#include "qgsapplication.h"
21
#include "qgscomposerview.h"
22
#include "qgscomposition.h"
23
#include "qgsexception.h"
@@ -84,14 +85,7 @@ QgsComposer::~QgsComposer()
84
85
void QgsComposer::setupTheme()
86
{
87
//calculate the active theme path
- 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;
+ QString myThemePath= QgsApplication::themePath();
95
96
97
//now set all the icons
0 commit comments