From c5b12ffaf311c31f09cda701251c7b2f212d5704 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 15 May 2010 07:57:29 +0100 Subject: [PATCH] Screen size fix for Raoul --- openlp/core/ui/maindisplay.py | 8 +++++--- openlp/core/ui/mainwindow.py | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 4b2c4d268..b0278428a 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -116,10 +116,12 @@ class MainDisplay(DisplayWidget): """ log.debug(u'Initialisation started') DisplayWidget.__init__(self, parent) + self.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.FramelessWindowHint) + self.setWindowState(QtCore.Qt.WindowFullScreen) self.parent = parent self.setWindowTitle(u'OpenLP Display') # WA_TranslucentBackground is not available in QT4.4 - try: + try: self.setAttribute(QtCore.Qt.WA_TranslucentBackground) except AttributeError: pass @@ -346,12 +348,12 @@ class VideoDisplay(Phonon.VideoWidget): Phonon.createPath(self.mediaObject, self.audioObject) flags = QtCore.Qt.FramelessWindowHint | QtCore.Qt.Dialog # WindowsStaysOnBottomHint is not available in QT4.4 - try: + try: flags = flags | QtCore.Qt.WindowStaysOnBottomHint except AttributeError: pass self.setWindowFlags(flags) - + QtCore.QObject.connect(Receiver.get_receiver(), QtCore.SIGNAL(u'maindisplay_hide'), self.mediaHide) QtCore.QObject.connect(Receiver.get_receiver(), diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index df275dd20..a367039e7 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -730,6 +730,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): def loadSettings(self): log.debug(u'Loading QSettings') + print self.geometry() settings = QtCore.QSettings() settings.beginGroup(self.generalSettingsSection) self.recentFiles = settings.value(u'recent files').toStringList() @@ -741,6 +742,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): settings.value(u'main window geometry').toByteArray()) self.restoreState(settings.value(u'main window state').toByteArray()) settings.endGroup() + print self.geometry() def saveSettings(self): log.debug(u'Saving QSettings')