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();
|
CheckState();
|
||||||
|
|
||||||
ui->checkBoxForbidFlipping->setChecked(qApp->Settings()->GetForbidWorkpieceFlipping());
|
ui->checkBoxForbidFlipping->setChecked(qApp->Settings()->GetForbidWorkpieceFlipping());
|
||||||
ui->labelUnit->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
|
||||||
ui->labelUnitBefore->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
const QString suffix = QLatin1String(" ") + VDomDocument::UnitsToStr(qApp->patternUnit(), true);
|
||||||
ui->labelUnitAfter->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
ui->doubleSpinBoxSeams->setSuffix(suffix);
|
||||||
|
ui->doubleSpinBoxSABefore->setSuffix(suffix);
|
||||||
|
ui->doubleSpinBoxSAAfter->setSuffix(suffix);
|
||||||
|
|
||||||
if(qApp->patternUnit() == Unit::Inch)
|
if(qApp->patternUnit() == Unit::Inch)
|
||||||
{
|
{
|
||||||
|
|
|
@ -154,19 +154,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -223,13 +210,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="labelUnitBefore">
|
|
||||||
<property name="text">
|
|
||||||
<string>cm</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButtonDefBefore">
|
<widget class="QPushButton" name="pushButtonDefBefore">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
@ -264,13 +244,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="labelUnitAfter">
|
|
||||||
<property name="text">
|
|
||||||
<string>cm</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButtonDefAfter">
|
<widget class="QPushButton" name="pushButtonDefAfter">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user