Commit ae614c1d authored by Christoph Feck's avatar Christoph Feck

KGlobalSettings::dndEventDelay -> QApplication::startDragDistance

parent 6e67019b
......@@ -25,6 +25,7 @@
#include <kpColorCellsBase.h>
#include <QApplication>
#include <QDrag>
#include <QDragEnterEvent>
#include <QDragMoveEvent>
......@@ -37,7 +38,6 @@
#include <KColorMimeData>
#include <KDebug>
#include <KGlobalSettings>
class kpColorCellsBase::kpColorCellsBasePrivate
......@@ -411,7 +411,7 @@ void kpColorCellsBase::mouseMoveEvent( QMouseEvent *e )
if( !(e->buttons() & Qt::LeftButton)) return;
if(d->inMouse) {
int delay = KGlobalSettings::dndEventDelay();
int delay = QApplication::startDragDistance();
if(e->x() > d->mousePos.x()+delay || e->x() < d->mousePos.x()-delay ||
e->y() > d->mousePos.y()+delay || e->y() < d->mousePos.y()-delay){
// Drag color object
......
......@@ -31,6 +31,7 @@
#include <kpDualColorButton.h>
#include <QApplication>
#include <QBitmap>
#include <QDrag>
#include <QMouseEvent>
......@@ -40,7 +41,6 @@
#include <KColorDialog>
#include <KColorMimeData>
#include <KDebug>
#include <KGlobalSettings>
#include <KIconLoader>
#include <kpView.h>
......@@ -279,7 +279,7 @@ void kpDualColorButton::mouseMoveEvent (QMouseEvent *e)
return;
}
const int delay = KGlobalSettings::dndEventDelay ();
const int delay = QApplication::startDragDistance ();
if (e->x () < m_dragStartPoint.x () - delay ||
e->x () > m_dragStartPoint.x () + delay ||
e->y () < m_dragStartPoint.y () - delay ||
......
Markdown is supported
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