Commit c7bbf6f7 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Rename method slotAutoScoll to slotAutoScroll

The old method name contained a typo.

Patch by Oliver Sander <oliver.sander@tu-dresden.de>.

REVIEW: 128938
parent bfa28f1f
......@@ -1813,7 +1813,7 @@ void PageView::keyPressEvent( QKeyEvent * e )
if ( d->autoScrollTimer->isActive() )
d->autoScrollTimer->stop();
else
slotAutoScoll();
slotAutoScroll();
return;
}
// else fall trhough
......@@ -4702,14 +4702,14 @@ void PageView::slotMoveViewport()
(int)(y + diffY * convergeSpeed ) );
}
void PageView::slotAutoScoll()
void PageView::slotAutoScroll()
{
// the first time create the timer
if ( !d->autoScrollTimer )
{
d->autoScrollTimer = new QTimer( this );
d->autoScrollTimer->setSingleShot( true );
connect( d->autoScrollTimer, &QTimer::timeout, this, &PageView::slotAutoScoll );
connect( d->autoScrollTimer, &QTimer::timeout, this, &PageView::slotAutoScroll );
}
// if scrollIncrement is zero, stop the timer
......@@ -4979,7 +4979,7 @@ void PageView::slotAutoScrollUp()
if ( d->scrollIncrement < -9 )
return;
d->scrollIncrement--;
slotAutoScoll();
slotAutoScroll();
setFocus();
}
......@@ -4988,7 +4988,7 @@ void PageView::slotAutoScrollDown()
if ( d->scrollIncrement > 9 )
return;
d->scrollIncrement++;
slotAutoScoll();
slotAutoScroll();
setFocus();
}
......
......@@ -204,7 +204,7 @@ Q_OBJECT
// activated by the viewport move timer
void slotMoveViewport();
// activated by the autoscroll timer (Shift+Up/Down keys)
void slotAutoScoll();
void slotAutoScroll();
// activated by the dragScroll timer
void slotDragScroll();
// show the welcome message
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment