diff --git a/src/ui/form/controls/checktimeperiod.cpp b/src/ui/form/controls/checktimeperiod.cpp index 8ff7e33c..8f4514cc 100644 --- a/src/ui/form/controls/checktimeperiod.cpp +++ b/src/ui/form/controls/checktimeperiod.cpp @@ -29,7 +29,7 @@ void CheckTimePeriod::setupUi() QTimeEdit *CheckTimePeriod::createTimeEdit() { auto c = new QTimeEdit(); - c->setMinimumWidth(70); + c->setFixedWidth(70); c->setDisplayFormat(timeFormat()); c->setWrapping(true); return c; diff --git a/src/ui/form/controls/labeldoublespin.cpp b/src/ui/form/controls/labeldoublespin.cpp index 9cb409bd..24562279 100644 --- a/src/ui/form/controls/labeldoublespin.cpp +++ b/src/ui/form/controls/labeldoublespin.cpp @@ -30,6 +30,6 @@ void LabelDoubleSpin::setupUi() void LabelDoubleSpin::setupSpin() { m_spinBox = new DoubleSpinBox(); - m_spinBox->setMinimumWidth(110); + m_spinBox->setFixedWidth(110); m_spinBox->setRange(0, 9999); } diff --git a/src/ui/form/controls/labelspin.cpp b/src/ui/form/controls/labelspin.cpp index b9af35aa..32d48539 100644 --- a/src/ui/form/controls/labelspin.cpp +++ b/src/ui/form/controls/labelspin.cpp @@ -30,6 +30,6 @@ void LabelSpin::setupUi() void LabelSpin::setupSpin() { m_spinBox = ControlUtil::createSpinBox(); - m_spinBox->setMinimumWidth(110); + m_spinBox->setFixedWidth(110); m_spinBox->setRange(0, 9999); } diff --git a/src/ui/form/controls/spincombo.cpp b/src/ui/form/controls/spincombo.cpp index bedeb93d..1f7d5171 100644 --- a/src/ui/form/controls/spincombo.cpp +++ b/src/ui/form/controls/spincombo.cpp @@ -54,7 +54,7 @@ void SpinCombo::setupUi() void SpinCombo::setupSpin() { m_spinBox = ControlUtil::createSpinBox(); - m_spinBox->setMinimumWidth(110); + m_spinBox->setFixedWidth(110); m_spinBox->setRange(0, 9999); connect(m_spinBox, QOverload::of(&QSpinBox::valueChanged), this, @@ -64,7 +64,7 @@ void SpinCombo::setupSpin() void SpinCombo::setupCombo() { m_comboBox = ControlUtil::createComboBox(); - m_comboBox->setMinimumWidth(120); + m_comboBox->setFixedWidth(110); connect(m_comboBox, QOverload::of(&QComboBox::activated), this, &SpinCombo::updateSpinBoxValue);