changeset 197:2afac743acdf

* Add (rather crappy) program icon. Still lacks platform icon support on OS/X and Linux/X11
author Chris Cannam
date Mon, 03 Jan 2011 12:35:13 +0000
parents dbc8d97caaf4
children 4adbd5c9c15d
files easyhg-icon.ico easyhg.pro easyhg.qrc easyhg.rc images/crappy-icon-design.xcf images/crappy-icon.png images/easyhg-icon.png mainwindow.cpp
diffstat 8 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
Binary file easyhg-icon.ico has changed
--- a/easyhg.pro	Fri Dec 24 13:16:12 2010 +0000
+++ b/easyhg.pro	Mon Jan 03 12:35:13 2011 +0000
@@ -87,10 +87,9 @@
     LIBS += -lSecur32
 }
 
-# ! [0]
 RESOURCES = easyhg.qrc
-#win32 {
-#    RC_FILE = easyhg.rc
-#}
+win32 {
+    RC_FILE = easyhg.rc
+}
 
 QT += network
--- a/easyhg.qrc	Fri Dec 24 13:16:12 2010 +0000
+++ b/easyhg.qrc	Mon Jan 03 12:35:13 2011 +0000
@@ -22,6 +22,7 @@
         <file>images/hdd_unmount.png</file>
         <file>images/hdd_unmount-64.png</file>
         <file>images/fileopen.png</file>
+        <file>images/easyhg-icon.png</file>
 	<file>easyhg.py</file>
 	<file>easyhg_en.qm</file>
     </qresource>
--- a/easyhg.rc	Fri Dec 24 13:16:12 2010 +0000
+++ b/easyhg.rc	Mon Jan 03 12:35:13 2011 +0000
@@ -1,1 +1,1 @@
-IDI_ICON1 ICON DISCARDABLE "hgexplorer.ico"
+IDI_ICON1 ICON DISCARDABLE "easyhg-icon.ico"
Binary file images/crappy-icon-design.xcf has changed
Binary file images/crappy-icon.png has changed
Binary file images/easyhg-icon.png has changed
--- a/mainwindow.cpp	Fri Dec 24 13:16:12 2010 +0000
+++ b/mainwindow.cpp	Mon Jan 03 12:35:13 2011 +0000
@@ -45,6 +45,8 @@
 MainWindow::MainWindow(QString myDirPath) :
     m_myDirPath(myDirPath)
 {
+    setWindowIcon(QIcon(":images/easyhg-icon.png"));
+
     QString wndTitle;
 
     fsWatcher = 0;