Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

bool QTextCursor::hasSelection (  )  const

Returns true if the cursor contains a selection; otherwise returns false.

Definition at line 1368 of file qtextcursor.cpp.

Referenced by QTextEdit::keyPressEvent(), QTextBrowser::keyPressEvent(), QPlainTextEdit::keyPressEvent(), QPlainTextEdit::paintEvent(), and QTextDocumentFragment::QTextDocumentFragment().

{
    return !!d && d->position != d->anchor;
}


Generated by  Doxygen 1.6.0   Back to index