Changeset View
Changeset View
Standalone View
Standalone View
addons/search/search_open_files.cpp
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "search_open_files.h" | 21 | #include "search_open_files.h" | ||
22 | 22 | | |||
23 | #include <QTime> | 23 | #include <QTime> | ||
24 | 24 | | |||
25 | SearchOpenFiles::SearchOpenFiles(QObject *parent) : QObject(parent), m_nextIndex(-1), m_cancelSearch(true) | 25 | SearchOpenFiles::SearchOpenFiles(QObject *parent) : QObject(parent), m_nextIndex(-1), m_cancelSearch(true) | ||
26 | { | 26 | { | ||
27 | connect(this, SIGNAL(searchNextFile(int)), this, SLOT(doSearchNextFile(int)), Qt::QueuedConnection); | 27 | connect(this, &SearchOpenFiles::searchNextFile, this, &SearchOpenFiles::doSearchNextFile, Qt::QueuedConnection); | ||
28 | } | 28 | } | ||
29 | 29 | | |||
30 | bool SearchOpenFiles::searching() { return !m_cancelSearch; } | 30 | bool SearchOpenFiles::searching() { return !m_cancelSearch; } | ||
31 | 31 | | |||
32 | void SearchOpenFiles::startSearch(const QList<KTextEditor::Document*> &list, const QRegularExpression ®exp) | 32 | void SearchOpenFiles::startSearch(const QList<KTextEditor::Document*> &list, const QRegularExpression ®exp) | ||
33 | { | 33 | { | ||
34 | if (m_nextIndex != -1) return; | 34 | if (m_nextIndex != -1) return; | ||
35 | 35 | | |||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |