[QGIS Commit] r10434 - in trunk/qgis: images/themes/default images/themes/default/plugins src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Mar 28 07:58:38 EDT 2009


Author: wonder
Date: 2009-03-28 07:58:38 -0400 (Sat, 28 Mar 2009)
New Revision: 10434

Added:
   trunk/qgis/images/themes/default/plugins/
   trunk/qgis/images/themes/default/plugins/plugin_installer.png
Modified:
   trunk/qgis/images/themes/default/CMakeLists.txt
   trunk/qgis/src/app/qgspluginmanager.cpp
Log:
added icon for plugin installer in plugin manager


Modified: trunk/qgis/images/themes/default/CMakeLists.txt
===================================================================
--- trunk/qgis/images/themes/default/CMakeLists.txt	2009-03-28 02:02:00 UTC (rev 10433)
+++ trunk/qgis/images/themes/default/CMakeLists.txt	2009-03-28 11:58:38 UTC (rev 10434)
@@ -3,3 +3,7 @@
 
 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)

Added: trunk/qgis/images/themes/default/plugins/plugin_installer.png
===================================================================
(Binary files differ)


Property changes on: trunk/qgis/images/themes/default/plugins/plugin_installer.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/qgis/src/app/qgspluginmanager.cpp
===================================================================
--- trunk/qgis/src/app/qgspluginmanager.cpp	2009-03-28 02:02:00 UTC (rev 10433)
+++ trunk/qgis/src/app/qgspluginmanager.cpp	2009-03-28 11:58:38 UTC (rev 10434)
@@ -40,6 +40,7 @@
 #include <qgsdetaileditemdata.h>
 
 #include <qgspythonutils.h>
+#include "qgsapplication.h"
 #include "qgslogger.h"
 
 #define TESTLIB
@@ -94,6 +95,18 @@
 
   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())
   {



More information about the QGIS-commit mailing list