Skip to content

Commit

Permalink
added icon for plugin installer in plugin manager
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 28, 2009
1 parent 6a4ddd6 commit 4da1971
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/themes/default/CMakeLists.txt
Expand Up @@ -3,3 +3,7 @@ FILE (GLOB IMAGES *.png)

INSTALL (FILES ${IMAGES}
DESTINATION ${QGIS_DATA_DIR}/themes/default)

FILE (GLOB PLUG_IMAGES plugins/*.png)

INSTALL (FILES ${PLUG_IMAGES} DESTINATION ${QGIS_DATA_DIR}/themes/default/plugins)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/app/qgspluginmanager.cpp
Expand Up @@ -40,6 +40,7 @@
#include <qgsdetaileditemdata.h>

#include <qgspythonutils.h>
#include "qgsapplication.h"
#include "qgslogger.h"

#define TESTLIB
Expand Down Expand Up @@ -94,6 +95,18 @@ QgsPluginManager::QgsPluginManager( QgsPythonUtils* pythonUtils, QWidget * paren

qRegisterMetaType<QgsDetailedItemData>();

// add installer's icon
QString myCurThemePath = QgsApplication::activeThemePath() + "/plugins/plugin_installer.png";
QString myDefThemePath = QgsApplication::defaultThemePath() + "/plugins/plugin_installer.png";
if ( QFile::exists( myCurThemePath ) )
{
btnPluginInstaller->setIcon( QIcon( myCurThemePath ) );
}
else if ( QFile::exists( myDefThemePath ) )
{
btnPluginInstaller->setIcon( QIcon( myDefThemePath ) );
}

// check for plugin installer
if (checkForPluginInstaller())
{
Expand Down

0 comments on commit 4da1971

Please sign in to comment.