forked from openlp/openlp
Improve single click behavior (remove flickering)
This commit is contained in:
parent
1cd9fff9bd
commit
de8074b00a
@ -495,8 +495,8 @@ s
|
|||||||
if service_item:
|
if service_item:
|
||||||
service_item.from_plugin = True
|
service_item.from_plugin = True
|
||||||
self.preview_controller.add_service_item(service_item)
|
self.preview_controller.add_service_item(service_item)
|
||||||
if keep_focus:
|
if not keep_focus:
|
||||||
self.list_view.setFocus()
|
self.preview_controller.preview_widget.setFocus()
|
||||||
|
|
||||||
def on_live_click(self):
|
def on_live_click(self):
|
||||||
"""
|
"""
|
||||||
@ -535,6 +535,7 @@ s
|
|||||||
if remote:
|
if remote:
|
||||||
service_item.will_auto_start = True
|
service_item.will_auto_start = True
|
||||||
self.live_controller.add_service_item(service_item)
|
self.live_controller.add_service_item(service_item)
|
||||||
|
self.live_controller.preview_widget.setFocus()
|
||||||
|
|
||||||
def create_item_from_id(self, item_id):
|
def create_item_from_id(self, item_id):
|
||||||
"""
|
"""
|
||||||
|
@ -136,7 +136,6 @@ class ListPreviewWidget(QtGui.QTableWidget, RegistryProperties):
|
|||||||
if self.service_item.is_text():
|
if self.service_item.is_text():
|
||||||
self.resizeRowsToContents()
|
self.resizeRowsToContents()
|
||||||
self.setColumnWidth(0, self.viewport().width())
|
self.setColumnWidth(0, self.viewport().width())
|
||||||
self.setFocus()
|
|
||||||
self.change_slide(slide_number)
|
self.change_slide(slide_number)
|
||||||
|
|
||||||
def change_slide(self, slide):
|
def change_slide(self, slide):
|
||||||
|
Loading…
Reference in New Issue
Block a user