Skip to content

Commit f869a97

Browse files
committed
Fixed model comment not being limited in width
1 parent bd495f6 commit f869a97

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ui/randomizer_window.ui

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,18 @@
522522
</item>
523523
<item>
524524
<widget class="QLabel" name="custom_model_comment">
525+
<property name="maximumSize">
526+
<size>
527+
<width>810</width>
528+
<height>16777215</height>
529+
</size>
530+
</property>
525531
<property name="text">
526532
<string/>
527533
</property>
534+
<property name="wordWrap">
535+
<bool>true</bool>
536+
</property>
528537
</widget>
529538
</item>
530539
<item>

ui/ui_randomizer_window.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Form implementation generated from reading ui file 'randomizer_window.ui',
44
# licensing of 'randomizer_window.ui' applies.
55
#
6-
# Created: Sat Oct 6 13:19:08 2018
6+
# Created: Fri Oct 12 21:11:04 2018
77
# by: pyside2-uic running on PySide2 5.11.2
88
#
99
# WARNING! All changes made in this file will be lost!
@@ -241,7 +241,9 @@ def setupUi(self, MainWindow):
241241
self.gridLayout_5.addWidget(self.player_in_casual_clothes, 0, 1, 1, 1)
242242
self.verticalLayout_3.addLayout(self.gridLayout_5)
243243
self.custom_model_comment = QtWidgets.QLabel(self.tab_2)
244+
self.custom_model_comment.setMaximumSize(QtCore.QSize(810, 16777215))
244245
self.custom_model_comment.setText("")
246+
self.custom_model_comment.setWordWrap(True)
245247
self.custom_model_comment.setObjectName("custom_model_comment")
246248
self.verticalLayout_3.addWidget(self.custom_model_comment)
247249
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()

0 commit comments

Comments
 (0)