[apps/code] Handle autocomplete coloring

This commit is contained in:
Léa Saviot
2020-03-11 18:58:39 +01:00
committed by Émilie Feral
parent 9b8b0bc98f
commit 32fbea9d06
2 changed files with 25 additions and 1 deletions

View File

@@ -21,7 +21,8 @@ protected:
public:
ContentView(App * pythonDelegate, const KDFont * font) :
TextArea::ContentView(font),
m_pythonDelegate(pythonDelegate)
m_pythonDelegate(pythonDelegate),
m_autocomplete(false)
{
}
void loadSyntaxHighlighter();
@@ -31,6 +32,7 @@ protected:
KDRect dirtyRectFromPosition(const char * position, bool includeFollowingLines) const override;
private:
App * m_pythonDelegate;
bool m_autocomplete;
};
private:
const ContentView * nonEditableContentView() const override { return &m_contentView; }