From 3a150bb0e73fad924ef003069ce71588abd86c00 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 25 Apr 2014 01:25:03 +0200 Subject: [PATCH] Don't overdo lambdas --- src/declarativeimports/core/tooltip.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/declarativeimports/core/tooltip.cpp b/src/declarativeimports/core/tooltip.cpp index 06a8cc6fd..630ac32f0 100644 --- a/src/declarativeimports/core/tooltip.cpp +++ b/src/declarativeimports/core/tooltip.cpp @@ -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();