Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Attach the icon the application main widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Dec 27, 2010
1 parent d8a5c2b commit 0329741
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
File renamed without changes
1 change: 1 addition & 0 deletions src/phantomjs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions src/phantomjs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ TEMPLATE = app
TARGET = phantomjs
DESTDIR = ../bin
SOURCES = phantomjs.cpp
RESOURCES = phantomjs.qrc
QT += network webkit
5 changes: 5 additions & 0 deletions src/phantomjs.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>phantomjs-icon.png</file>
</qresource>
</RCC>

0 comments on commit 0329741

Please sign in to comment.