Make tabbed docks look better by using document mode

This commit is contained in:
Raoul Snyman 2014-09-04 23:38:39 +02:00
parent 1f9c0a31f8
commit 1a573315db

View File

@ -92,6 +92,8 @@ class Ui_MainWindow(object):
main_window.setObjectName('MainWindow') main_window.setObjectName('MainWindow')
main_window.setWindowIcon(build_icon(':/icon/openlp-logo.svg')) main_window.setWindowIcon(build_icon(':/icon/openlp-logo.svg'))
main_window.setDockNestingEnabled(True) main_window.setDockNestingEnabled(True)
if is_macosx():
main_window.setDocumentMode(True)
# Set up the main container, which contains all the other form widgets. # Set up the main container, which contains all the other form widgets.
self.main_content = QtGui.QWidget(main_window) self.main_content = QtGui.QWidget(main_window)
self.main_content.setObjectName('main_content') self.main_content.setObjectName('main_content')