| 40 | } |
| 41 | |
| 42 | void TextEditor::init() |
| 43 | { |
| 44 | connect(this, &TextEditor::marginClicked, this, &TextEditor::onMarginClicked); |
| 45 | connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &TextEditor::onScrollValueChanged); |
| 46 | connect(this, &TextEditor::cursorPositionChanged, this, &TextEditor::onCursorPositionChanged); |
| 47 | } |
| 48 | |
| 49 | void TextEditor::openFile(const QString &fileName) |
| 50 | { |
no test coverage detected