✨ Cosmetic changes.
This commit is contained in:
+15
-3
@@ -97,7 +97,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
self._init_threads()
|
||||
self._init_tree_results(self.tr_results)
|
||||
self._init_tree_lists(self.tr_lists_user)
|
||||
self._init_table_queue(self.tr_queue_download)
|
||||
self._init_tree_queue(self.tr_queue_download)
|
||||
self._init_info()
|
||||
self._init_progressbar()
|
||||
self._populate_quality(self.cb_quality_audio, Quality)
|
||||
@@ -212,10 +212,22 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
def _init_tree_results(self, tree: QtWidgets.QTableWidget):
|
||||
tree.sortByColumn(0, QtCore.Qt.SortOrder.AscendingOrder)
|
||||
tree.setColumnHidden(1, True)
|
||||
tree.setColumnWidth(2, 150)
|
||||
tree.setColumnWidth(3, 150)
|
||||
tree.setColumnWidth(4, 150)
|
||||
|
||||
def _init_table_queue(self, tree: QtWidgets.QTableWidget):
|
||||
tree.sortByColumn(0, QtCore.Qt.SortOrder.AscendingOrder)
|
||||
header = tree.header()
|
||||
|
||||
header.setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeToContents)
|
||||
|
||||
def _init_tree_queue(self, tree: QtWidgets.QTableWidget):
|
||||
tree.setColumnHidden(1, True)
|
||||
tree.setColumnWidth(2, 200)
|
||||
|
||||
header = tree.header()
|
||||
|
||||
header.setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeToContents)
|
||||
header.setStretchLastSection(False)
|
||||
|
||||
def tidal_user_lists(self):
|
||||
# Start loading spinner
|
||||
|
||||
@@ -177,6 +177,7 @@ class Ui_MainWindow:
|
||||
|
||||
self.cb_search_type = QComboBox(self.w_central)
|
||||
self.cb_search_type.setObjectName("cb_search_type")
|
||||
self.cb_search_type.setMinimumSize(QSize(100, 0))
|
||||
# if QT_CONFIG(tooltip)
|
||||
self.cb_search_type.setToolTip("")
|
||||
# endif // QT_CONFIG(tooltip)
|
||||
@@ -193,6 +194,7 @@ class Ui_MainWindow:
|
||||
self.cb_search_type.setAccessibleDescription("")
|
||||
# endif // QT_CONFIG(accessibility)
|
||||
self.cb_search_type.setCurrentText("")
|
||||
self.cb_search_type.setSizeAdjustPolicy(QComboBox.AdjustToContentsOnFirstShow)
|
||||
self.cb_search_type.setPlaceholderText("")
|
||||
|
||||
self.lh_search.addWidget(self.cb_search_type)
|
||||
@@ -260,6 +262,7 @@ class Ui_MainWindow:
|
||||
|
||||
self.cb_quality_audio = QComboBox(self.w_central)
|
||||
self.cb_quality_audio.setObjectName("cb_quality_audio")
|
||||
self.cb_quality_audio.setMinimumSize(QSize(130, 0))
|
||||
# if QT_CONFIG(tooltip)
|
||||
self.cb_quality_audio.setToolTip("")
|
||||
# endif // QT_CONFIG(tooltip)
|
||||
@@ -276,6 +279,7 @@ class Ui_MainWindow:
|
||||
self.cb_quality_audio.setAccessibleDescription("")
|
||||
# endif // QT_CONFIG(accessibility)
|
||||
self.cb_quality_audio.setCurrentText("")
|
||||
self.cb_quality_audio.setSizeAdjustPolicy(QComboBox.AdjustToContentsOnFirstShow)
|
||||
self.cb_quality_audio.setPlaceholderText("")
|
||||
self.cb_quality_audio.setFrame(True)
|
||||
|
||||
@@ -305,6 +309,7 @@ class Ui_MainWindow:
|
||||
|
||||
self.cb_quality_video = QComboBox(self.w_central)
|
||||
self.cb_quality_video.setObjectName("cb_quality_video")
|
||||
self.cb_quality_video.setMinimumSize(QSize(100, 0))
|
||||
# if QT_CONFIG(tooltip)
|
||||
self.cb_quality_video.setToolTip("")
|
||||
# endif // QT_CONFIG(tooltip)
|
||||
@@ -321,6 +326,7 @@ class Ui_MainWindow:
|
||||
self.cb_quality_video.setAccessibleDescription("")
|
||||
# endif // QT_CONFIG(accessibility)
|
||||
self.cb_quality_video.setCurrentText("")
|
||||
self.cb_quality_video.setSizeAdjustPolicy(QComboBox.AdjustToContentsOnFirstShow)
|
||||
self.cb_quality_video.setPlaceholderText("")
|
||||
|
||||
self.lh_download.addWidget(self.cb_quality_video)
|
||||
|
||||
@@ -234,6 +234,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_search_type">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@@ -252,6 +258,9 @@
|
||||
<property name="currentText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@@ -376,6 +385,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_quality_audio">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>140</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@@ -394,6 +409,9 @@
|
||||
<property name="currentText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@@ -429,6 +447,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_quality_video">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
@@ -447,6 +471,9 @@
|
||||
<property name="currentText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user