diff options
author | Christian Kandeler <[email protected]> | 2024-06-18 17:47:31 +0200 |
---|---|---|
committer | Christian Kandeler <[email protected]> | 2024-07-01 11:45:58 +0000 |
commit | f09a694cfcfac9a52deb57c2a95778f491c7897d (patch) | |
tree | 68f3868b0e5f1be20da6134d7e5052872b5b4f32 /src/plugins/clangcodemodel/test | |
parent | 0283b813921cdd0111db604ee5fc23887f28681d (diff) |
TextEditor: Move TextDocument::setIfdefedOutBlocks() to CppEditor
... where it belongs.
Change-Id: I4e7f344ed2d4af626965cf1f8a318de56a03a8bc
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/test')
-rw-r--r-- | src/plugins/clangcodemodel/test/clangdtests.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/test/clangdtests.cpp b/src/plugins/clangcodemodel/test/clangdtests.cpp index e20b4fb717c..fb0975f2fa4 100644 --- a/src/plugins/clangcodemodel/test/clangdtests.cpp +++ b/src/plugins/clangcodemodel/test/clangdtests.cpp @@ -835,7 +835,9 @@ void ClangdTestHighlighting::initTestCase() { ClangdTest::initTestCase(); - connect(document("highlighting.cpp"), &TextDocument::ifdefedOutBlocksChanged, this, + using CppEditor::CppEditorWidget; + connect(CppEditorWidget::fromTextDocument(document("highlighting.cpp")), + &CppEditorWidget::ifdefedOutBlocksChanged, this, [this](const QList<BlockRange> &ranges) { m_ifdefedOutBlocks = ranges; }); QTimer timer; timer.setSingleShot(true); |