| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickdroparea_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class QQuickDropAreaPrivate; | - |
| 7 | class QQuickDropEvent : public QObject | - |
| 8 | { | - |
| 9 | public: | - |
| 10 | #pragma GCC diagnostic push | - |
| 11 | - | |
| 12 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 13 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 14 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 15 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 16 | #pragma GCC diagnostic pop | - |
| 17 | struct QPrivateSignal {}; | - |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | - | |
| 25 | - | |
| 26 | - | |
| 27 | - | |
| 28 | - | |
| 29 | - | |
| 30 | - | |
| 31 | - | |
| 32 | - | |
| 33 | - | |
| 34 | - | |
| 35 | public: | - |
| 36 | QQuickDropEvent(QQuickDropAreaPrivate *d, QDropEvent *event) : d(d), event(event) {} executed 274 times by 2 tests: end of blockExecuted by:
| 274 |
| 37 | - | |
| 38 | qreal x() const { return executed 118 times by 2 tests: event->pos().x();return event->pos().x();Executed by:
executed 118 times by 2 tests: }return event->pos().x();Executed by:
| 118 |
| 39 | qreal y() const { return executed 14 times by 1 test: event->pos().y();return event->pos().y();Executed by:
executed 14 times by 1 test: }return event->pos().y();Executed by:
| 14 |
| 40 | - | |
| 41 | QObject *source() const; | - |
| 42 | - | |
| 43 | Qt::DropActions supportedActions() const { return executed 22 times by 1 test: event->possibleActions();return event->possibleActions();Executed by:
executed 22 times by 1 test: }return event->possibleActions();Executed by:
| 22 |
| 44 | Qt::DropActions proposedAction() const { return never executed: event->proposedAction();return event->proposedAction();never executed: }return event->proposedAction(); | 0 |
| 45 | Qt::DropAction action() const { return executed 22 times by 1 test: event->dropAction();return event->dropAction();Executed by:
executed 22 times by 1 test: }return event->dropAction();Executed by:
| 22 |
| 46 | void setAction(Qt::DropAction action) { event->setDropAction(action); } executed 6 times by 1 test: end of blockExecuted by:
| 6 |
| 47 | void resetAction() { event->setDropAction(event->proposedAction()); } never executed: end of block | 0 |
| 48 | - | |
| 49 | QStringList keys() const; | - |
| 50 | - | |
| 51 | bool accepted() const { return never executed: event->isAccepted();return event->isAccepted();never executed: }return event->isAccepted(); | 0 |
| 52 | void setAccepted(bool accepted) { event->setAccepted(accepted); } executed 14 times by 1 test: end of blockExecuted by:
| 14 |
| 53 | - | |
| 54 | bool hasColor() const; | - |
| 55 | bool hasHtml() const; | - |
| 56 | bool hasText() const; | - |
| 57 | bool hasUrls() const; | - |
| 58 | QVariant colorData() const; | - |
| 59 | QString html() const; | - |
| 60 | QString text() const; | - |
| 61 | QList<QUrl> urls() const; | - |
| 62 | QStringList formats() const; | - |
| 63 | - | |
| 64 | void getDataAsString(QQmlV4Function *); | - |
| 65 | void getDataAsArrayBuffer(QQmlV4Function *); | - |
| 66 | void acceptProposedAction(QQmlV4Function *); | - |
| 67 | void accept(QQmlV4Function *); | - |
| 68 | - | |
| 69 | private: | - |
| 70 | QQuickDropAreaPrivate *d; | - |
| 71 | QDropEvent *event; | - |
| 72 | }; | - |
| 73 | - | |
| 74 | class QQuickDropAreaDrag : public QObject | - |
| 75 | { | - |
| 76 | public: | - |
| 77 | #pragma GCC diagnostic push | - |
| 78 | - | |
| 79 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 80 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 81 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 82 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 83 | #pragma GCC diagnostic pop | - |
| 84 | struct QPrivateSignal {}; | - |
| 85 | - | |
| 86 | - | |
| 87 | - | |
| 88 | public: | - |
| 89 | QQuickDropAreaDrag(QQuickDropAreaPrivate *d, QObject *parent = 0); | - |
| 90 | ~QQuickDropAreaDrag(); | - |
| 91 | - | |
| 92 | qreal x() const; | - |
| 93 | qreal y() const; | - |
| 94 | QObject *source() const; | - |
| 95 | - | |
| 96 | public : | - |
| 97 | void positionChanged(); | - |
| 98 | void sourceChanged(); | - |
| 99 | - | |
| 100 | private: | - |
| 101 | QQuickDropAreaPrivate *d; | - |
| 102 | - | |
| 103 | friend class QQuickDropArea; | - |
| 104 | friend class QQuickDropAreaPrivate; | - |
| 105 | }; | - |
| 106 | - | |
| 107 | class QQuickDropAreaPrivate; | - |
| 108 | class __attribute__((visibility("default"))) QQuickDropArea : public QQuickItem | - |
| 109 | { | - |
| 110 | public: | - |
| 111 | #pragma GCC diagnostic push | - |
| 112 | - | |
| 113 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 114 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 115 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 116 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 117 | #pragma GCC diagnostic pop | - |
| 118 | struct QPrivateSignal {}; | - |
| 119 | - | |
| 120 | - | |
| 121 | - | |
| 122 | - | |
| 123 | public: | - |
| 124 | QQuickDropArea(QQuickItem *parent=0); | - |
| 125 | ~QQuickDropArea(); | - |
| 126 | - | |
| 127 | bool containsDrag() const; | - |
| 128 | void setContainsDrag(bool drag); | - |
| 129 | - | |
| 130 | QStringList keys() const; | - |
| 131 | void setKeys(const QStringList &keys); | - |
| 132 | - | |
| 133 | QQuickDropAreaDrag *drag(); | - |
| 134 | - | |
| 135 | public : | - |
| 136 | void containsDragChanged(); | - |
| 137 | void keysChanged(); | - |
| 138 | void sourceChanged(); | - |
| 139 | - | |
| 140 | void entered(QQuickDropEvent *drag); | - |
| 141 | void exited(); | - |
| 142 | void positionChanged(QQuickDropEvent *drag); | - |
| 143 | void dropped(QQuickDropEvent *drop); | - |
| 144 | - | |
| 145 | protected: | - |
| 146 | void dragMoveEvent(QDragMoveEvent *event) override; | - |
| 147 | void dragEnterEvent(QDragEnterEvent *event) override; | - |
| 148 | void dragLeaveEvent(QDragLeaveEvent *event) override; | - |
| 149 | void dropEvent(QDropEvent *event) override; | - |
| 150 | - | |
| 151 | private: | - |
| 152 | QQuickDropArea(const QQuickDropArea &) = delete; QQuickDropArea &operator=(const QQuickDropArea &) = delete; | - |
| 153 | inline QQuickDropAreaPrivate* d_func() { return executed 520 times by 3 tests: reinterpret_cast<QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 520 times by 3 tests: } inline const QQuickDropAreaPrivate* d_func() const { returnreturn reinterpret_cast<QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 286 times by 2 tests: reinterpret_cast<const QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 286 times by 2 tests: } friend class QQuickDropAreaPrivate;return reinterpret_cast<const QQuickDropAreaPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 286-520 |
| 154 | }; | - |
| 155 | - | |
| 156 | - | |
| 157 | - | |
| 158 | template <> struct QMetaTypeId< QQuickDropEvent * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickDropEvent * >("QQuickDropEvent *", reinterpret_cast< QQuickDropEvent * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickDropEvent> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickDropEvent> >("QQmlListProperty<QQuickDropEvent>", reinterpret_cast< QQmlListProperty<QQuickDropEvent> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| 159 | template <> struct QMetaTypeId< QQuickDropArea * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickDropArea * >("QQuickDropArea *", reinterpret_cast< QQuickDropArea * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickDropArea> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickDropArea> >("QQmlListProperty<QQuickDropArea>", reinterpret_cast< QQmlListProperty<QQuickDropArea> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |