From 8e1c6fae7c33af3fc84d8e7b2c7c150eb4e53fa4 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Mon, 4 Feb 2013 19:10:53 +0000 Subject: [PATCH] Mac OS X acts weird with modality settings git-svn-id: http://comictagger.googlecode.com/svn/trunk@407 6c5673fe-1810-88d6-992b-cd32ca31540c --- imagepopup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imagepopup.py b/imagepopup.py index 82c58a3..030357e 100644 --- a/imagepopup.py +++ b/imagepopup.py @@ -33,7 +33,7 @@ class ImagePopup(QtGui.QDialog): QtGui.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.WaitCursor)) - self.setWindowModality(QtCore.Qt.WindowModal) + #self.setWindowModality(QtCore.Qt.WindowModal) self.setWindowFlags(QtCore.Qt.Popup) self.setWindowState(QtCore.Qt.WindowFullScreen) @@ -44,7 +44,8 @@ class ImagePopup(QtGui.QDialog): self.move( 0, 0) # This is a total hack. Uses a snapshot of the desktop, and overlays a - # translucent screen over it. + # translucent screen over it. Probably can do it better by setting opacity of a + # widget self.desktopBg = QtGui.QPixmap.grabWindow(QtGui.QApplication.desktop ().winId(), 0,0, screen_size.width(), screen_size.height()) bg = QtGui.QPixmap(os.path.join(ComicTaggerSettings.baseDir(), 'graphics/popup_bg.png' ))