2197 browser.close() |
2197 browser.close() |
2198 self.close() |
2198 self.close() |
2199 |
2199 |
2200 def closeEvent(self, e): |
2200 def closeEvent(self, e): |
2201 """ |
2201 """ |
2202 Private event handler for the close event. |
2202 Protected event handler for the close event. |
2203 |
2203 |
2204 @param e the close event (QCloseEvent) |
2204 @param e the close event (QCloseEvent) |
2205 <br />This event is simply accepted after the history has been |
2205 <br />This event is simply accepted after the history has been |
2206 saved and all window references have been deleted. |
2206 saved and all window references have been deleted. |
2207 """ |
2207 """ |
3689 ########################################## |
3689 ########################################## |
3690 |
3690 |
3691 @classmethod |
3691 @classmethod |
3692 def showNotification(cls, icon, heading, text): |
3692 def showNotification(cls, icon, heading, text): |
3693 """ |
3693 """ |
3694 Clsss method to show a desktop notification. |
3694 Class method to show a desktop notification. |
3695 |
3695 |
3696 @param icon icon to be shown in the notification (QPixmap) |
3696 @param icon icon to be shown in the notification (QPixmap) |
3697 @param heading heading of the notification (string) |
3697 @param heading heading of the notification (string) |
3698 @param text text of the notification (string) |
3698 @param text text of the notification (string) |
3699 """ |
3699 """ |
3715 cls._notification.show() |
3715 cls._notification.show() |
3716 |
3716 |
3717 @classmethod |
3717 @classmethod |
3718 def notificationsEnabled(cls): |
3718 def notificationsEnabled(cls): |
3719 """ |
3719 """ |
3720 Clsss method to check, if notifications are enabled. |
3720 Class method to check, if notifications are enabled. |
3721 |
3721 |
3722 @return flag indicating, if notifications are enabled (boolean) |
3722 @return flag indicating, if notifications are enabled (boolean) |
3723 """ |
3723 """ |
3724 if cls._fromEric: |
3724 if cls._fromEric: |
3725 return e5App().getObject("UserInterface").notificationsEnabled |
3725 return e5App().getObject("UserInterface").notificationsEnabled |