changeset 20:46867aa4d63d

Add logo.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 30 Mar 2017 20:27:56 +0300
parents 2ee61a6b78f8
children f4228fc37281
files Syntilista.pro Syntilista.qrc logo.png mainwindow.ui
diffstat 4 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Syntilista.pro	Thu Mar 30 19:10:51 2017 +0300
+++ b/Syntilista.pro	Thu Mar 30 20:27:56 2017 +0300
@@ -29,3 +29,6 @@
 
 FORMS    += mainwindow.ui \
     editperson.ui
+
+RESOURCES += \
+    Syntilista.qrc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Syntilista.qrc	Thu Mar 30 20:27:56 2017 +0300
@@ -0,0 +1,5 @@
+<RCC>
+  <qresource prefix="img">
+    <file>logo.png</file>
+  </qresource>
+</RCC>
Binary file logo.png has changed
--- a/mainwindow.ui	Thu Mar 30 19:10:51 2017 +0300
+++ b/mainwindow.ui	Thu Mar 30 20:27:56 2017 +0300
@@ -717,6 +717,22 @@
        </widget>
       </item>
       <item>
+       <widget class="QLabel" name="label_LogoImage">
+        <property name="text">
+         <string/>
+        </property>
+        <property name="pixmap">
+         <pixmap resource="Syntilista.qrc">:/img/logo.png</pixmap>
+        </property>
+        <property name="scaledContents">
+         <bool>false</bool>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+      <item>
        <spacer name="verticalSpacer">
         <property name="orientation">
          <enum>Qt::Vertical</enum>
@@ -760,6 +776,8 @@
   <tabstop>button_AddPerson</tabstop>
   <tabstop>button_Quit</tabstop>
  </tabstops>
- <resources/>
+ <resources>
+  <include location="Syntilista.qrc"/>
+ </resources>
  <connections/>
 </ui>