forked from openlp/openlp
Add comments and doc strings
This commit is contained in:
parent
86c4acab9c
commit
ca8600414f
@ -243,6 +243,7 @@ class Settings(QtCore.QSettings):
|
|||||||
QtCore.QSettings.__init__(self, Settings.__file_path__, Settings.IniFormat)
|
QtCore.QSettings.__init__(self, Settings.__file_path__, Settings.IniFormat)
|
||||||
else:
|
else:
|
||||||
QtCore.QSettings.__init__(self, *args)
|
QtCore.QSettings.__init__(self, *args)
|
||||||
|
# Add shortcuts here so QKeySequence has a QApplication instance to use.
|
||||||
Settings.__default_settings__.update({
|
Settings.__default_settings__.update({
|
||||||
'shortcuts/aboutItem': [QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_F1)],
|
'shortcuts/aboutItem': [QtGui.QKeySequence(QtCore.Qt.CTRL + QtCore.Qt.Key_F1)],
|
||||||
'shortcuts/addToService': [],
|
'shortcuts/addToService': [],
|
||||||
|
@ -55,6 +55,11 @@ class ShortcutTreeWidget(QtWidgets.QTreeWidget):
|
|||||||
super(ShortcutTreeWidget, self).__init__(*args)
|
super(ShortcutTreeWidget, self).__init__(*args)
|
||||||
|
|
||||||
def keyboardSearch(self, search):
|
def keyboardSearch(self, search):
|
||||||
|
"""
|
||||||
|
Prevent single letter searches from highlighting items.
|
||||||
|
|
||||||
|
:param search: Search string
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user