| 80 | }; |
| 81 | |
| 82 | class LineNumberArea : public QWidget |
| 83 | { |
| 84 | public: |
| 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 | |
| 93 | protected: |
| 94 | void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE { |
| 95 | basicEditor->lineNumberAreaPaintEvent(event); |
| 96 | } |
| 97 | |
| 98 | private: |
| 99 | virtual void anchor(); |
| 100 | BasicEditor *basicEditor; |
| 101 | }; |
| 102 | |
| 103 | |
| 104 | class BasicCodeViewerWindow : public QDialog { |
nothing calls this directly
no outgoing calls
no test coverage detected