Use QDoubleSpinBox setSuffix() method instead independent label.
--HG-- branch : feature
This commit is contained in:
parent
c5536ab38a
commit
6706f3b39d
|
@ -51,9 +51,11 @@ DialogSeamAllowance::DialogSeamAllowance(const VContainer *data, const quint32 &
|
|||
CheckState();
|
||||
|
||||
ui->checkBoxForbidFlipping->setChecked(qApp->Settings()->GetForbidWorkpieceFlipping());
|
||||
ui->labelUnit->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
ui->labelUnitBefore->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
ui->labelUnitAfter->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||
|
||||
const QString suffix = QLatin1String(" ") + VDomDocument::UnitsToStr(qApp->patternUnit(), true);
|
||||
ui->doubleSpinBoxSeams->setSuffix(suffix);
|
||||
ui->doubleSpinBoxSABefore->setSuffix(suffix);
|
||||
ui->doubleSpinBoxSAAfter->setSuffix(suffix);
|
||||
|
||||
if(qApp->patternUnit() == Unit::Inch)
|
||||
{
|
||||
|
|
|
@ -154,19 +154,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelUnit">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>cm</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
|
@ -223,13 +210,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelUnitBefore">
|
||||
<property name="text">
|
||||
<string>cm</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButtonDefBefore">
|
||||
<property name="toolTip">
|
||||
|
@ -264,13 +244,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelUnitAfter">
|
||||
<property name="text">
|
||||
<string>cm</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButtonDefAfter">
|
||||
<property name="toolTip">
|
||||
|
|
Loading…
Reference in New Issue
Block a user