Commit 33443fe7 authored by Егор Галкин's avatar Егор Галкин
Browse files

Add new file

parent 41b6fd90
No related merge requests found
Pipeline #1179 canceled with stages
Showing with 28 additions and 0 deletions
+28 -0
codeeditor.h 0 → 100644
#ifndef CODEEDITOR_H
#define CODEEDITOR_H
#include <QWidget>
#include <QPlainTextEdit>
class CodeEditor : public QPlainTextEdit
{
Q_OBJECT
public:
CodeEditor(QWidget *parent = 0);
void lineNumberAreaPaintEvent(QPaintEvent* event);
int lineNumberAreaWidth();
protected:
void resizeEvent(QResizeEvent* event) override;
private slots:
void updateLineNumberAreaWidth(int newBlockCount);
void highlightCurrentLine();
void updateLineNumberArea(const QRect& rect, int dy);
private:
QWidget *lineNumberArea;
};
#endif // CODEEDITOR_H
\ No newline at end of file
Supports Markdown
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