Screen size fix for Raoul

This commit is contained in:
Tim Bentley 2010-05-15 07:57:29 +01:00
parent 580125ee86
commit c5b12ffaf3
2 changed files with 7 additions and 3 deletions

View File

@ -116,6 +116,8 @@ 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

View File

@ -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')