Commit 4e76d0db authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Setup widget first

parent 33a714a9
Pipeline #28639 failed with stage
in 24 minutes and 4 seconds
......@@ -77,10 +77,6 @@ AccountWidget::AccountWidget(Settings &settings, const QString &identifier, QWid
, mSettings(settings)
{
mValidator.setRegExp(QRegExp(QLatin1String("[A-Za-z0-9-_:.]*")));
new KPIM::LineEditCatchReturnKey(nameEdit, this);
new KPIM::LineEditCatchReturnKey(hostEdit, this);
new KPIM::LineEditCatchReturnKey(loginEdit, this);
new KPIM::LineEditCatchReturnKey(precommand, this);
setupWidgets();
}
......@@ -108,6 +104,11 @@ void AccountWidget::setupWidgets()
intervalSpin->setRange(ResourceSettings::self()->minimumCheckInterval(), 10000);
intervalSpin->setSingleStep(1);
new KPIM::LineEditCatchReturnKey(nameEdit, this);
new KPIM::LineEditCatchReturnKey(hostEdit, this);
new KPIM::LineEditCatchReturnKey(loginEdit, this);
new KPIM::LineEditCatchReturnKey(precommand, this);
connect(leaveOnServerCheck, &QCheckBox::clicked, this, &AccountWidget::slotLeaveOnServerClicked);
connect(leaveOnServerDaysCheck, &QCheckBox::toggled, this, &AccountWidget::slotEnableLeaveOnServerDays);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment