示例#1
0
void DOHexEditor::selectAll()
{
	if(!canSelectAll()) return;

	mSelectionStart = 0;
	mSelectionEnd = mValue.size();
	mHasSelection = mSelectionStart != mSelectionEnd;
}
示例#2
0
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);
    }
}