connect() to ambiguous signals/slots: Replace static_cast with QOverload

Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Alessandro Portale
2019-05-27 23:28:48 +02:00
parent 1b11c4d4b6
commit 0933c20de8
34 changed files with 42 additions and 50 deletions

View File

@@ -509,7 +509,7 @@ CallgrindToolPrivate::CallgrindToolPrivate()
m_searchFilter = new QLineEdit;
m_searchFilter->setPlaceholderText(CallgrindTool::tr("Filter..."));
connect(m_searchFilter, &QLineEdit::textChanged,
&m_updateTimer, static_cast<void(QTimer::*)()>(&QTimer::start));
&m_updateTimer, QOverload<>::of(&QTimer::start));
setCostFormat(settings->costFormat());
enableCycleDetection(settings->detectCycles());