mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[AutoScroll] Force ArrowCursor when scrolling
This commit is contained in:
parent
f9f74f3642
commit
b9c58b14b3
|
@ -20,6 +20,7 @@
|
|||
#include "webview.h"
|
||||
#include "webpage.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMouseEvent>
|
||||
#include <QWebFrame>
|
||||
#include <QSettings>
|
||||
|
@ -190,12 +191,15 @@ bool AutoScroller::showIndicator(WebView* view, const QPoint &pos)
|
|||
m_frameScroller->setFrame(frame);
|
||||
|
||||
m_view->grabMouse();
|
||||
QApplication::setOverrideCursor(Qt::ArrowCursor);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void AutoScroller::stopScrolling()
|
||||
{
|
||||
m_view->releaseMouse();
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
m_indicator->hide();
|
||||
m_indicator->setParent(0);
|
||||
|
|
|
@ -36,7 +36,7 @@ PluginSpec AutoScrollPlugin::pluginSpec()
|
|||
spec.name = "AutoScroll";
|
||||
spec.info = "AutoScroll plugin";
|
||||
spec.description = "Provides support for autoscroll with middle mouse button";
|
||||
spec.version = "0.1.3";
|
||||
spec.version = "0.1.4";
|
||||
spec.author = "David Rosca <nowrep@gmail.com>";
|
||||
spec.icon = QPixmap(":/autoscroll/data/scroll_all.png");
|
||||
spec.hasSettings = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user