void DOHexEditor::selectAll() { if(!canSelectAll()) return; mSelectionStart = 0; mSelectionEnd = mValue.size(); mHasSelection = mSelectionStart != mSelectionEnd; }
void QScintillaWidget::checkCanSelectAll() { // Check whether we can select all the text bool newCanSelectAll = text().size() && selectedText().compare(text()); if (newCanSelectAll != mCanSelectAll) { mCanSelectAll = newCanSelectAll; emit canSelectAll(mCanSelectAll); } }