diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index 8588141550..2410ed4b6f 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -259,7 +259,7 @@ QuantitySpinBox::QuantitySpinBox(QWidget *parent) iconLabel->setStyleSheet(QString::fromLatin1("QLabel { border: none; padding: 0px; padding-top: %2px; width: %1px; height: %1px }").arg(iconHeight).arg(frameWidth/2)); iconLabel->hide(); lineEdit()->setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px } ").arg(iconHeight+frameWidth)); - // When a style sheet is set the text margins must for top/bottom must be set to avoid to squash the widget + // When a style sheet is set the text margins for top/bottom must be set to avoid to squash the widget lineEdit()->setTextMargins(0, 2, 0, 2); QObject::connect(iconLabel, SIGNAL(clicked()), this, SLOT(openFormulaDialog()));