UI/NotificationWidget.py

branch
5_4_x
changeset 3372
25241c4e1d3c
parent 3160
209a07d7e401
child 3385
69d7ca32fa60
--- 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