Skip to content

Commit

Permalink
Mac app/window icon from resource, not xpm
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
kyngchaos committed Dec 22, 2009
1 parent 79a05cf commit bf04cc0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/core/qgsapplication.cpp
Expand Up @@ -23,9 +23,12 @@
#include <QPalette>
#include <QSettings>

#ifndef Q_WS_WIN // (if Windows, use icon from resource)
#include "../../images/themes/default/qgis.xpm" // Linux/Mac
// (if Windows/Mac, use icon from resource)
#if ! defined(Q_WS_WIN) && ! defined(Q_WS_MAC)
#include "../../images/themes/default/qgis.xpm" // Linux
#include <QIcon>
#endif
#ifndef Q_WS_WIN
#include <netinet/in.h>
#else
#include <winsock.h>
Expand Down Expand Up @@ -65,9 +68,9 @@ QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled )
setPrefixPath( myPrefix, true );
#endif

// set application's icon
#ifndef Q_WS_WIN // (if Windows, use icon from resource)
setWindowIcon( QPixmap( qgis_xpm ) ); // Linux/Mac
// set application's icon (if Windows/Mac, use icon from resource)
#if ! defined(Q_WS_WIN) && ! defined(Q_WS_MAC)
setWindowIcon( QPixmap( qgis_xpm ) ); // Linux
#endif
}

Expand Down

0 comments on commit bf04cc0

Please sign in to comment.