Skip to content

Commit

Permalink
Include north arrow image in the resources
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jul 24, 2011
1 parent fe65ed7 commit 6d85c9a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion images/CMakeLists.txt
Expand Up @@ -10,7 +10,6 @@ QT4_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})

########################################################
# Continue on to subdirs
ADD_SUBDIRECTORY(north_arrows)
ADD_SUBDIRECTORY(icons)
ADD_SUBDIRECTORY(themes)
ADD_SUBDIRECTORY(svg)
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -347,6 +347,7 @@
<file>themes/gis/plugins/spit.png</file>
<file>themes/gis/plugins/wfs.png</file>
<file>splash/splash.png</file>
<file>north_arrows/default.png</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
5 changes: 0 additions & 5 deletions images/north_arrows/CMakeLists.txt

This file was deleted.

3 changes: 1 addition & 2 deletions src/plugins/north_arrow/plugin.cpp
Expand Up @@ -167,8 +167,7 @@ void QgsNorthArrowPlugin::renderNorthArrow( QPainter * theQPainter )

QPixmap myQPixmap; //to store the north arrow image in

QString myFileNameQString = QDir::cleanPath( QgsApplication::pkgDataPath() +
"/images/north_arrows/default.png" );
QString myFileNameQString = ":/images/north_arrows/default.png";

//QgsDebugMsg("Trying to load " + myFileNameQString);
if ( myQPixmap.load( myFileNameQString ) )
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/north_arrow/plugingui.cpp
Expand Up @@ -97,7 +97,7 @@ void QgsNorthArrowPluginGui::on_sliderRotation_valueChanged( int theInt )
void QgsNorthArrowPluginGui::rotatePixmap( int theRotationInt )
{
QPixmap myQPixmap;
QString myFileNameQString = QgsApplication::pkgDataPath() + "/images/north_arrows/default.png";
QString myFileNameQString = ":/images/north_arrows/default.png";
// QgsDebugMsg(QString("Trying to load %1").arg(myFileNameQString));
if ( myQPixmap.load( myFileNameQString ) )
{
Expand Down

0 comments on commit 6d85c9a

Please sign in to comment.