From 03297410cd65e06dc66882289b1c76938bd78080 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sun, 26 Dec 2010 23:56:44 -0800 Subject: [PATCH] Attach the icon the application main widget. --- phantomjs-icon.png => src/phantomjs-icon.png | Bin src/phantomjs.cpp | 1 + src/phantomjs.pro | 1 + src/phantomjs.qrc | 5 +++++ 4 files changed, 7 insertions(+) rename phantomjs-icon.png => src/phantomjs-icon.png (100%) create mode 100644 src/phantomjs.qrc diff --git a/phantomjs-icon.png b/src/phantomjs-icon.png similarity index 100% rename from phantomjs-icon.png rename to src/phantomjs-icon.png diff --git a/src/phantomjs.cpp b/src/phantomjs.cpp index dbef988d..d2c04125 100644 --- a/src/phantomjs.cpp +++ b/src/phantomjs.cpp @@ -281,6 +281,7 @@ int main(int argc, char** argv) QApplication app(argc, argv); + app.setWindowIcon(QIcon(":/phantomjs-icon.png")); app.setApplicationName("PhantomJS"); app.setOrganizationName("Ofi Labs"); app.setOrganizationDomain("www.ofilabs.com"); diff --git a/src/phantomjs.pro b/src/phantomjs.pro index bf4eaf74..7214e598 100644 --- a/src/phantomjs.pro +++ b/src/phantomjs.pro @@ -2,4 +2,5 @@ TEMPLATE = app TARGET = phantomjs DESTDIR = ../bin SOURCES = phantomjs.cpp +RESOURCES = phantomjs.qrc QT += network webkit diff --git a/src/phantomjs.qrc b/src/phantomjs.qrc new file mode 100644 index 00000000..1b311792 --- /dev/null +++ b/src/phantomjs.qrc @@ -0,0 +1,5 @@ + + + phantomjs-icon.png + +