qvm-template-gui: UI improvements

- rename "install" button to "apply" - it also does remove and
  reinstall
- show button descriptions always
- show help text always, not only before selecting anything
- make the window a bit wider
This commit is contained in:
Marek Marczykowski-Górecki 2021-04-01 22:24:25 +02:00
parent 0857ff86bb
commit 679a23980d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 15 additions and 5 deletions

View File

@ -38,7 +38,7 @@ class Template(typing.NamedTuple):
'Name', 'Name',
'Version', 'Version',
'Reponame', 'Reponame',
'Size (MB)', 'Download Size (MB)',
'Build Time', 'Build Time',
'Install Time', 'Install Time',
'License', 'License',

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>465</width> <width>930</width>
<height>478</height> <height>478</height>
</rect> </rect>
</property> </property>
@ -25,6 +25,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Select actions to perform in &quot;Status&quot; column:</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QTreeView" name="listing"> <widget class="QTreeView" name="listing">
<property name="editTriggers"> <property name="editTriggers">
@ -50,7 +57,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="placeholderText"> <property name="placeholderText">
<string>Click the 'Status' column to change the status of templates.</string> <string>Use &quot;Status&quot; column to select actions to execute on a given template; when desired actions are selected, use &quot;Apply&quot; to perform them.</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -61,7 +68,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>465</width> <width>930</width>
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
@ -71,6 +78,9 @@
<property name="windowTitle"> <property name="windowTitle">
<string>toolBar</string> <string>toolBar</string>
</property> </property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
<attribute name="toolBarArea"> <attribute name="toolBarArea">
<enum>TopToolBarArea</enum> <enum>TopToolBarArea</enum>
</attribute> </attribute>
@ -95,7 +105,7 @@
<normaloff>.</normaloff>.</iconset> <normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Install</string> <string>Apply</string>
</property> </property>
</action> </action>
</widget> </widget>