Skip to content

Commit

Permalink
Use qgsapplication themepath instead of pkgdatapath for images
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4651 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 11, 2006
1 parent 2ee79cf commit 0be7920
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/gui/qgsmaplayer.cpp
Expand Up @@ -21,7 +21,7 @@
#include <limits>
#include <cmath>

#include <qapplication.h>
#include <qgsapplication.h>
#include <qdatetime.h>
#include <qdom.h>
#include <qfileinfo.h>
Expand Down Expand Up @@ -80,14 +80,10 @@ QgsMapLayer::QgsMapLayer(int type,
ID = lyrname + dt.toString("yyyyMMddhhmmsszzz");
ID.replace(" ", "_");

#if defined(WIN32) || defined(Q_OS_MACX)

QString PKGDATAPATH = qApp->applicationDirPath() + "/share/qgis";
#endif

mInOverviewPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/inoverview.png"));
mEditablePixmap.load(QString(PKGDATAPATH) + QString("/images/icons/editable.png"));
mProjectionErrorPixmap.load(QString(PKGDATAPATH) + QString("/images/icons/icon_projection_problem.png"));
QString myThemePath = QgsApplication::themePath();
mInOverviewPixmap.load(myThemePath + "/mActionInOverview.png");
mEditablePixmap.load(myThemePath + "/mIconEditable.png");
mProjectionErrorPixmap.load(myThemePath + "/mIconProjectionProblem.png");
//mActionInOverview = new QAction( "in Overview", "Ctrl+O", this );

//set some generous defaults for scale based visibility
Expand Down

0 comments on commit 0be7920

Please sign in to comment.