Don't overdo lambdas
This commit is contained in:
parent
7c83fd542e
commit
3a150bb0e7
@ -43,9 +43,7 @@ ToolTip::ToolTip(QQuickItem *parent)
|
||||
{
|
||||
m_showTimer = new QTimer(this);
|
||||
m_showTimer->setSingleShot(true);
|
||||
connect(m_showTimer, &QTimer::timeout, [=]() {
|
||||
showToolTip();
|
||||
});
|
||||
connect(m_showTimer, &QTimer::timeout, this, &ToolTip::showToolTip);
|
||||
|
||||
settingsChanged();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user