Skip to content
Permalink
Browse files

added icon for plugin installer in plugin manager

git-svn-id: http://svn.osgeo.org/qgis/trunk@10434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Mar 28, 2009
1 parent 6a4ddd6 commit 4da19712a5642107a5eb01b220ad54a11bdfc5fb
@@ -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 4da1971

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