Stop overriding StaysOnTop hint with ToolTip hint
This commit is contained in:
parent
5e80c42a33
commit
5ffed58756
1 changed files with 5 additions and 5 deletions
10
toast.py
10
toast.py
|
@ -174,15 +174,15 @@ class ToastMachine(object):
|
|||
|
||||
class PesterToast(QtGui.QWidget, DefaultToast):
|
||||
def __init__(self, machine, title, msg, icon, time=3000, parent=None):
|
||||
if ostools.isWin32():
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
else:
|
||||
QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
|
||||
self.machine = machine
|
||||
self.time = time
|
||||
|
||||
self.setWindowFlags(QtCore.Qt.ToolTip)
|
||||
if ostools.isWin32():
|
||||
self.setWindowFlags(QtCore.Qt.ToolTip)
|
||||
else:
|
||||
self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint| QtCore.Qt.ToolTip)
|
||||
|
||||
self.m_animation = QtCore.QParallelAnimationGroup()
|
||||
anim = QtCore.QPropertyAnimation(self)
|
||||
|
|
Loading…
Reference in a new issue