forked from openlp/openlp
resize controllers when resizing or moving the docks
This commit is contained in:
parent
a0b15e5324
commit
71af1b3bf0
@ -29,7 +29,7 @@ QDockWidget.
|
||||
"""
|
||||
import logging
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
from PyQt4 import QtGui
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@ -48,3 +48,16 @@ class OpenLPDockWidget(QtGui.QDockWidget):
|
||||
self.setObjectName(name)
|
||||
self.setFloating(False)
|
||||
|
||||
def moveEvent(self, event):
|
||||
"""
|
||||
Called, when the DockWidget is moved.
|
||||
"""
|
||||
self.parent.liveController.previewSizeChanged()
|
||||
self.parent.previewController.previewSizeChanged()
|
||||
|
||||
def resizeEvent(self, event):
|
||||
"""
|
||||
Called, when the DockWidget is resized.
|
||||
"""
|
||||
self.parent.liveController.previewSizeChanged()
|
||||
self.parent.previewController.previewSizeChanged()
|
||||
|
@ -297,7 +297,6 @@ class SlideController(QtGui.QWidget):
|
||||
Phonon.createPath(self.mediaObject, self.audio)
|
||||
if not self.isLive:
|
||||
self.video.setGeometry(QtCore.QRect(0, 0, 300, 225))
|
||||
self.video.setVisible(False)
|
||||
self.SlideLayout.insertWidget(0, self.video)
|
||||
# Actual preview screen
|
||||
self.SlidePreview = QtGui.QLabel(self)
|
||||
|
Loading…
Reference in New Issue
Block a user