Commit bdbd20cf authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

try to fix compile with older version of frameworks

parent 98faf01f
......@@ -18,7 +18,6 @@
#include "lspsemantichighlighting.h"
#include <ktexteditor_version.h>
#include <KTextEditor/Cursor>
#include <KTextEditor/Range>
......
......@@ -14,6 +14,8 @@
#include <KSyntaxHighlighting/Theme>
#if KTEXTEDITOR_VERSION >= QT_VERSION_CHECK(5, 79, 0)
SemanticHighlighting::SemanticHighlighting(QObject *parent) :
QObject(parent)
{
......@@ -219,3 +221,5 @@ void SemanticHighlighting::refresh()
}
}
}
#endif
......@@ -7,6 +7,10 @@
#ifndef SEMANTICTOKENMAP_H
#define SEMANTICTOKENMAP_H
#include <ktexteditor_version.h>
#if KTEXTEDITOR_VERSION >= QT_VERSION_CHECK(5, 79, 0)
#include <QObject>
#include <vector>
......@@ -73,4 +77,6 @@ private:
KTextEditor::Attribute::Ptr fixedAttrs[6];
};
#endif
#endif // SEMANTICTOKENMAP_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment