Fri, 14 Mar 2014 17:51:47 +0100
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>