UI: Set fixed widths for edit fields

This commit is contained in:
Nodir Temirkhodjaev 2023-12-28 16:35:24 +03:00
parent 8aec6951ad
commit f58b54bd94
4 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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<int>::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<int>::of(&QComboBox::activated), this,
&SpinCombo::updateSpinBoxValue);