Python Scripting - Line Number Area and Highlighter to current line
ClosedPublic

Authored by eliakinalmeida on Nov 16 2016, 4:58 PM.

Details

Summary

This implementations provides a Line Number Area for the code editor
in the GUI and Highlight to current line.

It was created a custom widget that inherits from QPlainTextEdit. It works
like a code editor with syntax highlighter.

In the LineNumberArea class that inherits from QWidget the paintEvent
invokes
the draw event in CodeEditor class.

The CodeEditor class knows the LineNumberArea by composition for while.

Fixes T4551

Ref T1625

Diff Detail

Repository
R37 Krita
Branch
eliakinalmeida/T4551-interactive-python-scripting
Lint
No Linters Available
Unit
No Unit Test Coverage
eliakinalmeida retitled this revision from to Python Scripting - Line Number Area and Highlighter to current line.
eliakinalmeida updated this object.
woltherav accepted this revision.Dec 7 2017, 3:04 PM
This revision is now accepted and ready to land.Dec 7 2017, 3:04 PM
woltherav closed this revision.Dec 7 2017, 3:04 PM

This was pushed :)