Skip to content

Commit 735fdbc

Browse files
committed
Adjust ui to display all contents in data_group_box
1 parent 512a55c commit 735fdbc

File tree

2 files changed

+33
-45
lines changed

2 files changed

+33
-45
lines changed

launcher/resources/launcher_v2.ui

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ QPushButton:hover {
569569
<rect>
570570
<x>21</x>
571571
<y>11</y>
572-
<width>761</width>
572+
<width>774</width>
573573
<height>529</height>
574574
</rect>
575575
</property>
@@ -578,7 +578,7 @@ QPushButton:hover {
578578
<number>9</number>
579579
</property>
580580
<item>
581-
<layout class="QVBoxLayout" name="docker_data_v_layout" stretch="0,0,0">
581+
<layout class="QVBoxLayout" name="docker_data_v_layout" stretch="0,0">
582582
<property name="spacing">
583583
<number>0</number>
584584
</property>
@@ -588,21 +588,21 @@ QPushButton:hover {
588588
<item>
589589
<widget class="QGroupBox" name="docker_group_box">
590590
<property name="sizePolicy">
591-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
591+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
592592
<horstretch>0</horstretch>
593593
<verstretch>0</verstretch>
594594
</sizepolicy>
595595
</property>
596596
<property name="minimumSize">
597597
<size>
598-
<width>0</width>
598+
<width>375</width>
599599
<height>169</height>
600600
</size>
601601
</property>
602602
<property name="maximumSize">
603603
<size>
604-
<width>16777215</width>
605-
<height>168</height>
604+
<width>373</width>
605+
<height>169</height>
606606
</size>
607607
</property>
608608
<property name="font">
@@ -868,34 +868,24 @@ QPushButton:hover {
868868
</widget>
869869
</widget>
870870
</item>
871-
<item>
872-
<spacer name="docker_data_v_spacer">
873-
<property name="orientation">
874-
<enum>Qt::Vertical</enum>
875-
</property>
876-
<property name="sizeType">
877-
<enum>QSizePolicy::Maximum</enum>
878-
</property>
879-
<property name="sizeHint" stdset="0">
880-
<size>
881-
<width>20</width>
882-
<height>132</height>
883-
</size>
884-
</property>
885-
</spacer>
886-
</item>
887871
<item>
888872
<widget class="QGroupBox" name="data_group_box">
873+
<property name="sizePolicy">
874+
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
875+
<horstretch>0</horstretch>
876+
<verstretch>0</verstretch>
877+
</sizepolicy>
878+
</property>
889879
<property name="minimumSize">
890880
<size>
891-
<width>0</width>
892-
<height>0</height>
881+
<width>375</width>
882+
<height>356</height>
893883
</size>
894884
</property>
895885
<property name="maximumSize">
896886
<size>
897-
<width>16777215</width>
898-
<height>232</height>
887+
<width>375</width>
888+
<height>356</height>
899889
</size>
900890
</property>
901891
<property name="font">
@@ -916,7 +906,7 @@ QPushButton:hover {
916906
<x>10</x>
917907
<y>20</y>
918908
<width>361</width>
919-
<height>201</height>
909+
<height>343</height>
920910
</rect>
921911
</property>
922912
<layout class="QVBoxLayout" name="data_v_layout">
@@ -1725,13 +1715,13 @@ QPushButton:hover {
17251715
</property>
17261716
<property name="minimumSize">
17271717
<size>
1728-
<width>372</width>
1718+
<width>375</width>
17291719
<height>525</height>
17301720
</size>
17311721
</property>
17321722
<property name="maximumSize">
17331723
<size>
1734-
<width>372</width>
1724+
<width>375</width>
17351725
<height>525</height>
17361726
</size>
17371727
</property>

launcher/views/main_view_ui.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def setupUi(self, main_widget):
238238
self.create_widget.setObjectName(u"create_widget")
239239
self.layoutWidget2 = QWidget(self.create_widget)
240240
self.layoutWidget2.setObjectName(u"layoutWidget2")
241-
self.layoutWidget2.setGeometry(QRect(21, 11, 761, 529))
241+
self.layoutWidget2.setGeometry(QRect(21, 11, 774, 529))
242242
self.create_h_layout = QHBoxLayout(self.layoutWidget2)
243243
self.create_h_layout.setSpacing(9)
244244
self.create_h_layout.setObjectName(u"create_h_layout")
@@ -249,10 +249,10 @@ def setupUi(self, main_widget):
249249
self.docker_data_v_layout.setContentsMargins(-1, 0, -1, -1)
250250
self.docker_group_box = QGroupBox(self.layoutWidget2)
251251
self.docker_group_box.setObjectName(u"docker_group_box")
252-
sizePolicy.setHeightForWidth(self.docker_group_box.sizePolicy().hasHeightForWidth())
253-
self.docker_group_box.setSizePolicy(sizePolicy)
254-
self.docker_group_box.setMinimumSize(QSize(0, 169))
255-
self.docker_group_box.setMaximumSize(QSize(16777215, 168))
252+
sizePolicy1.setHeightForWidth(self.docker_group_box.sizePolicy().hasHeightForWidth())
253+
self.docker_group_box.setSizePolicy(sizePolicy1)
254+
self.docker_group_box.setMinimumSize(QSize(375, 169))
255+
self.docker_group_box.setMaximumSize(QSize(373, 169))
256256
self.docker_group_box.setFont(font)
257257
self.layoutWidget3 = QWidget(self.docker_group_box)
258258
self.layoutWidget3.setObjectName(u"layoutWidget3")
@@ -342,18 +342,16 @@ def setupUi(self, main_widget):
342342

343343
self.docker_data_v_layout.addWidget(self.docker_group_box)
344344

345-
self.docker_data_v_spacer = QSpacerItem(20, 132, QSizePolicy.Minimum, QSizePolicy.Maximum)
346-
347-
self.docker_data_v_layout.addItem(self.docker_data_v_spacer)
348-
349345
self.data_group_box = QGroupBox(self.layoutWidget2)
350346
self.data_group_box.setObjectName(u"data_group_box")
351-
self.data_group_box.setMinimumSize(QSize(0, 0))
352-
self.data_group_box.setMaximumSize(QSize(16777215, 232))
347+
sizePolicy1.setHeightForWidth(self.data_group_box.sizePolicy().hasHeightForWidth())
348+
self.data_group_box.setSizePolicy(sizePolicy1)
349+
self.data_group_box.setMinimumSize(QSize(375, 356))
350+
self.data_group_box.setMaximumSize(QSize(375, 356))
353351
self.data_group_box.setFont(font)
354352
self.layoutWidget4 = QWidget(self.data_group_box)
355353
self.layoutWidget4.setObjectName(u"layoutWidget4")
356-
self.layoutWidget4.setGeometry(QRect(10, 20, 361, 201))
354+
self.layoutWidget4.setGeometry(QRect(10, 20, 361, 343))
357355
self.data_v_layout = QVBoxLayout(self.layoutWidget4)
358356
self.data_v_layout.setSpacing(9)
359357
self.data_v_layout.setObjectName(u"data_v_layout")
@@ -464,7 +462,7 @@ def setupUi(self, main_widget):
464462
self.test_push_button.setFont(font)
465463

466464
self.test_h_layout.addWidget(self.test_push_button)
467-
465+
468466

469467
self.data_v_layout.addLayout(self.test_h_layout)
470468

@@ -622,8 +620,8 @@ def setupUi(self, main_widget):
622620
self.model_group_box.setObjectName(u"model_group_box")
623621
sizePolicy1.setHeightForWidth(self.model_group_box.sizePolicy().hasHeightForWidth())
624622
self.model_group_box.setSizePolicy(sizePolicy1)
625-
self.model_group_box.setMinimumSize(QSize(372, 525))
626-
self.model_group_box.setMaximumSize(QSize(372, 525))
623+
self.model_group_box.setMinimumSize(QSize(375, 525))
624+
self.model_group_box.setMaximumSize(QSize(375, 525))
627625
self.model_group_box.setFont(font)
628626
self.layoutWidget_2 = QWidget(self.model_group_box)
629627
self.layoutWidget_2.setObjectName(u"layoutWidget_2")
@@ -1088,7 +1086,7 @@ def retranslateUi(self, main_widget):
10881086
#if QT_CONFIG(tooltip)
10891087
self.gen_label.setToolTip(QCoreApplication.translate("main_widget", u"The root path of the generated files", None))
10901088
#endif // QT_CONFIG(tooltip)
1091-
self.gen_label.setText(QCoreApplication.translate("main_widget", u"Generated Files", None))
1089+
self.gen_label.setText(QCoreApplication.translate("main_widget", u"Generated Set", None))
10921090
self.gen_line_edit.setText("")
10931091
self.gen_push_button.setText(QCoreApplication.translate("main_widget", u"...", None))
10941092
#if QT_CONFIG(tooltip)

0 commit comments

Comments
 (0)