forked from qt-creator/qt-creator
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -158,7 +158,7 @@ void BaseFileFind::runSearch(Find::SearchResult *search)
|
||||
ITextEditor::openedTextEditorsContents()));
|
||||
}
|
||||
Core::FutureProgress *progress =
|
||||
Core::ICore::instance()->progressManager()->addTask(watcher->future(),
|
||||
Core::ICore::progressManager()->addTask(watcher->future(),
|
||||
tr("Search"),
|
||||
QLatin1String(Constants::TASK_SEARCH));
|
||||
progress->setWidget(label);
|
||||
@@ -179,9 +179,8 @@ void BaseFileFind::doReplace(const QString &text,
|
||||
const QList<Find::SearchResultItem> &items)
|
||||
{
|
||||
QStringList files = replaceAll(text, items);
|
||||
Core::FileManager *fileManager = Core::ICore::instance()->fileManager();
|
||||
if (!files.isEmpty()) {
|
||||
fileManager->notifyFilesChangedInternally(files);
|
||||
Core::ICore::fileManager()->notifyFilesChangedInternally(files);
|
||||
Find::SearchResultWindow::instance()->hide();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user