Don't overdo lambdas

This commit is contained in:
Aleix Pol 2014-04-25 01:25:03 +02:00
parent 7c83fd542e
commit 3a150bb0e7

View File

@ -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();