forked from openlp/openlp
Split slide controllers out - but now they don't size properly...
bzr-revno: 303
This commit is contained in:
parent
f758850865
commit
2c85368ee2
@ -68,12 +68,14 @@ class MainWindow(object):
|
||||
self.MainContentLayout.setSpacing(0)
|
||||
self.MainContentLayout.setMargin(0)
|
||||
self.MainContentLayout.setObjectName("MainContentLayout")
|
||||
self.main_window.setCentralWidget(self.MainContent)
|
||||
self.ControlSplitter = QtGui.QSplitter(self.MainContent)
|
||||
self.ControlSplitter.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.ControlSplitter.setObjectName("ControlSplitter")
|
||||
# xxx need some way to make this geometry work properly!
|
||||
self.ControlSplitter.setGeometry(self.main_window.geometry())
|
||||
self.PreviewController = SlideController(self.ControlSplitter)
|
||||
self.LiveController = SlideController(self.ControlSplitter)
|
||||
self.main_window.setCentralWidget(self.MainContent)
|
||||
self.MenuBar = QtGui.QMenuBar(self.main_window)
|
||||
self.MenuBar.setGeometry(QtCore.QRect(0, 0, 1087, 27))
|
||||
self.MenuBar.setObjectName("MenuBar")
|
||||
|
@ -21,25 +21,25 @@ import os
|
||||
from time import sleep
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
class SlideController(object):
|
||||
class SlideController(QtCore.QObject):
|
||||
def __init__(self, control_splitter):
|
||||
self.Pane = QtGui.QWidget(control_splitter)
|
||||
# self.Pane.setObjectName("Pane")
|
||||
self.PaneLayout = QtGui.QVBoxLayout(self.Pane)
|
||||
self.PaneLayout.setSpacing(0)
|
||||
self.PaneLayout.setMargin(0)
|
||||
# self.PaneLayout.setObjectName("PaneLayout")
|
||||
self.Splitter = QtGui.QSplitter(self.Pane)
|
||||
self.Splitter.setOrientation(QtCore.Qt.Vertical)
|
||||
# self.Splitter.setObjectName("Splitter")
|
||||
|
||||
self.PaneLayout = QtGui.QVBoxLayout(self.Pane)
|
||||
self.PaneLayout.addWidget(self.Splitter)
|
||||
self.PaneLayout.setSpacing(50)
|
||||
self.PaneLayout.setMargin(0)
|
||||
|
||||
# self.Controller = QtGui.QGraphicsView(self.Splitter)
|
||||
self.Controller = QtGui.QScrollArea(self.Splitter)
|
||||
self.Controller.setWidgetResizable(True)
|
||||
# self.Controller.setObjectName("Controller")
|
||||
self.ControllerContents = QtGui.QWidget(self.Controller)
|
||||
self.ControllerContents.setGeometry(QtCore.QRect(0, 0, 228, 536))
|
||||
# self.ControllerContents.setObjectName("ControllerContents")
|
||||
self.Controller.setGeometry(QtCore.QRect(0, 0, 828, 536))
|
||||
self.Controller.setWidget(self.ControllerContents)
|
||||
|
||||
self.Screen = QtGui.QGraphicsView(self.Splitter)
|
||||
self.Screen.setMaximumSize(QtCore.QSize(16777215, 250))
|
||||
# self.Screen.setObjectName("Screen")
|
||||
self.PaneLayout.addWidget(self.Splitter)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user