mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:55:54 +00:00
UI: Set fixed widths for edit fields
This commit is contained in:
parent
8aec6951ad
commit
f58b54bd94
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user