| 299 | } |
| 300 | |
| 301 | void ScintillaEditView::setNoteWidget(QWidget * win) |
| 302 | { |
| 303 | CCNotePad* pv = dynamic_cast<CCNotePad*>(win); |
| 304 | if (pv != nullptr) |
| 305 | { |
| 306 | m_NoteWin = pv; |
| 307 | |
| 308 | if (m_styleColorMenu != nullptr) |
| 309 | { |
| 310 | m_styleColorMenu->addAction(tr("Clear Select"), m_NoteWin, &CCNotePad::slot_clearWordHighlight); |
| 311 | m_styleColorMenu->addAction(tr("Clear All"), m_NoteWin, &CCNotePad::slot_clearMark); |
| 312 | } |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | |
| 317 | void ScintillaEditView::updateLineNumbersMargin(bool forcedToHide) { |
no outgoing calls
no test coverage detected