Refactor painting of editor gutter
This commit is contained in:
parent
e082a5731d
commit
a5563949e5
7 changed files with 188 additions and 85 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "EditorGutter.h"
|
||||
#include "CodeEditor.h"
|
||||
#include "GutterPainter.h"
|
||||
|
||||
EditorGutter::EditorGutter(CodeEditor *editor)
|
||||
: QWidget(editor)
|
||||
|
|
@ -13,5 +14,6 @@ QSize EditorGutter::sizeHint() const
|
|||
|
||||
void EditorGutter::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
codeEditor->gutterAreaPaintEvent(event);
|
||||
GutterPainter gutterpainter(codeEditor, event);
|
||||
gutterpainter.Paint();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue