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 + +