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

Class LineNumberArea

gui/qt/basiccodeviewerwindow.h:82–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80};
81
82class LineNumberArea : public QWidget
83{
84public:
85 LineNumberArea(BasicEditor *editor) : QWidget(editor) {
86 basicEditor = editor;
87 }
88
89 QSize sizeHint() const Q_DECL_OVERRIDE {
90 return QSize(basicEditor->lineNumberAreaWidth(), 0);
91 }
92
93protected:
94 void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE {
95 basicEditor->lineNumberAreaPaintEvent(event);
96 }
97
98private:
99 virtual void anchor();
100 BasicEditor *basicEditor;
101};
102
103
104class BasicCodeViewerWindow : public QDialog {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected