summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-10-01 10:52:30 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-10-01 10:52:30 (GMT)
commitc7bbf6f77c0128800e841b2e661d5c72e73b73b4 (patch)
tree9ed81574ec903de090a6d440f724d5b6c3764647
parentbfa28f1f64bfb8225db29d3f90c561b6e0603842 (diff)
Rename method slotAutoScoll to slotAutoScroll
The old method name contained a typo. Patch by Oliver Sander <oliver.sander@tu-dresden.de>. REVIEW: 128938
-rw-r--r--ui/pageview.cpp10
-rw-r--r--ui/pageview.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index cd53407..5fbabb2 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -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();
}
diff --git a/ui/pageview.h b/ui/pageview.h
index 01c39bf..7c43f51 100644
--- a/ui/pageview.h
+++ b/ui/pageview.h
@@ -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