diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-06-05 22:22:11 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-06-06 10:51:22 +0000 |
commit | c64f85cd5a177a3391ad23c8ff42ab4b091d5a29 (patch) | |
tree | 1619174a09888e8b0993ab9e0130cd2a3ca16b70 /src/plugins/qtsupport/profilereader.cpp | |
parent | 9a637ba3e31e8e4980cd78388e033d6a3389ab40 (diff) |
QtSupport: Use Qt5-style connects
The heavy lifting was done by clazy.
Change-Id: I24cb0cd088b74364320cdd34282d7b15305a93bf
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/profilereader.cpp')
-rw-r--r-- | src/plugins/qtsupport/profilereader.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qtsupport/profilereader.cpp b/src/plugins/qtsupport/profilereader.cpp index dbad039cf94..7bbf0b51104 100644 --- a/src/plugins/qtsupport/profilereader.cpp +++ b/src/plugins/qtsupport/profilereader.cpp @@ -47,9 +47,8 @@ ProMessageHandler::ProMessageHandler(bool verbose, bool exact) //: Prefix used for output from the cumulative evaluation of project files. , m_prefix(tr("[Inexact] ")) { - QObject::connect(this, SIGNAL(writeMessage(QString,Core::MessageManager::PrintToOutputPaneFlags)), - Core::MessageManager::instance(), SLOT(write(QString,Core::MessageManager::PrintToOutputPaneFlags)), - Qt::QueuedConnection); + connect(this, &ProMessageHandler::writeMessage, + Core::MessageManager::instance(), &Core::MessageManager::write, Qt::QueuedConnection); } void ProMessageHandler::message(int type, const QString &msg, const QString &fileName, int lineNo) @@ -129,8 +128,8 @@ ProFileCacheManager::ProFileCacheManager(QObject *parent) : s_instance = this; m_timer.setInterval(5000); m_timer.setSingleShot(true); - connect(&m_timer, SIGNAL(timeout()), - this, SLOT(clear())); + connect(&m_timer, &QTimer::timeout, + this, &ProFileCacheManager::clear); } void ProFileCacheManager::incRefCount() |