aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/test
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2024-06-18 17:47:31 +0200
committerChristian Kandeler <[email protected]>2024-07-01 11:45:58 +0000
commitf09a694cfcfac9a52deb57c2a95778f491c7897d (patch)
tree68f3868b0e5f1be20da6134d7e5052872b5b4f32 /src/plugins/clangcodemodel/test
parent0283b813921cdd0111db604ee5fc23887f28681d (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.cpp4
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);