listpreviewwidget¶
The listpreviewwidget
is a widget that lists the slides in the slide controller.
It is based on a QTableWidget but represents its contents in list form.
-
class
openlp.core.ui.lib.listpreviewwidget.
ListPreviewWidget
(parent, screen_ratio)[source]¶ Bases:
PyQt5.QtWidgets.QTableWidget
,openlp.core.common.registryproperties.RegistryProperties
A special type of QTableWidget which lists the slides in the slide controller
Parameters: - parent –
- screen_ratio –
-
current_slide_number
()[source]¶ Returns the position of the currently active item. Will return -1 if the widget is empty.
-
replace_service_item
(service_item, width, slide_number)[source]¶ Replace the current preview items with the ones in service_item and display the given slide
Parameters: - service_item – The service item to insert
- width – The width of the column
- slide_number – The slide number to pre-select