summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/gui/qt/windows.py5
-rw-r--r--portato/gui/templates/ui/MainWindow.ui10
2 files changed, 14 insertions, 1 deletions
diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py
index 31addc3..104a1ab 100644
--- a/portato/gui/qt/windows.py
+++ b/portato/gui/qt/windows.py
@@ -314,7 +314,10 @@ class PackageDetails:
name = "<i><u>%s</i></u>" % self.actual_package().get_cp()
if self.actual_package().is_overlay():
- name = "%s\n<i>%s</i>" % (name, self.actual_package().get_overlay_path())
+ self.window.overlayLabel.setText("(%s)" % self.actual_package().get_overlay_path())
+ self.window.overlayLabel.show()
+ else:
+ self.window.overlayLabel.hide()
self.window.descLabel.setText(desc)
self.window.nameLabel.setText(name)
diff --git a/portato/gui/templates/ui/MainWindow.ui b/portato/gui/templates/ui/MainWindow.ui
index 569f73e..cd7b40c 100644
--- a/portato/gui/templates/ui/MainWindow.ui
+++ b/portato/gui/templates/ui/MainWindow.ui
@@ -113,6 +113,16 @@
</widget>
</item>
<item>
+ <widget class="QLabel" name="overlayLabel" >
+ <property name="text" >
+ <string>TextLabel</string>
+ </property>
+ <property name="alignment" >
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QLabel" name="descLabel" >
<property name="text" >
<string>TextLabel</string>