[PATCH 3/5] wpa_gui-qt4: use new svg as application icon
Kel Modderman
kel
Wed Sep 24 00:26:28 PDT 2008
Enhance wpa_gui's appearance by integrating the new svg icon via a resource
file.
Signed-off-by: Kel Modderman <kel at otaku42.de>
---
--- /dev/null
+++ b/wpa_supplicant/wpa_gui-qt4/icons.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/icons" >
+ <file alias="wpa_gui.svg">icons/wpa_gui.svg</file>
+ </qresource>
+</RCC>
--- a/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
+++ b/wpa_supplicant/wpa_gui-qt4/wpa_gui.pro
@@ -36,6 +36,8 @@
networkconfig.cpp \
../../src/common/wpa_ctrl.c
+RESOURCES += icons.qrc
+
FORMS = wpagui.ui \
eventhistory.ui \
scanresults.ui \
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.ui
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.ui
@@ -12,6 +12,10 @@
<property name="windowTitle" >
<string>wpa_gui</string>
</property>
+ <property name="windowIcon" >
+ <iconset resource="icons.qrc" >
+ <normaloff>:/icons/wpa_gui.svg</normaloff>:/icons/wpa_gui.svg</iconset>
+ </property>
<widget class="QWidget" name="widget" >
<layout class="QGridLayout" >
<item row="0" column="0" >
@@ -414,6 +418,8 @@
<include location="local" >eventhistory.h</include>
<include location="local" >scanresults.h</include>
</includes>
- <resources/>
+ <resources>
+ <include location="icons.qrc" />
+ </resources>
<connections/>
</ui>
---
More information about the Hostap
mailing list