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

void QAbstractSlider::setRepeatAction ( SliderAction  action,
int  thresholdTime = 500,
int  repeatTime = 50 
) [protected, inherited]

Sets action action to be triggered repetitively in intervals of repeatTime, after an initial delay of thresholdTime.

See also:
triggerAction() repeatAction()

Definition at line 601 of file qabstractslider.cpp.

Referenced by QScrollBar::hideEvent(), QScrollBar::mouseMoveEvent(), mousePressEvent(), QScrollBar::mouseReleaseEvent(), and mouseReleaseEvent().

    if ((d->repeatAction = action) == SliderNoAction) {
    } else {
        d->repeatActionTime = repeatTime;
        d->repeatActionTimer.start(thresholdTime, this);

Generated by  Doxygen 1.6.0   Back to index