forked from openlp/openlp
Just changed the SlideController selection back for the moment.
This commit is contained in:
parent
8133cea273
commit
07468597aa
@ -44,12 +44,12 @@ class SlideList(QtGui.QTableWidget):
|
|||||||
def __init__(self, parent=None, name=None):
|
def __init__(self, parent=None, name=None):
|
||||||
QtGui.QTableWidget.__init__(self, parent.Controller)
|
QtGui.QTableWidget.__init__(self, parent.Controller)
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
text_color = QtGui.QApplication.palette().color(QtGui.QPalette.Base)
|
#text_color = QtGui.QApplication.palette().color(QtGui.QPalette.Base)
|
||||||
if text_color.value() > 128:
|
#if text_color.value() > 128:
|
||||||
text_color = text_color.darker(120).name()
|
# text_color = text_color.darker(120).name()
|
||||||
else:
|
#else:
|
||||||
text_color = text_color.lighter(130).name()
|
# text_color = text_color.lighter(130).name()
|
||||||
self.setStyleSheet(label_stylesheet % text_color)
|
#self.setStyleSheet(label_stylesheet % text_color)
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
def keyPressEvent(self, event):
|
||||||
if type(event) == QtGui.QKeyEvent:
|
if type(event) == QtGui.QKeyEvent:
|
||||||
@ -427,11 +427,11 @@ class SlideController(QtGui.QWidget):
|
|||||||
winid = QtGui.QApplication.desktop().winId()
|
winid = QtGui.QApplication.desktop().winId()
|
||||||
rect = rm.screen_list[rm.current_display][u'size']
|
rect = rm.screen_list[rm.current_display][u'size']
|
||||||
winimg = QtGui.QPixmap.grabWindow(winid, rect.x(), rect.y(), rect.width(), rect.height())
|
winimg = QtGui.QPixmap.grabWindow(winid, rect.x(), rect.y(), rect.width(), rect.height())
|
||||||
self.SlidePreview.setPixmap(winimg)
|
self.SlidePreview.setPixmap(winimg)
|
||||||
else:
|
else:
|
||||||
label = self.PreviewListWidget.cellWidget(self.PreviewListWidget.currentRow(), 0)
|
label = self.PreviewListWidget.cellWidget(self.PreviewListWidget.currentRow(), 0)
|
||||||
self.SlidePreview.setPixmap(label.pixmap())
|
self.SlidePreview.setPixmap(label.pixmap())
|
||||||
|
|
||||||
def onSlideSelectedNext(self):
|
def onSlideSelectedNext(self):
|
||||||
"""
|
"""
|
||||||
Go to the next slide.
|
Go to the next slide.
|
||||||
|
Loading…
Reference in New Issue
Block a user