diff options
author | Christian Kandeler <[email protected]> | 2025-02-07 15:29:58 +0100 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2025-02-10 15:29:44 +0000 |
commit | 1fc0ae754b9373d70fec3eb5d7a512266ab88db5 (patch) | |
tree | f362712e29edd74e96055e4a5c08ba2401254ac0 /src/plugins/nim | |
parent | bd63ad17338c04a7ab9f8e8ec6f42a9d2dbdee20 (diff) |
TextEditor: Remove references to ProjectExplorer::Project
The TextEditor plugin does not have a depencency on ProjectExplorer, so
we must not reference any symbols from there.
This is a mechanical change that just hides the symbols to fix the problem
ASAP. We may or may not want to look for a more elegant solution later.
Change-Id: I821ca1a5e342abc604e5cca594b638fa73973e8c
Reviewed-by: hjk <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/nim')
3 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/nim/settings/nimcodestylepreferencesfactory.cpp b/src/plugins/nim/settings/nimcodestylepreferencesfactory.cpp index 039081466ee..fb48bb10a4f 100644 --- a/src/plugins/nim/settings/nimcodestylepreferencesfactory.cpp +++ b/src/plugins/nim/settings/nimcodestylepreferencesfactory.cpp @@ -26,7 +26,7 @@ class NimCodeStyleEditor final : public TextEditor::CodeStyleEditor public: static NimCodeStyleEditor *create( const TextEditor::ICodeStylePreferencesFactory *factory, - ProjectExplorer::Project *project, + const ProjectWrapper &project, TextEditor::ICodeStylePreferences *codeStyle, QWidget *parent = nullptr); @@ -34,7 +34,7 @@ private: NimCodeStyleEditor(QWidget *parent = nullptr); CodeStyleEditorWidget *createEditorWidget( - const ProjectExplorer::Project * /*project*/, + const void * /*project*/, TextEditor::ICodeStylePreferences *codeStyle, QWidget *parent = nullptr) const override; QString previewText() const override; @@ -43,7 +43,7 @@ private: NimCodeStyleEditor *NimCodeStyleEditor::create( const ICodeStylePreferencesFactory *factory, - ProjectExplorer::Project *project, + const ProjectWrapper &project, ICodeStylePreferences *codeStyle, QWidget *parent) { @@ -57,7 +57,7 @@ NimCodeStyleEditor::NimCodeStyleEditor(QWidget *parent) {} CodeStyleEditorWidget *NimCodeStyleEditor::createEditorWidget( - const ProjectExplorer::Project * /*project*/, + const void * /*project*/, ICodeStylePreferences *codeStyle, QWidget *parent) const { @@ -75,7 +75,7 @@ QString NimCodeStyleEditor::snippetProviderGroupId() const } TextEditor::CodeStyleEditorWidget *NimCodeStylePreferencesFactory::createCodeStyleEditor( - ProjectExplorer::Project *project, + const ProjectWrapper &project, TextEditor::ICodeStylePreferences *codeStyle, QWidget *parent) const { diff --git a/src/plugins/nim/settings/nimcodestylepreferencesfactory.h b/src/plugins/nim/settings/nimcodestylepreferencesfactory.h index 830ea5b8bf3..03ae7a506cf 100644 --- a/src/plugins/nim/settings/nimcodestylepreferencesfactory.h +++ b/src/plugins/nim/settings/nimcodestylepreferencesfactory.h @@ -23,7 +23,7 @@ class NimCodeStylePreferencesFactory final : public TextEditor::ICodeStylePrefer { public: TextEditor::CodeStyleEditorWidget *createCodeStyleEditor( - ProjectExplorer::Project *project, + const TextEditor::ProjectWrapper &project, TextEditor::ICodeStylePreferences *codeStyle, QWidget *parent = nullptr) const override; diff --git a/src/plugins/nim/settings/nimcodestylesettingspage.cpp b/src/plugins/nim/settings/nimcodestylesettingspage.cpp index 290dc36640a..059c99eedeb 100644 --- a/src/plugins/nim/settings/nimcodestylesettingspage.cpp +++ b/src/plugins/nim/settings/nimcodestylesettingspage.cpp @@ -102,7 +102,7 @@ public: auto factory = TextEditorSettings::codeStyleFactory(Nim::Constants::C_NIMLANGUAGE_ID); CodeStyleEditorWidget *editor - = factory->createCodeStyleEditor(nullptr, m_nimCodeStylePreferences); + = factory->createCodeStyleEditor({}, m_nimCodeStylePreferences); auto layout = new QVBoxLayout(this); layout->addWidget(editor); |