aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-11-01 17:02:02 +0100
committerEike Ziller <eike.ziller@qt.io>2021-11-02 08:11:14 +0000
commit195abefe7da8325816081c67062c89a11cf734da (patch)
treedf1e26e51f079b09a358a9fe79da04ceb32da538 /src/plugins/fakevim
parent4dac32d6610db6c2f0c99b1d966ab53f38cd26e9 (diff)
EditorManager: Remove QString openEditor(At) overloads
In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimplugin.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp
index fae4f7c835d..0ca936d4bff 100644
--- a/src/plugins/fakevim/fakevimplugin.cpp
+++ b/src/plugins/fakevim/fakevimplugin.cpp
@@ -1841,12 +1841,13 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
}
});
- handler->requestJumpToGlobalMark.connect([this](QChar mark, bool backTickMode, const QString &fileName) {
- if (IEditor *iedit = EditorManager::openEditor(fileName)) {
- if (FakeVimHandler *handler = m_editorToHandler.value(iedit, nullptr))
- handler->jumpToLocalMark(mark, backTickMode);
- }
- });
+ handler->requestJumpToGlobalMark.connect(
+ [this](QChar mark, bool backTickMode, const QString &fileName) {
+ if (IEditor *iedit = EditorManager::openEditor(FilePath::fromString(fileName))) {
+ if (FakeVimHandler *handler = m_editorToHandler.value(iedit, nullptr))
+ handler->jumpToLocalMark(mark, backTickMode);
+ }
+ });
handler->handleExCommandRequested.connect([this, handler](bool *handled, const ExCommand &cmd) {
handleExCommand(handler, handled, cmd);