1
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:
nowrep 2014-03-16 14:56:09 +01:00
parent f9f74f3642
commit b9c58b14b3
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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;