void TimedWideComboBox::connectToEditor()
{
if (!lineEdit())
return;
connect(lineEdit(), &QLineEdit::textEdited, this, &This::origDataChanged);
}
bool TimedWideComboBox::event(QEvent* ev)
{
bool b = Super::event(ev);
switch (ev->type()) {
case QEvent::ChildAdded: {
auto ev1 = static_cast<QChildEvent*>(ev);
if (ev1->child() == lineEdit()) {
connectToEditor();
return true;
}
} break;
default:;
}
return b;
}