Attach the icon the application main widget.

1.0
Ariya Hidayat 2010-12-26 23:56:44 -08:00
parent d8a5c2b7d0
commit 03297410cd
4 changed files with 7 additions and 0 deletions

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -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");

View File

@ -2,4 +2,5 @@ TEMPLATE = app
TARGET = phantomjs
DESTDIR = ../bin
SOURCES = phantomjs.cpp
RESOURCES = phantomjs.qrc
QT += network webkit

5
src/phantomjs.qrc Normal file
View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>phantomjs-icon.png</file>
</qresource>
</RCC>