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:
|
||||||
|
|
Loading…
Reference in New Issue