| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicktextcontrol_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | class QStyleSheet; | - |
| 6 | class QTextDocument; | - |
| 7 | class QQuickTextControlPrivate; | - |
| 8 | class QAbstractScrollArea; | - |
| 9 | class QEvent; | - |
| 10 | class QTimerEvent; | - |
| 11 | - | |
| 12 | class __attribute__((visibility("default"))) QQuickTextControl : public QInputControl | - |
| 13 | { | - |
| 14 | public: | - |
| 15 | #pragma GCC diagnostic push | - |
| 16 | - | |
| 17 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 18 | 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: | - |
| 19 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 20 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 21 | #pragma GCC diagnostic pop | - |
| 22 | struct QPrivateSignal {}; | - |
| 23 | inline QQuickTextControlPrivate* d_func() { return executed 25898 times by 6 tests: reinterpret_cast<QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 25898 times by 6 tests: } inline const QQuickTextControlPrivate* d_func() const { returnreturn reinterpret_cast<QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 61222 times by 6 tests: reinterpret_cast<const QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 61222 times by 6 tests: } friend class QQuickTextControlPrivate;return reinterpret_cast<const QQuickTextControlPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 25898-61222 |
| 24 | public: | - |
| 25 | explicit QQuickTextControl(QTextDocument *doc, QObject *parent = nullptr); | - |
| 26 | virtual ~QQuickTextControl(); | - |
| 27 | - | |
| 28 | QTextDocument *document() const; | - |
| 29 | - | |
| 30 | void setTextCursor(const QTextCursor &cursor); | - |
| 31 | QTextCursor textCursor() const; | - |
| 32 | - | |
| 33 | void setTextInteractionFlags(Qt::TextInteractionFlags flags); | - |
| 34 | Qt::TextInteractionFlags textInteractionFlags() const; | - |
| 35 | - | |
| 36 | QString toPlainText() const; | - |
| 37 | - | |
| 38 | - | |
| 39 | QString toHtml() const; | - |
| 40 | - | |
| 41 | - | |
| 42 | bool hasImState() const; | - |
| 43 | bool overwriteMode() const; | - |
| 44 | void setOverwriteMode(bool overwrite); | - |
| 45 | bool cursorVisible() const; | - |
| 46 | void setCursorVisible(bool visible); | - |
| 47 | QRectF anchorRect() const; | - |
| 48 | QRectF cursorRect(const QTextCursor &cursor) const; | - |
| 49 | QRectF cursorRect() const; | - |
| 50 | QRectF selectionRect(const QTextCursor &cursor) const; | - |
| 51 | QRectF selectionRect() const; | - |
| 52 | - | |
| 53 | QString hoveredLink() const; | - |
| 54 | QString anchorAt(const QPointF &pos) const; | - |
| 55 | - | |
| 56 | void setCursorWidth(int width); | - |
| 57 | - | |
| 58 | void setAcceptRichText(bool accept); | - |
| 59 | - | |
| 60 | void moveCursor(QTextCursor::MoveOperation op, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); | - |
| 61 | - | |
| 62 | bool canPaste() const; | - |
| 63 | - | |
| 64 | void setCursorIsFocusIndicator(bool b); | - |
| 65 | void setWordSelectionEnabled(bool enabled); | - |
| 66 | - | |
| 67 | void updateCursorRectangle(bool force); | - |
| 68 | - | |
| 69 | virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const; | - |
| 70 | virtual QRectF blockBoundingRect(const QTextBlock &block) const; | - |
| 71 | - | |
| 72 | QString preeditText() const; | - |
| 73 | - | |
| 74 | public : | - |
| 75 | void setPlainText(const QString &text); | - |
| 76 | void setHtml(const QString &text); | - |
| 77 | - | |
| 78 | - | |
| 79 | void cut(); | - |
| 80 | void copy(); | - |
| 81 | void paste(QClipboard::Mode mode = QClipboard::Clipboard); | - |
| 82 | - | |
| 83 | - | |
| 84 | void undo(); | - |
| 85 | void redo(); | - |
| 86 | void clear(); | - |
| 87 | - | |
| 88 | void selectAll(); | - |
| 89 | - | |
| 90 | public : | - |
| 91 | void textChanged(); | - |
| 92 | void preeditTextChanged(); | - |
| 93 | void contentsChange(int from, int charsRemoved, int charsAdded); | - |
| 94 | void undoAvailable(bool b); | - |
| 95 | void redoAvailable(bool b); | - |
| 96 | void currentCharFormatChanged(const QTextCharFormat &format); | - |
| 97 | void copyAvailable(bool b); | - |
| 98 | void selectionChanged(); | - |
| 99 | void cursorPositionChanged(); | - |
| 100 | void overwriteModeChanged(bool overwriteMode); | - |
| 101 | - | |
| 102 | - | |
| 103 | void updateCursorRequest(); | - |
| 104 | void updateRequest(); | - |
| 105 | void cursorRectangleChanged(); | - |
| 106 | void linkActivated(const QString &link); | - |
| 107 | void linkHovered(const QString &link); | - |
| 108 | - | |
| 109 | public: | - |
| 110 | virtual void processEvent(QEvent *e, const QMatrix &matrix); | - |
| 111 | void processEvent(QEvent *e, const QPointF &coordinateOffset = QPointF()); | - |
| 112 | - | |
| 113 | - | |
| 114 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; | - |
| 115 | QVariant inputMethodQuery(Qt::InputMethodQuery query, QVariant argument) const; | - |
| 116 | - | |
| 117 | - | |
| 118 | virtual QMimeData *createMimeDataFromSelection() const; | - |
| 119 | virtual bool canInsertFromMimeData(const QMimeData *source) const; | - |
| 120 | virtual void insertFromMimeData(const QMimeData *source); | - |
| 121 | - | |
| 122 | bool cursorOn() const; | - |
| 123 | - | |
| 124 | protected: | - |
| 125 | void timerEvent(QTimerEvent *e) override; | - |
| 126 | - | |
| 127 | bool event(QEvent *e) override; | - |
| 128 | - | |
| 129 | private: | - |
| 130 | QQuickTextControl(const QQuickTextControl &) = delete; QQuickTextControl &operator=(const QQuickTextControl &) = delete; | - |
| 131 | - | |
| 132 | - | |
| 133 | }; | - |
| 134 | - | |
| 135 | - | |
| 136 | - | |
| 137 | class QQuickTextEditMimeData : public QMimeData | - |
| 138 | { | - |
| 139 | public: | - |
| 140 | inline QQuickTextEditMimeData(const QTextDocumentFragment &aFragment) : fragment(aFragment) {} executed 614 times by 1 test: end of blockExecuted by:
| 614 |
| 141 | - | |
| 142 | QStringList formats() const override; | - |
| 143 | - | |
| 144 | protected: | - |
| 145 | QVariant retrieveData(const QString &mimeType, QVariant::Type type) const override; | - |
| 146 | - | |
| 147 | private: | - |
| 148 | void setup() const; | - |
| 149 | - | |
| 150 | mutable QTextDocumentFragment fragment; | - |
| 151 | }; | - |
| 152 | - | |
| 153 | - | |
| Switch to Source code | Preprocessed file |