File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 21
21
#include < limits>
22
22
#include < cmath>
23
23
24
- #include < qapplication .h>
24
+ #include < qgsapplication .h>
25
25
#include < qdatetime.h>
26
26
#include < qdom.h>
27
27
#include < qfileinfo.h>
@@ -80,14 +80,10 @@ QgsMapLayer::QgsMapLayer(int type,
80
80
ID = lyrname + dt.toString (" yyyyMMddhhmmsszzz" );
81
81
ID.replace (" " , " _" );
82
82
83
- #if defined(WIN32) || defined(Q_OS_MACX)
84
-
85
- QString PKGDATAPATH = qApp->applicationDirPath () + " /share/qgis" ;
86
- #endif
87
-
88
- mInOverviewPixmap .load (QString (PKGDATAPATH) + QString (" /images/icons/inoverview.png" ));
89
- mEditablePixmap .load (QString (PKGDATAPATH) + QString (" /images/icons/editable.png" ));
90
- mProjectionErrorPixmap .load (QString (PKGDATAPATH) + QString (" /images/icons/icon_projection_problem.png" ));
83
+ QString myThemePath = QgsApplication::themePath ();
84
+ mInOverviewPixmap .load (myThemePath + " /mActionInOverview.png" );
85
+ mEditablePixmap .load (myThemePath + " /mIconEditable.png" );
86
+ mProjectionErrorPixmap .load (myThemePath + " /mIconProjectionProblem.png" );
91
87
// mActionInOverview = new QAction( "in Overview", "Ctrl+O", this );
92
88
93
89
// set some generous defaults for scale based visibility
You can’t perform that action at this time.
0 commit comments