| 9034 | } |
| 9035 | |
| 9036 | ScintillaEditView* CCNotePad::getCurEditView() |
| 9037 | { |
| 9038 | QWidget* pw = ui.editTabWidget->currentWidget(); |
| 9039 | ScintillaEditView* _pEditView = dynamic_cast<ScintillaEditView*>(pw); |
| 9040 | if (_pEditView != nullptr) |
| 9041 | { |
| 9042 | if (_pEditView->isReadOnly()) |
| 9043 | { |
| 9044 | ui.statusBar->showMessage(tr("The ReadOnly document does not allow this operation."), MSG_EXIST_TIME); |
| 9045 | QApplication::beep(); |
| 9046 | return nullptr; |
| 9047 | } |
| 9048 | return _pEditView; |
| 9049 | } |
| 9050 | return nullptr; |
| 9051 | } |
| 9052 | |
| 9053 | //tab space 互转 |
| 9054 | void CCNotePad::spaceTabConvert(SpaceTab type) |
no test coverage detected