From f58b54bd94802569fe3a32fda5bca50cb589bbce Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 28 Dec 2023 16:35:24 +0300 Subject: [PATCH] UI: Set fixed widths for edit fields --- src/ui/form/controls/checktimeperiod.cpp | 2 +- src/ui/form/controls/labeldoublespin.cpp | 2 +- src/ui/form/controls/labelspin.cpp | 2 +- src/ui/form/controls/spincombo.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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);