Fixed a sizing issue with the notification widget. 5_4_x

Fri, 14 Mar 2014 17:54:54 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 14 Mar 2014 17:54:54 +0100
branch
5_4_x
changeset 3372
25241c4e1d3c
parent 3368
9cb24ac1f01c
child 3373
5131565abc69

Fixed a sizing issue with the notification widget.

UI/NotificationWidget.py file | annotate | diff | comparison | revisions
--- a/UI/NotificationWidget.py	Thu Mar 13 19:21:59 2014 +0100
+++ b/UI/NotificationWidget.py	Fri Mar 14 17:54:54 2014 +0100
@@ -46,6 +46,9 @@
             flags |= Qt.ToolTip
         self.setWindowFlags(flags)
         
+        self.frame.layout().setAlignment(
+            self.verticalLayout, Qt.AlignLeft | Qt.AlignVCenter)
+        
         self.__timer = QTimer(self)
         self.__timer.setSingleShot(True)
         self.__timer.timeout.connect(self.close)
@@ -99,6 +102,9 @@
             self.__timer.start()
         
         super().show()
+        
+        msh = self.minimumSizeHint()
+        self.resize(max(self.width(), msh.width()), msh.height())
     
     def mousePressEvent(self, evt):
         """

eric ide

mercurial