Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | class QMimeData; | - |
5 | class QAbstractScrollArea; | - |
6 | | - |
7 | class QQuickTextControlPrivate : public QObjectPrivate | - |
8 | { | - |
9 | inline QQuickTextControl* q_func() { return static_cast<QQuickTextControl *>(q_ptr); } inline const QQuickTextControl* q_func() const { return static_cast<const QQuickTextControl *>(q_ptr); } friend class QQuickTextControl; | - |
10 | public: | - |
11 | QQuickTextControlPrivate(); | - |
12 | | - |
13 | bool cursorMoveKeyEvent(QKeyEvent *e); | - |
14 | | - |
15 | void updateCurrentCharFormat(); | - |
16 | | - |
17 | void setContent(Qt::TextFormat format, const QString &text); | - |
18 | | - |
19 | void paste(const QMimeData *source); | - |
20 | | - |
21 | void setCursorPosition(const QPointF &pos); | - |
22 | void setCursorPosition(int pos, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); | - |
23 | | - |
24 | void repaintCursor(); | - |
25 | inline void repaintSelection() | - |
26 | { repaintOldAndNewSelection(QTextCursor()); }executed 962 times by 3 tests: end of block Executed by:- tst_qquickfocusscope
- tst_qquickitem2
- tst_qquicktextedit
| 962 |
27 | void repaintOldAndNewSelection(const QTextCursor &oldSelection); | - |
28 | | - |
29 | void selectionChanged(bool forceEmitSelectionChanged = false); | - |
30 | | - |
31 | void _q_updateCurrentCharFormatAndSelection(); | - |
32 | | - |
33 | | - |
34 | void setClipboardSelection(); | - |
35 | | - |
36 | | - |
37 | void _q_updateCursorPosChanged(const QTextCursor &someCursor); | - |
38 | | - |
39 | void setBlinkingCursorEnabled(bool enable); | - |
40 | void updateCursorFlashTime(); | - |
41 | | - |
42 | void extendWordwiseSelection(int suggestedNewPosition, qreal mouseXPosition); | - |
43 | void extendBlockwiseSelection(int suggestedNewPosition); | - |
44 | | - |
45 | void _q_setCursorAfterUndoRedo(int undoPosition, int charsAdded, int charsRemoved); | - |
46 | | - |
47 | QRectF rectForPosition(int position) const; | - |
48 | | - |
49 | void keyPressEvent(QKeyEvent *e); | - |
50 | void keyReleaseEvent(QKeyEvent *e); | - |
51 | void mousePressEvent(QMouseEvent *event, const QPointF &pos); | - |
52 | void mouseMoveEvent(QMouseEvent *event, const QPointF &pos); | - |
53 | void mouseReleaseEvent(QMouseEvent *event, const QPointF &pos); | - |
54 | void mouseDoubleClickEvent(QMouseEvent *event, const QPointF &pos); | - |
55 | bool sendMouseEventToInputContext(QMouseEvent *event, const QPointF &pos); | - |
56 | void focusEvent(QFocusEvent *e); | - |
57 | | - |
58 | void inputMethodEvent(QInputMethodEvent *); | - |
59 | | - |
60 | void hoverEvent(QHoverEvent *e, const QPointF &pos); | - |
61 | | - |
62 | void activateLinkUnderCursor(QString href = QString()); | - |
63 | | - |
64 | | - |
65 | bool isPreediting() const; | - |
66 | void commitPreedit(); | - |
67 | void cancelPreedit(); | - |
68 | | - |
69 | | - |
70 | QPointF tripleClickPoint; | - |
71 | QPointF mousePressPos; | - |
72 | | - |
73 | QTextCharFormat lastCharFormat; | - |
74 | | - |
75 | QTextDocument *doc; | - |
76 | QTextCursor cursor; | - |
77 | QTextCursor selectedWordOnDoubleClick; | - |
78 | QTextCursor selectedBlockOnTripleClick; | - |
79 | QString anchorOnMousePress; | - |
80 | QString linkToCopy; | - |
81 | QString hoveredLink; | - |
82 | | - |
83 | QBasicTimer cursorBlinkTimer; | - |
84 | QBasicTimer tripleClickTimer; | - |
85 | | - |
86 | | - |
87 | int preeditCursor; | - |
88 | | - |
89 | | - |
90 | Qt::TextInteractionFlags interactionFlags; | - |
91 | | - |
92 | bool cursorOn : 1; | - |
93 | bool cursorIsFocusIndicator : 1; | - |
94 | bool mousePressed : 1; | - |
95 | bool lastSelectionState : 1; | - |
96 | bool ignoreAutomaticScrollbarAdjustement : 1; | - |
97 | bool overwriteMode : 1; | - |
98 | bool acceptRichText : 1; | - |
99 | bool cursorVisible : 1; | - |
100 | bool cursorBlinkingEnabled : 1; | - |
101 | bool hasFocus : 1; | - |
102 | bool hadSelectionOnMousePress : 1; | - |
103 | bool wordSelectionEnabled : 1; | - |
104 | bool hasImState : 1; | - |
105 | bool cursorRectangleChanged : 1; | - |
106 | | - |
107 | int lastSelectionStart; | - |
108 | int lastSelectionEnd; | - |
109 | | - |
110 | void _q_copyLink(); | - |
111 | }; | - |
112 | | - |
113 | | - |
| | |