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> <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>

View File

@ -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?

View File

@ -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
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