| 1730 | } |
| 1731 | |
| 1732 | void MainWindow::updateDocumentBasedUi(Scintilla::Update updated) |
| 1733 | { |
| 1734 | ScintillaNext *editor = qobject_cast<ScintillaNext *>(sender()); |
| 1735 | |
| 1736 | // TODO: what if this is triggered by an editor that is not the active editor? |
| 1737 | |
| 1738 | if (Scintilla::FlagSet(updated, Scintilla::Update::Content)) { |
| 1739 | updateSelectionBasedUi(editor); |
| 1740 | } |
| 1741 | |
| 1742 | if (Scintilla::FlagSet(updated, Scintilla::Update::Content) || Scintilla::FlagSet(updated, Scintilla::Update::Selection)) { |
| 1743 | updateContentBasedUi(editor); |
| 1744 | } |
| 1745 | } |
| 1746 | |
| 1747 | void MainWindow::updateSelectionBasedUi(ScintillaNext *editor) |
| 1748 | { |
nothing calls this directly
no outgoing calls
no test coverage detected