forked from openlp/openlp
Corrected pep8 fails
This commit is contained in:
parent
7f8e19adca
commit
fbd3f9f3dd
@ -1466,17 +1466,19 @@ class ServiceManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ServiceMa
|
|||||||
|
|
||||||
def on_single_click_preview(self, field=None):
|
def on_single_click_preview(self, field=None):
|
||||||
"""
|
"""
|
||||||
If single click previewing is enabled, and triggered by a tablewidget click event, start a timeout to verify a double-click hasn't triggered.
|
If single click previewing is enabled, and triggered by a tablewidget click event,
|
||||||
|
start a timeout to verify a double-click hasn't triggered.
|
||||||
:param field:
|
:param field:
|
||||||
"""
|
"""
|
||||||
if Settings().value('advanced/single click service preview'):
|
if Settings().value('advanced/single click service preview'):
|
||||||
if not self.list_double_clicked:
|
if not self.list_double_clicked:
|
||||||
# If a double click has not registered start a timer, otherwise wait for the existing timer to finish.
|
# If a double click has not registered start a timer, otherwise wait for the existing timer to finish.
|
||||||
QtCore.QTimer.singleShot(QtWidgets.QApplication.instance().doubleClickInterval(), self.on_single_click_preview_timeout)
|
QtCore.QTimer.singleShot(QtWidgets.QApplication.instance().doubleClickInterval(),
|
||||||
|
self.on_single_click_preview_timeout)
|
||||||
|
|
||||||
def on_single_click_preview_timeout(self):
|
def on_single_click_preview_timeout(self):
|
||||||
"""
|
"""
|
||||||
If a single click, but not a double click has been triggered, send the current item to the Preview slide controller.
|
If a single click ok, but double click not triggered, send the current item to the Preview slide controller.
|
||||||
:param field:
|
:param field:
|
||||||
"""
|
"""
|
||||||
if self.list_double_clicked:
|
if self.list_double_clicked:
|
||||||
|
Loading…
Reference in New Issue
Block a user