From 1ca7bfa9904fef5573be4cbe96838db15c30999e Mon Sep 17 00:00:00 2001 From: necoro <> Date: Mon, 14 May 2007 19:46:38 +0000 Subject: made overlaylabel work in Qt --- portato/gui/qt/windows.py | 5 ++++- portato/gui/templates/ui/MainWindow.ui | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'portato') 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 = "%s" % self.actual_package().get_cp() if self.actual_package().is_overlay(): - name = "%s\n%s" % (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 @@ -112,6 +112,16 @@ + + + + TextLabel + + + Qt::AlignCenter + + + -- cgit v1.2.3-54-g00ecf