forked from openlp/openlp
Alerts now move between top and bottom
This commit is contained in:
parent
973d5e3dd8
commit
9c97660b73
@ -143,11 +143,7 @@ class MainDisplay(DisplayWidget):
|
|||||||
self.screen = self.screens.current
|
self.screen = self.screens.current
|
||||||
#Sort out screen locations and sizes
|
#Sort out screen locations and sizes
|
||||||
self.setGeometry(self.screen[u'size'])
|
self.setGeometry(self.screen[u'size'])
|
||||||
self.alertScreenPosition = self.screen[u'size'].height() * 0.9
|
self.display_alert.setGeometry(self.screen[u'size'])
|
||||||
self.alertHeight = self.screen[u'size'].height() - self.alertScreenPosition
|
|
||||||
self.display_alert.setGeometry(
|
|
||||||
QtCore.QRect(0, self.alertScreenPosition,
|
|
||||||
self.screen[u'size'].width(),self.alertHeight))
|
|
||||||
self.video.setGeometry(self.screen[u'size'])
|
self.video.setGeometry(self.screen[u'size'])
|
||||||
self.display_image.resize(self.screen[u'size'].width(),
|
self.display_image.resize(self.screen[u'size'].width(),
|
||||||
self.screen[u'size'].height())
|
self.screen[u'size'].height())
|
||||||
|
@ -176,6 +176,8 @@ class AlertsTab(SettingsTab):
|
|||||||
QtCore.SIGNAL(u'pressed()'), self.onFontColorButtonClicked)
|
QtCore.SIGNAL(u'pressed()'), self.onFontColorButtonClicked)
|
||||||
QtCore.QObject.connect(self.FontComboBox,
|
QtCore.QObject.connect(self.FontComboBox,
|
||||||
QtCore.SIGNAL(u'activated(int)'), self.onFontComboBoxClicked)
|
QtCore.SIGNAL(u'activated(int)'), self.onFontComboBoxClicked)
|
||||||
|
QtCore.QObject.connect(self.LocationComboBox,
|
||||||
|
QtCore.SIGNAL(u'activated(int)'), self.onLocationComboBoxClicked)
|
||||||
QtCore.QObject.connect(self.TimeoutSpinBox,
|
QtCore.QObject.connect(self.TimeoutSpinBox,
|
||||||
QtCore.SIGNAL(u'valueChanged(int)'), self.onTimeoutSpinBoxChanged)
|
QtCore.SIGNAL(u'valueChanged(int)'), self.onTimeoutSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.FontSizeSpinBox,
|
QtCore.QObject.connect(self.FontSizeSpinBox,
|
||||||
@ -206,6 +208,9 @@ class AlertsTab(SettingsTab):
|
|||||||
def onFontComboBoxClicked(self):
|
def onFontComboBoxClicked(self):
|
||||||
self.updateDisplay()
|
self.updateDisplay()
|
||||||
|
|
||||||
|
def onLocationComboBoxClicked(self, location):
|
||||||
|
self.location = location
|
||||||
|
|
||||||
def onFontColorButtonClicked(self):
|
def onFontColorButtonClicked(self):
|
||||||
self.font_color = QtGui.QColorDialog.getColor(
|
self.font_color = QtGui.QColorDialog.getColor(
|
||||||
QtGui.QColor(self.font_color), self).name()
|
QtGui.QColor(self.font_color), self).name()
|
||||||
|
Loading…
Reference in New Issue
Block a user