Normalize signal connections

This commit is contained in:
Ilya Fedin 2023-12-22 03:43:27 +04:00 committed by John Preston
parent 83f12e2dd0
commit 955bf2dfa9

View file

@ -82,10 +82,10 @@ MaskedInputField::MaskedInputField(
setAttribute(Qt::WA_OpaquePaintEvent); setAttribute(Qt::WA_OpaquePaintEvent);
connect(this, SIGNAL(textChanged(const QString&)), this, SLOT(onTextChange(const QString&))); connect(this, SIGNAL(textChanged(QString)), this, SLOT(onTextChange(QString)));
connect(this, SIGNAL(cursorPositionChanged(int,int)), this, SLOT(onCursorPositionChanged(int,int))); connect(this, SIGNAL(cursorPositionChanged(int,int)), this, SLOT(onCursorPositionChanged(int,int)));
connect(this, SIGNAL(textEdited(const QString&)), this, SLOT(onTextEdited())); connect(this, SIGNAL(textEdited(QString)), this, SLOT(onTextEdited()));
connect(this, &MaskedInputField::selectionChanged, [] { connect(this, &MaskedInputField::selectionChanged, [] {
Integration::Instance().textActionsUpdated(); Integration::Instance().textActionsUpdated();
}); });