Qt: Minor improvements to auto-updater (icon, show download size)

This commit is contained in:
Connor McLaughlin
2020-09-30 01:10:13 +10:00
parent e88d36513e
commit 7255530d87
3 changed files with 46 additions and 31 deletions

View File

@@ -21,18 +21,38 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Update Available</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1">
<item>
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="resources/resources.qrc">:/icons/software-update-available.png</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Update Available</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="currentVersion">
@@ -49,18 +69,7 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Update Notes:</string>
</property>
</widget>
</item>
<item>
<widget class="QTextEdit" name="updateNotes">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QTextBrowser" name="updateNotes"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
@@ -79,12 +88,12 @@
</item>
<item>
<widget class="QPushButton" name="downloadAndInstall">
<property name="text">
<string>Download and Install...</string>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Download and Install...</string>
</property>
</widget>
</item>
<item>
@@ -108,6 +117,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="resources/resources.qrc"/>
</resources>
<connections/>
</ui>