Skip to content
Permalink
Browse files

added icon for plugin installer in plugin manager

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Mar 28, 2009
1 parent 84435e6 commit 5bfbbb7f0e8669001b4d81c67aaba3ca6b0dc5c5
@@ -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)
Binary file not shown.
@@ -40,6 +40,7 @@
#include <qgsdetaileditemdata.h>

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

#define TESTLIB
@@ -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())
{

0 comments on commit 5bfbbb7

Please sign in to comment.
You can’t perform that action at this time.