Fixed a sizing issue with the notification widget.

Fri, 14 Mar 2014 17:51:47 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 14 Mar 2014 17:51:47 +0100
changeset 3370
c8c6e31b9d41
parent 3369
6580dc0fe205
child 3371
d0bef2791682

Fixed a sizing issue with the notification widget.

UI/NotificationWidget.py file | annotate | diff | comparison | revisions
UI/NotificationWidget.ui file | annotate | diff | comparison | revisions
--- a/UI/NotificationWidget.py	Fri Mar 14 17:50:29 2014 +0100
+++ b/UI/NotificationWidget.py	Fri Mar 14 17:51:47 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)
--- a/UI/NotificationWidget.ui	Fri Mar 14 17:50:29 2014 +0100
+++ b/UI/NotificationWidget.ui	Fri Mar 14 17:51:47 2014 +0100
@@ -45,19 +45,6 @@
       <item>
        <layout class="QVBoxLayout" name="verticalLayout">
         <item>
-         <spacer name="verticalSpacer">
-          <property name="orientation">
-           <enum>Qt::Vertical</enum>
-          </property>
-          <property name="sizeHint" stdset="0">
-           <size>
-            <width>20</width>
-            <height>40</height>
-           </size>
-          </property>
-         </spacer>
-        </item>
-        <item>
          <widget class="QLabel" name="heading">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@@ -89,19 +76,6 @@
           </property>
          </widget>
         </item>
-        <item>
-         <spacer name="verticalSpacer_2">
-          <property name="orientation">
-           <enum>Qt::Vertical</enum>
-          </property>
-          <property name="sizeHint" stdset="0">
-           <size>
-            <width>20</width>
-            <height>40</height>
-           </size>
-          </property>
-         </spacer>
-        </item>
        </layout>
       </item>
      </layout>

eric ide

mercurial