Browse Source

Add missing icon for the about dialog.

git-svn-id: file:///var/svn/tigccpp/trunk@565 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 years ago
parent
commit
ae9705b0a9
4 changed files with 6 additions and 2 deletions
  1. 2 1
      ktigcc/KTIGCC.prj
  2. BIN
      ktigcc/images/icon.png
  3. 2 0
      ktigcc/ktigcc.cpp
  4. 2 1
      ktigcc/ktigcc.pro

+ 2 - 1
ktigcc/KTIGCC.prj

@@ -128,7 +128,8 @@ module.pixmap.files=\
 	images/24\
 	images/25\
 	images/26\
-	images/27
+	images/27\
+	images/icon.png
 
 module.data.name=.
 module.data.type=

BIN
ktigcc/images/icon.png


+ 2 - 0
ktigcc/ktigcc.cpp

@@ -23,6 +23,7 @@
 #include <cstdlib>
 #include <unistd.h>
 #include <qstring.h>
+#include <qimage.h>
 #include <kapplication.h>
 #include <kcmdlineargs.h>
 #include <kaboutdata.h>
@@ -77,6 +78,7 @@ int main( int argc, char *argv[] )
   // Readd the images KDE kindly removes...
   qCleanupImages_ktigcc();
   qInitImages_ktigcc();
+  about.setProgramLogo(QImage::fromMimeSource("icon.png"));
   KConfig config("ktigccrc");
   pconfig=&config;
   

+ 2 - 1
ktigcc/ktigcc.pro

@@ -54,7 +54,8 @@ IMAGES	= images/00 \
 	images/fileo.png \
 	images/files.png \
 	images/filet.png \
-	images/filex.png
+	images/filex.png \
+	images/icon.png
 
 # If this is not used, a build from /usr/.... will generate
 # Makefiles with relative paths for install.  This totally