Added icon
This commit is contained in:
parent
8d663f858b
commit
addf3ea73e
@ -14,8 +14,8 @@
|
|||||||
<string>QtRocket</string>
|
<string>QtRocket</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset>
|
<iconset resource="qtrocket.qrc">
|
||||||
<normaloff>resources/qtrocket.png</normaloff>resources/qtrocket.png</iconset>
|
<normaloff>:/qtrocket.png</normaloff>:/qtrocket.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="2">
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="2">
|
||||||
@ -109,6 +109,8 @@
|
|||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources/>
|
<resources>
|
||||||
|
<include location="qtrocket.qrc"/>
|
||||||
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
1
main.cpp
1
main.cpp
@ -7,6 +7,7 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
a.setWindowIcon(QIcon(":/qtrocket.png"));
|
||||||
|
|
||||||
// Start translation component.
|
// Start translation component.
|
||||||
// TODO: Only support US English at the moment. Anyone want to help translate?
|
// TODO: Only support US English at the moment. Anyone want to help translate?
|
||||||
|
@ -69,3 +69,6 @@ unix: CONFIG += link_pkgconfig
|
|||||||
unix: PKGCONFIG += libcurl
|
unix: PKGCONFIG += libcurl
|
||||||
|
|
||||||
unix: PKGCONFIG += fmt
|
unix: PKGCONFIG += fmt
|
||||||
|
|
||||||
|
RESOURCES += \
|
||||||
|
qtrocket.qrc
|
||||||
|
7
qtrocket.qrc
Normal file
7
qtrocket.qrc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<!DOCTYPE RCC>
|
||||||
|
<RCC version="1.0">
|
||||||
|
<qresource>
|
||||||
|
<file alias="qtrocket.png">resources/qtrocket.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
||||||
|
|
BIN
resources/qtrocket.ico
Normal file
BIN
resources/qtrocket.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 KiB |
Loading…
x
Reference in New Issue
Block a user