change select all icons. fix wordwrap

This commit is contained in:
Philip Ridout 2019-02-15 22:34:53 +00:00
parent de89167a33
commit 5fdebcb7a6
3 changed files with 6 additions and 4 deletions

View File

@ -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):
"""

View File

@ -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)

View File

@ -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'},