diff options
author | hjk <hjk121@nokiamail.com> | 2013-08-29 15:46:04 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-08-30 11:22:56 +0200 |
commit | 4a24df38a3a164c51f9cdddd566c9928a7482a0a (patch) | |
tree | 0017d4109b5437e0da0c0e423c888a2cb7dd8dca /src/plugins/texteditor/findinopenfiles.cpp | |
parent | e1823072a1094e9aba2781aec963fc2d2e56169f (diff) | |
download | qt-creator-4a24df38a3a164c51f9cdddd566c9928a7482a0a.tar.gz |
EditorManager: Use static pattern, adjust surrounding code
Change-Id: I3255a0150cd9a730336456c5a9f986eb74fefbff
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/texteditor/findinopenfiles.cpp')
-rw-r--r-- | src/plugins/texteditor/findinopenfiles.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/findinopenfiles.cpp b/src/plugins/texteditor/findinopenfiles.cpp index 8f3d258465..7a882056d3 100644 --- a/src/plugins/texteditor/findinopenfiles.cpp +++ b/src/plugins/texteditor/findinopenfiles.cpp @@ -43,9 +43,9 @@ using namespace TextEditor::Internal; FindInOpenFiles::FindInOpenFiles() { - connect(Core::ICore::instance()->editorManager(), SIGNAL(editorOpened(Core::IEditor*)), + connect(Core::EditorManager::instance(), SIGNAL(editorOpened(Core::IEditor*)), this, SLOT(updateEnabledState())); - connect(Core::ICore::instance()->editorManager(), SIGNAL(editorsClosed(QList<Core::IEditor*>)), + connect(Core::EditorManager::instance(), SIGNAL(editorsClosed(QList<Core::IEditor*>)), this, SLOT(updateEnabledState())); } @@ -74,7 +74,7 @@ Utils::FileIterator *FindInOpenFiles::files(const QStringList &nameFilters, fileNames.append(fileName); QTextCodec *codec = openEditorEncodings.value(fileName); if (!codec) - codec = Core::EditorManager::instance()->defaultTextCodec(); + codec = Core::EditorManager::defaultTextCodec(); codecs.append(codec); } } |