| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | class QShortcutEvent; | - |
| 5 | | - |
| 6 | class QQuickShortcut : public QObject, public QQmlParserStatus | - |
| 7 | { | - |
| 8 | public: | - |
| 9 | #pragma GCC diagnostic push | - |
| 10 | | - |
| 11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 12 | 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: | - |
| 13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 15 | #pragma GCC diagnostic pop | - |
| 16 | struct QPrivateSignal {}; | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | public: | - |
| 27 | explicit QQuickShortcut(QObject *parent = nullptr); | - |
| 28 | ~QQuickShortcut(); | - |
| 29 | | - |
| 30 | QVariant sequence() const; | - |
| 31 | void setSequence(const QVariant &sequence); | - |
| 32 | | - |
| 33 | QVariantList sequences() const; | - |
| 34 | void setSequences(const QVariantList &sequences); | - |
| 35 | | - |
| 36 | QString nativeText() const; | - |
| 37 | QString portableText() const; | - |
| 38 | | - |
| 39 | bool isEnabled() const; | - |
| 40 | void setEnabled(bool enabled); | - |
| 41 | | - |
| 42 | bool autoRepeat() const; | - |
| 43 | void setAutoRepeat(bool repeat); | - |
| 44 | | - |
| 45 | Qt::ShortcutContext context() const; | - |
| 46 | void setContext(Qt::ShortcutContext context); | - |
| 47 | | - |
| 48 | public : | - |
| 49 | void sequenceChanged(); | - |
| 50 | void sequencesChanged(); | - |
| 51 | void enabledChanged(); | - |
| 52 | void autoRepeatChanged(); | - |
| 53 | void contextChanged(); | - |
| 54 | | - |
| 55 | void activated(); | - |
| 56 | void activatedAmbiguously(); | - |
| 57 | | - |
| 58 | protected: | - |
| 59 | void classBegin() override; | - |
| 60 | void componentComplete() override; | - |
| 61 | bool event(QEvent *event) override; | - |
| 62 | | - |
| 63 | struct Shortcut { | - |
| 64 | Shortcut() : id(0) { }executed 1208 times by 2 tests: end of blockExecuted by:- tst_qquickitem
- tst_qquickshortcut
| 1208 |
| 65 | bool matches(QShortcutEvent *event) const; | - |
| 66 | int id; | - |
| 67 | QVariant userValue; | - |
| 68 | QKeySequence keySequence; | - |
| 69 | }; | - |
| 70 | | - |
| 71 | void setEnabled(Shortcut &shortcut, bool enabled); | - |
| 72 | void setAutoRepeat(Shortcut &shortcut, bool repeat); | - |
| 73 | | - |
| 74 | void grabShortcut(Shortcut &shortcut, Qt::ShortcutContext context); | - |
| 75 | void ungrabShortcut(Shortcut &shortcut); | - |
| 76 | | - |
| 77 | private: | - |
| 78 | bool m_enabled; | - |
| 79 | bool m_completed; | - |
| 80 | bool m_autorepeat; | - |
| 81 | Qt::ShortcutContext m_context; | - |
| 82 | Shortcut m_shortcut; | - |
| 83 | QVector<Shortcut> m_shortcuts; | - |
| 84 | }; | - |
| 85 | | - |
| 86 | | - |
| | |