mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove unused and internal QNativeGestureEvent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
18628d5070
commit
b181deffd7
5 changed files with 5 additions and 59 deletions
|
@ -227,7 +227,6 @@ QT_BEGIN_NAMESPACE
|
|||
\omitvalue ThreadChange
|
||||
\omitvalue NetworkReplyUpdated
|
||||
\omitvalue FutureCallOut
|
||||
\omitvalue NativeGesture
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
|
|
@ -205,16 +205,13 @@ public:
|
|||
TouchUpdate = 124,
|
||||
TouchEnd = 125,
|
||||
|
||||
#ifndef QT_NO_GESTURES
|
||||
NativeGesture = 126, // Internal for platform gesture support
|
||||
#endif
|
||||
RequestSoftwareInputPanel = 127,
|
||||
CloseSoftwareInputPanel = 128,
|
||||
RequestSoftwareInputPanel = 126,
|
||||
CloseSoftwareInputPanel = 127,
|
||||
|
||||
WinIdChange = 129,
|
||||
WinIdChange = 128,
|
||||
#ifndef QT_NO_GESTURES
|
||||
Gesture = 130,
|
||||
GestureOverride = 131,
|
||||
Gesture = 129,
|
||||
GestureOverride = 130,
|
||||
#endif
|
||||
|
||||
User = 1000, // first user event id
|
||||
|
|
|
@ -3615,19 +3615,6 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
|
|||
}
|
||||
|
||||
#ifndef QT_NO_GESTURES
|
||||
case QEvent::NativeGesture:
|
||||
{
|
||||
// only propagate the first gesture event (after the GID_BEGIN)
|
||||
QWidget *w = static_cast<QWidget *>(receiver);
|
||||
while (w) {
|
||||
e->ignore();
|
||||
res = d->notify_helper(w, e);
|
||||
if ((res && e->isAccepted()) || w->isWindow())
|
||||
break;
|
||||
w = w->parentWidget();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case QEvent::Gesture:
|
||||
case QEvent::GestureOverride:
|
||||
{
|
||||
|
|
|
@ -2096,8 +2096,6 @@ static const char *eventClassName(QEvent::Type t)
|
|||
case QEvent::Close:
|
||||
return "QCloseEvent";
|
||||
#ifndef QT_NO_GESTURES
|
||||
case QEvent::NativeGesture:
|
||||
return "QNativeGestureEvent";
|
||||
case QEvent::Gesture:
|
||||
case QEvent::GestureOverride:
|
||||
return "QGestureEvent";
|
||||
|
@ -2311,14 +2309,6 @@ QDebug operator<<(QDebug dbg, const QEvent *e) {
|
|||
case QEvent::ChildRemoved:
|
||||
dbg << "QChildEvent(" << eventTypeName(type) << ", " << (static_cast<const QChildEvent*>(e))->child() << ')';
|
||||
break;
|
||||
# ifndef QT_NO_GESTURES
|
||||
case QEvent::NativeGesture: {
|
||||
const QNativeGestureEvent *ne = static_cast<const QNativeGestureEvent *>(e);
|
||||
dbg << "QNativeGestureEvent(type=" << ne->type() << ", percentage=" << ne->percentage
|
||||
<< "position=" << ne->position << ", angle=" << ne->angle << ')';
|
||||
}
|
||||
break;
|
||||
# endif // !QT_NO_GESTURES
|
||||
case QEvent::ContextMenu:
|
||||
dbg << "QContextMenuEvent(" << static_cast<const QContextMenuEvent *>(e)->pos() << ')';
|
||||
break;
|
||||
|
|
|
@ -80,33 +80,6 @@ public:
|
|||
qreal pressure;
|
||||
};
|
||||
|
||||
#ifndef QT_NO_GESTURES
|
||||
class QNativeGestureEvent : public QEvent
|
||||
{
|
||||
public:
|
||||
enum Type {
|
||||
None,
|
||||
GestureBegin,
|
||||
GestureEnd,
|
||||
Pan,
|
||||
Zoom,
|
||||
Rotate,
|
||||
Swipe
|
||||
};
|
||||
|
||||
QNativeGestureEvent()
|
||||
: QEvent(QEvent::NativeGesture), gestureType(None), percentage(0)
|
||||
{
|
||||
}
|
||||
|
||||
Type gestureType;
|
||||
float percentage;
|
||||
QPoint position;
|
||||
float angle;
|
||||
};
|
||||
#endif // QT_NO_GESTURES
|
||||
|
||||
|
||||
#ifndef QT_NO_CLIPBOARD
|
||||
class Q_GUI_EXPORT QClipboardEvent : public QEvent
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue