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

void QPlainTextEdit::mouseMoveEvent ( QMouseEvent e  )  [protected, virtual]

Reimplemented from QAbstractScrollArea.

Definition at line 1927 of file qplaintextedit.cpp.

References QMouseEvent::buttons(), QRect::contains(), and QMouseEvent::pos().

Referenced by timerEvent().

{
    Q_D(QPlainTextEdit);
    d->inDrag = false; // paranoia
    const QPoint pos = e->pos();
    d->sendControlEvent(e);
    if (!(e->buttons() & Qt::LeftButton))
        return;
    QRect visible = d->viewport->rect();
    if (visible.contains(pos))
        d->autoScrollTimer.stop();
    else if (!d->autoScrollTimer.isActive())
        d->autoScrollTimer.start(100, this);
}


Generated by  Doxygen 1.6.0   Back to index