Added icon

This commit is contained in:
Travis Hunter 2023-03-25 15:07:21 -06:00
parent 8d663f858b
commit addf3ea73e
5 changed files with 16 additions and 3 deletions

View File

@ -14,8 +14,8 @@
<string>QtRocket</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>resources/qtrocket.png</normaloff>resources/qtrocket.png</iconset>
<iconset resource="qtrocket.qrc">
<normaloff>:/qtrocket.png</normaloff>:/qtrocket.png</iconset>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout" stretch="2">
@ -109,6 +109,8 @@
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<resources>
<include location="qtrocket.qrc"/>
</resources>
<connections/>
</ui>

View File

@ -7,6 +7,7 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/qtrocket.png"));
// Start translation component.
// TODO: Only support US English at the moment. Anyone want to help translate?

View File

@ -69,3 +69,6 @@ unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += libcurl
unix: PKGCONFIG += fmt
RESOURCES += \
qtrocket.qrc

7
qtrocket.qrc Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB