Toasts: Don't raise a whole bunch, just window hint to always be on top

This commit is contained in:
Kiooeht 2011-08-29 01:54:14 -07:00
parent a3d15b5eaa
commit 6267fc071c
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,6 @@ Features
* Whowas for last seen online? * Whowas for last seen online?
* Tab completion of two letter names * Tab completion of two letter names
* When 'banned' make impossible to connect using timestamp banned under * When 'banned' make impossible to connect using timestamp banned under
* Fully working Toasts
* Auto download/install updates via Windows installer * Auto download/install updates via Windows installer
* Turn memo notifications on/off from right-click menu on memos (Idea: lostGash) * Turn memo notifications on/off from right-click menu on memos (Idea: lostGash)
* Gray out random encounter option when RE is offline * Gray out random encounter option when RE is offline
@ -36,6 +35,7 @@ Windows Bugs
* XP SP2: sometimes mouse clicks dont register? must be some kinda crash * XP SP2: sometimes mouse clicks dont register? must be some kinda crash
* On reconnect and nick change, momentary theme change causes menu items to stop working * On reconnect and nick change, momentary theme change causes menu items to stop working
* Random chums won't show up on chumroll * Random chums won't show up on chumroll
* Popup toast notifications cause main window to raise
Mac Bugs Mac Bugs
-------- --------

View file

@ -173,7 +173,7 @@ class ToastMachine(object):
class PesterToast(QtGui.QWidget, DefaultToast): class PesterToast(QtGui.QWidget, DefaultToast):
def __init__(self, machine, title, msg, icon, time=3000, parent=None): def __init__(self, machine, title, msg, icon, time=3000, parent=None):
QtGui.QWidget.__init__(self, parent) QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
self.machine = machine self.machine = machine
self.time = time self.time = time
@ -281,7 +281,6 @@ class PesterToast(QtGui.QWidget, DefaultToast):
val = float(self.height())/100 val = float(self.height())/100
self.move(p.x()-self.width(), p.y() - (value.toInt()[0] * val) +1) self.move(p.x()-self.width(), p.y() - (value.toInt()[0] * val) +1)
self.layout().setSpacing(0) self.layout().setSpacing(0)
self.raise_()
QtGui.QWidget.show(self) QtGui.QWidget.show(self)
def mousePressEvent(self, event): def mousePressEvent(self, event):