use KGlobalSettings::dndEventDelay()

svn path=/trunk/KDE/kdelibs/; revision=1128948
This commit is contained in:
Marco Martin 2010-05-20 18:47:07 +00:00
parent e0b211b52e
commit fef01419ba

View File

@ -25,6 +25,7 @@
#include <QPinchGesture>
#include <QtWebKit/QWebFrame>
#include <kglobalsettings.h>
#include <kwebpage.h>
using namespace Plasma;
@ -142,7 +143,7 @@ void AnimableGraphicsWebView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
QMouseEvent me(QEvent::MouseButtonRelease, event->pos().toPoint(),
event->button(),event->buttons(), event->modifiers());
if (!m_dragToScroll || (scrollPosition() - m_lastScrollPosition).manhattanLength() < QApplication::startDragDistance()) {
if (!m_dragToScroll || (scrollPosition() - m_lastScrollPosition).manhattanLength() < KGlobalSettings::dndEventDelay()) {
page()->event(&me);
}