99 self.heading.setText(self.__heading) |
100 self.heading.setText(self.__heading) |
100 self.text.setText(self.__text) |
101 self.text.setText(self.__text) |
101 |
102 |
102 if not self.__settingPosition: |
103 if not self.__settingPosition: |
103 self.__timer.stop() |
104 self.__timer.stop() |
104 self.__timer.setInterval(self.__timeout) |
105 if self.__timeout > 0: |
105 self.__timer.start() |
106 self.__timer.setInterval(self.__timeout) |
|
107 self.__timer.start() |
106 |
108 |
107 super(NotificationWidget, self).show() |
109 super(NotificationWidget, self).show() |
108 |
110 |
109 sh = self.sizeHint() |
111 sh = self.sizeHint() |
110 self.resize(max(self.width(), sh.width()), sh.height()) |
112 self.resize(max(self.width(), sh.width()), sh.height()) |