remove an unused class

QDrgResponseEvent wasn't used anywhere in Qt anymore.
Get rid of it.
This commit is contained in:
Lars Knoll 2011-05-18 23:07:31 +02:00
parent 82bba7e4ef
commit d8d6bfb81e
4 changed files with 0 additions and 31 deletions

View File

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

View File

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

View File

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

View File

@ -148,8 +148,6 @@ static QEvent *cloneEvent(QEvent *e)
return new QDragLeaveEvent(*static_cast<QDragLeaveEvent*>(e));
case QEvent::Drop:
return new QDropEvent(*static_cast<QDragMoveEvent*>(e));
case QEvent::DragResponse:
return new QDragResponseEvent(*static_cast<QDragResponseEvent*>(e));
#endif
case QEvent::ChildAdded:
return new QChildEvent(*static_cast<QChildEvent*>(e));