diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-13 09:51:00 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-13 10:15:08 +0200 |
commit | 3dff5e6316c1a4badb8fd3556f79f571f5cb1e5d (patch) | |
tree | c8e981a67a647c9c2230ba11de0504b69aa49fcd /src/gui/kernel | |
parent | 43fa292ff621550d0977908b499fb54096251825 (diff) |
QtGui: Clean up event headers
- Remove unimplemented QSinglePointEvent()
- Remove forward declaration of QTouchEventTouchPointPrivate
- Update copyright and add comment to qevent_ph.h
Task-number: QTBUG-72173
Change-Id: Ie64b6071f2611001dcd8e3deec2f5ed382bb2312
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qevent.h | 2 | ||||
-rw-r--r-- | src/gui/kernel/qevent_p.h | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 8cd8659bce..a3eb34ab32 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -216,7 +216,6 @@ public: class Q_GUI_EXPORT QSinglePointEvent : public QPointerEvent { public: - QSinglePointEvent(); QSinglePointEvent(Type type, const QPointingDevice *dev, const QPointF &localPos, const QPointF &scenePos, const QPointF &globalPos, Qt::MouseButton button = Qt::NoButton, Qt::MouseButtons buttons = Qt::NoButton, @@ -928,7 +927,6 @@ inline bool operator==(QKeyEvent *e, QKeySequence::StandardKey key){return (e ? inline bool operator==(QKeySequence::StandardKey key, QKeyEvent *e){return (e ? e->matches(key) : false);} #endif // QT_CONFIG(shortcut) -class QTouchEventTouchPointPrivate; class Q_GUI_EXPORT QTouchEvent : public QPointerEvent { public: diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h index 8f0948a7fe..bf5d934143 100644 --- a/src/gui/kernel/qevent_p.h +++ b/src/gui/kernel/qevent_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtGui module of the Qt Toolkit. @@ -40,6 +40,17 @@ #ifndef QEVENT_P_H #define QEVENT_P_H +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + #include <QtGui/private/qtguiglobal_p.h> #include <QtCore/qurl.h> #include <QtGui/qevent.h> |