Изменён отступ в формах без заголовка

master-3.5
parent dc319ba335
commit b07cd4acd2

@ -315,14 +315,19 @@ class MainFrame(QtGui.QWidget):
self.buttons = []
for Group in self.view.groups.GroupField:
if Group.name and self.isMultistep():
self.group_name_label = LabelWordWrap(Group.name, self)
self.group_name_label.setAlignment(QtCore.Qt.AlignLeft)
self.group_name_label.setStyleSheet("font-size: 16px;"
"font-weight: bold;");
self.grid.addWidget(self.group_name_label, x, y, 1, 2)
x += 1
if self.isMultistep():
groupname = Group.name
fontsize = "16px"
else:
groupname = " "
fontsize = "1px"
self.group_name_label = LabelWordWrap(groupname, self)
self.group_name_label.setAlignment(QtCore.Qt.AlignLeft)
self.group_name_label.setStyleSheet("font-size: %s;"
"font-weight: bold;"%fontsize);
self.grid.addWidget(self.group_name_label, x, y, 1, 2)
x += 1
if not Group.fields:
continue

Loading…
Cancel
Save