11 import enum |
11 import enum |
12 |
12 |
13 from PyQt6.QtCore import QPoint, Qt, QTimer |
13 from PyQt6.QtCore import QPoint, Qt, QTimer |
14 from PyQt6.QtWidgets import QFrame, QVBoxLayout, QWidget |
14 from PyQt6.QtWidgets import QFrame, QVBoxLayout, QWidget |
15 |
15 |
16 from eric7 import Globals, Preferences |
16 from eric7 import Preferences |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
|
18 from eric7.SystemUtilities import OSUtilities |
18 |
19 |
19 from .Ui_NotificationFrame import Ui_NotificationFrame |
20 from .Ui_NotificationFrame import Ui_NotificationFrame |
20 |
21 |
21 |
22 |
22 class NotificationTypes(enum.Enum): |
23 class NotificationTypes(enum.Enum): |
149 Qt.WindowType.Tool |
150 Qt.WindowType.Tool |
150 | Qt.WindowType.FramelessWindowHint |
151 | Qt.WindowType.FramelessWindowHint |
151 | Qt.WindowType.WindowStaysOnTopHint |
152 | Qt.WindowType.WindowStaysOnTopHint |
152 | Qt.WindowType.X11BypassWindowManagerHint |
153 | Qt.WindowType.X11BypassWindowManagerHint |
153 ) |
154 ) |
154 if Globals.isWindowsPlatform(): |
155 if OSUtilities.isWindowsPlatform(): |
155 flags |= Qt.WindowType.ToolTip |
156 flags |= Qt.WindowType.ToolTip |
156 self.setWindowFlags(flags) |
157 self.setWindowFlags(flags) |
157 |
158 |
158 if self.__settingPosition: |
159 if self.__settingPosition: |
159 self.setCursor(Qt.CursorShape.OpenHandCursor) |
160 self.setCursor(Qt.CursorShape.OpenHandCursor) |