Browse Source

change view_ivchart. add a icon.

yuchuli 3 years ago
parent
commit
26a8ff4649

BIN
src/tool/view_ivchart/ivchart.png


+ 5 - 0
src/tool/view_ivchart/ivchart.qrc

@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>ivchart.png</file>
+    </qresource>
+</RCC>

+ 12 - 1
src/tool/view_ivchart/mainwindow.ui

@@ -13,6 +13,10 @@
   <property name="windowTitle">
    <string>MainWindow</string>
   </property>
+  <property name="windowIcon">
+   <iconset resource="ivchart.qrc">
+    <normaloff>:/ivchart.png</normaloff>:/ivchart.png</iconset>
+  </property>
   <widget class="QWidget" name="centralwidget"/>
   <widget class="QMenuBar" name="menubar">
    <property name="geometry">
@@ -51,11 +55,18 @@
    </property>
   </action>
   <action name="actionHelp">
+   <property name="icon">
+    <iconset>
+     <normalon>:/ivchart.png</normalon>
+    </iconset>
+   </property>
    <property name="text">
     <string>Help</string>
    </property>
   </action>
  </widget>
- <resources/>
+ <resources>
+  <include location="ivchart.qrc"/>
+ </resources>
  <connections/>
 </ui>

+ 3 - 0
src/tool/view_ivchart/view_ivchart.pro

@@ -49,3 +49,6 @@ unix: LIBS += -lprotobuf
 
 win32: LIBS += $$PWD\..\..\..\thirdpartylib\protobuf\lib\libprotobuf.a
 win32: INCLUDEPATH+= $$PWD\..\..\..\thirdpartylib\protobuf\src
+
+RESOURCES += \
+    ivchart.qrc