From 5fdebcb7a6ed2dda3389639b58b9bfe00ac135b8 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Fri, 15 Feb 2019 22:34:53 +0000 Subject: [PATCH] change select all icons. fix wordwrap --- openlp/core/ui/firsttimeform.py | 3 ++- openlp/core/ui/firsttimewizard.py | 5 ++--- openlp/core/ui/icons.py | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openlp/core/ui/firsttimeform.py b/openlp/core/ui/firsttimeform.py index c84c21475..cd4f874b3 100644 --- a/openlp/core/ui/firsttimeform.py +++ b/openlp/core/ui/firsttimeform.py @@ -69,7 +69,8 @@ class ThemeListWidgetItem(QtWidgets.QListWidgetItem): worker.download_succeeded.connect(self._on_thumbnail_downloaded) thread_name = f'thumbnail_download_{thumbnail}' run_thread(worker, thread_name) - ftw.thumbnail_download_threads.append(thread_name) # TODO: Already in the application que + ftw.thumbnail_download_threads.append(thread_name) + def _on_download_failed(self): """ diff --git a/openlp/core/ui/firsttimewizard.py b/openlp/core/ui/firsttimewizard.py index 8388c915d..37b9389a7 100644 --- a/openlp/core/ui/firsttimewizard.py +++ b/openlp/core/ui/firsttimewizard.py @@ -68,7 +68,6 @@ class ThemeListWidget(QtWidgets.QListWidget): self.setResizeMode(QtWidgets.QListView.Adjust) self.setViewMode(QtWidgets.QListView.IconMode) self.setUniformItemSizes(True) - self.setWordWrap(True) def resizeEvent(self, event): """ @@ -222,10 +221,10 @@ class UiFirstTimeWizard(object): self.theme_options_layout.addLayout(self.default_theme_layout, stretch=1) self.select_buttons_layout = QtWidgets.QHBoxLayout() self.themes_select_all_button = QtWidgets.QToolButton(self.themes_page) - self.themes_select_all_button.setIcon(UiIcons().plus) + self.themes_select_all_button.setIcon(UiIcons().select_all) self.select_buttons_layout.addWidget(self.themes_select_all_button, stretch=1, alignment=QtCore.Qt.AlignRight) self.themes_deselect_all_button = QtWidgets.QToolButton(self.themes_page) - self.themes_deselect_all_button.setIcon(UiIcons().minus) + self.themes_deselect_all_button.setIcon(UiIcons().select_none) self.select_buttons_layout.addWidget(self.themes_deselect_all_button) self.theme_options_layout.addLayout(self.select_buttons_layout, stretch=1) self.themes_layout.addLayout(self.theme_options_layout) diff --git a/openlp/core/ui/icons.py b/openlp/core/ui/icons.py index d62e9fce5..5aa157e9f 100644 --- a/openlp/core/ui/icons.py +++ b/openlp/core/ui/icons.py @@ -138,6 +138,8 @@ class UiIcons(object): 'search_plus': {'icon': 'fa.search-plus'}, 'search_ref': {'icon': 'fa.institution'}, 'search_text': {'icon': 'op.search-text'}, + 'select_all': {'icon': 'fa.check-square-o'}, + 'select_none': {'icon': 'fa.square-o'}, 'settings': {'icon': 'fa.cogs'}, 'shortcuts': {'icon': 'fa.wrench'}, 'song_usage': {'icon': 'fa.line-chart'},