Changeset View
Changeset View
Standalone View
Standalone View
addons/search/replace_matches.cpp
Show All 25 Lines | |||||
26 | #include <ktexteditor/movingrange.h> | 26 | #include <ktexteditor/movingrange.h> | ||
27 | #include <klocalizedstring.h> | 27 | #include <klocalizedstring.h> | ||
28 | 28 | | |||
29 | ReplaceMatches::ReplaceMatches(QObject *parent) : QObject(parent), | 29 | ReplaceMatches::ReplaceMatches(QObject *parent) : QObject(parent), | ||
30 | m_manager(nullptr), | 30 | m_manager(nullptr), | ||
31 | m_tree(nullptr), | 31 | m_tree(nullptr), | ||
32 | m_rootIndex(-1) | 32 | m_rootIndex(-1) | ||
33 | { | 33 | { | ||
34 | connect(this, SIGNAL(replaceNextMatch()), this, SLOT(doReplaceNextMatch()), Qt::QueuedConnection); | 34 | connect(this, &ReplaceMatches::replaceNextMatch, this, &ReplaceMatches::doReplaceNextMatch, Qt::QueuedConnection); | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | void ReplaceMatches::replaceChecked(QTreeWidget *tree, const QRegularExpression ®exp, const QString &replace) | 37 | void ReplaceMatches::replaceChecked(QTreeWidget *tree, const QRegularExpression ®exp, const QString &replace) | ||
38 | { | 38 | { | ||
39 | if (m_manager == nullptr) return; | 39 | if (m_manager == nullptr) return; | ||
40 | if (m_rootIndex != -1) return; | 40 | if (m_rootIndex != -1) return; | ||
41 | 41 | | |||
42 | m_tree = tree; | 42 | m_tree = tree; | ||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |