From d8d6bfb81e0c52d9b39c7b9f4c18f17ba95593f6 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 18 May 2011 23:07:31 +0200 Subject: remove an unused class QDrgResponseEvent wasn't used anywhere in Qt anymore. Get rid of it. --- src/gui/kernel/qevent.cpp | 15 --------------- src/gui/kernel/qevent.h | 13 ------------- src/tools/uic/qclass_lib_map.h | 1 - src/widgets/statemachine/qguistatemachine.cpp | 2 -- 4 files changed, 31 deletions(-) (limited to 'src') diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 2b2277dfd4..f526a1ee83 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -2447,21 +2447,6 @@ QDragEnterEvent::~QDragEnterEvent() { } -/*! - Constructs a drag response event containing the \a accepted value, - indicating whether the drag and drop operation was accepted by the - recipient. -*/ -QDragResponseEvent::QDragResponseEvent(bool accepted) - : QEvent(DragResponse), a(accepted) -{} - -/*! \internal -*/ -QDragResponseEvent::~QDragResponseEvent() -{ -} - /*! \class QDragMoveEvent \brief The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress. diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 45b11d4795..908dfced07 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -496,19 +496,6 @@ public: }; -/* An internal class */ -class Q_GUI_EXPORT QDragResponseEvent : public QEvent -{ -public: - QDragResponseEvent(bool accepted); - ~QDragResponseEvent(); - - inline bool dragAccepted() const { return a; } -protected: - bool a; -}; - - class Q_GUI_EXPORT QDragLeaveEvent : public QEvent { public: diff --git a/src/tools/uic/qclass_lib_map.h b/src/tools/uic/qclass_lib_map.h index d2efcd400f..216ab7e359 100644 --- a/src/tools/uic/qclass_lib_map.h +++ b/src/tools/uic/qclass_lib_map.h @@ -779,7 +779,6 @@ QT_CLASS_LIB(QInputMethodEvent, QtGui, qevent.h) QT_CLASS_LIB(QDropEvent, QtGui, qevent.h) QT_CLASS_LIB(QDragMoveEvent, QtGui, qevent.h) QT_CLASS_LIB(QDragEnterEvent, QtGui, qevent.h) -QT_CLASS_LIB(QDragResponseEvent, QtGui, qevent.h) QT_CLASS_LIB(QDragLeaveEvent, QtGui, qevent.h) QT_CLASS_LIB(QHelpEvent, QtGui, qevent.h) QT_CLASS_LIB(QStatusTipEvent, QtGui, qevent.h) diff --git a/src/widgets/statemachine/qguistatemachine.cpp b/src/widgets/statemachine/qguistatemachine.cpp index b22bd4a64d..9b25bcdfc8 100644 --- a/src/widgets/statemachine/qguistatemachine.cpp +++ b/src/widgets/statemachine/qguistatemachine.cpp @@ -148,8 +148,6 @@ static QEvent *cloneEvent(QEvent *e) return new QDragLeaveEvent(*static_cast(e)); case QEvent::Drop: return new QDropEvent(*static_cast(e)); - case QEvent::DragResponse: - return new QDragResponseEvent(*static_cast(e)); #endif case QEvent::ChildAdded: return new QChildEvent(*static_cast(e)); -- cgit v1.2.3