impr: minor improvements

This commit is contained in:
283375 2023-10-15 03:14:22 +08:00
parent 86b1653fe3
commit 6b28de247e
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk
4 changed files with 10 additions and 39 deletions

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>476</width> <width>476</width>
<height>347</height> <height>93</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -16,12 +16,6 @@
<layout class="QVBoxLayout" name="mainVerticalLayout"> <layout class="QVBoxLayout" name="mainVerticalLayout">
<item> <item>
<widget class="QGroupBox" name="songIdSelectorGroupBox"> <widget class="QGroupBox" name="songIdSelectorGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>songIdSelector.title</string> <string>songIdSelector.title</string>
</property> </property>

View File

@ -25,17 +25,12 @@ class Ui_ChartSelector(object):
def setupUi(self, ChartSelector): def setupUi(self, ChartSelector):
if not ChartSelector.objectName(): if not ChartSelector.objectName():
ChartSelector.setObjectName(u"ChartSelector") ChartSelector.setObjectName(u"ChartSelector")
ChartSelector.resize(476, 347) ChartSelector.resize(476, 93)
ChartSelector.setWindowTitle(u"ChartSelector") ChartSelector.setWindowTitle(u"ChartSelector")
self.mainVerticalLayout = QVBoxLayout(ChartSelector) self.mainVerticalLayout = QVBoxLayout(ChartSelector)
self.mainVerticalLayout.setObjectName(u"mainVerticalLayout") self.mainVerticalLayout.setObjectName(u"mainVerticalLayout")
self.songIdSelectorGroupBox = QGroupBox(ChartSelector) self.songIdSelectorGroupBox = QGroupBox(ChartSelector)
self.songIdSelectorGroupBox.setObjectName(u"songIdSelectorGroupBox") self.songIdSelectorGroupBox.setObjectName(u"songIdSelectorGroupBox")
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.songIdSelectorGroupBox.sizePolicy().hasHeightForWidth())
self.songIdSelectorGroupBox.setSizePolicy(sizePolicy)
self.verticalLayout_3 = QVBoxLayout(self.songIdSelectorGroupBox) self.verticalLayout_3 = QVBoxLayout(self.songIdSelectorGroupBox)
self.verticalLayout_3.setObjectName(u"verticalLayout_3") self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
@ -56,11 +51,11 @@ class Ui_ChartSelector(object):
self.resultsHorizontalLayout.setObjectName(u"resultsHorizontalLayout") self.resultsHorizontalLayout.setObjectName(u"resultsHorizontalLayout")
self.resultLabel = QLabel(ChartSelector) self.resultLabel = QLabel(ChartSelector)
self.resultLabel.setObjectName(u"resultLabel") self.resultLabel.setObjectName(u"resultLabel")
sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred) sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
sizePolicy1.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.resultLabel.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.resultLabel.sizePolicy().hasHeightForWidth())
self.resultLabel.setSizePolicy(sizePolicy1) self.resultLabel.setSizePolicy(sizePolicy)
self.resultLabel.setText(u"...") self.resultLabel.setText(u"...")
self.resultLabel.setTextFormat(Qt.RichText) self.resultLabel.setTextFormat(Qt.RichText)

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>350</width> <width>350</width>
<height>250</height> <height>102</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -27,19 +27,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>

View File

@ -16,14 +16,13 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QImage, QKeySequence, QLinearGradient, QPainter, QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform) QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QComboBox, QHBoxLayout, QLineEdit, from PySide6.QtWidgets import (QApplication, QComboBox, QHBoxLayout, QLineEdit,
QPushButton, QSizePolicy, QSpacerItem, QVBoxLayout, QPushButton, QSizePolicy, QVBoxLayout, QWidget)
QWidget)
class Ui_SongIdSelector(object): class Ui_SongIdSelector(object):
def setupUi(self, SongIdSelector): def setupUi(self, SongIdSelector):
if not SongIdSelector.objectName(): if not SongIdSelector.objectName():
SongIdSelector.setObjectName(u"SongIdSelector") SongIdSelector.setObjectName(u"SongIdSelector")
SongIdSelector.resize(350, 250) SongIdSelector.resize(350, 102)
SongIdSelector.setWindowTitle(u"SongIdSelector") SongIdSelector.setWindowTitle(u"SongIdSelector")
self.verticalLayout_2 = QVBoxLayout(SongIdSelector) self.verticalLayout_2 = QVBoxLayout(SongIdSelector)
self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.verticalLayout_2.setObjectName(u"verticalLayout_2")
@ -34,10 +33,6 @@ class Ui_SongIdSelector(object):
self.verticalLayout_2.addWidget(self.searchLineEdit) self.verticalLayout_2.addWidget(self.searchLineEdit)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer)
self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.previousPackageButton = QPushButton(SongIdSelector) self.previousPackageButton = QPushButton(SongIdSelector)