summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornecoro <>2007-05-14 19:46:38 +0000
committernecoro <>2007-05-14 19:46:38 +0000
commit1ca7bfa9904fef5573be4cbe96838db15c30999e (patch)
tree180a79769dfdcc0b94cf05f89c58dbd8dac583ca
parentfdc8ab4222e781544cba285564b5bb368b9734a1 (diff)
downloadportato-1ca7bfa9904fef5573be4cbe96838db15c30999e.tar.gz
portato-1ca7bfa9904fef5573be4cbe96838db15c30999e.tar.bz2
portato-1ca7bfa9904fef5573be4cbe96838db15c30999e.zip
made overlaylabel work in Qt
-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>