mirror of https://github.com/vitalif/phantomjs
Attach the icon the application main widget.
parent
d8a5c2b7d0
commit
03297410cd
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
@ -281,6 +281,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
|
||||||
app.setApplicationName("PhantomJS");
|
app.setApplicationName("PhantomJS");
|
||||||
app.setOrganizationName("Ofi Labs");
|
app.setOrganizationName("Ofi Labs");
|
||||||
app.setOrganizationDomain("www.ofilabs.com");
|
app.setOrganizationDomain("www.ofilabs.com");
|
||||||
|
|
|
@ -2,4 +2,5 @@ TEMPLATE = app
|
||||||
TARGET = phantomjs
|
TARGET = phantomjs
|
||||||
DESTDIR = ../bin
|
DESTDIR = ../bin
|
||||||
SOURCES = phantomjs.cpp
|
SOURCES = phantomjs.cpp
|
||||||
|
RESOURCES = phantomjs.qrc
|
||||||
QT += network webkit
|
QT += network webkit
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>phantomjs-icon.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
Loading…
Reference in New Issue