MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / BasicEditor

Class BasicEditor

gui/qt/basiccodeviewerwindow.h:58–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58class BasicEditor : public QPlainTextEdit
59{
60 Q_OBJECT
61
62public:
63 BasicEditor(QWidget *parent = nullptr);
64
65 void updateDarkMode();
66 void lineNumberAreaPaintEvent(QPaintEvent *event);
67 int lineNumberAreaWidth();
68 void toggleHighlight();
69
70protected:
71 void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
72
73private slots:
74 void updateLineNumberAreaWidth(int newBlockCount);
75 void updateLineNumberArea(const QRect &, int);
76
77private:
78 QWidget *lineNumberArea;
79 BasicHighlighter *highlighter;
80};
81
82class LineNumberArea : public QWidget
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected