aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextcontrol_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquicktextcontrol_p_p.h')
-rw-r--r--src/quick/items/qquicktextcontrol_p_p.h55
1 files changed, 23 insertions, 32 deletions
diff --git a/src/quick/items/qquicktextcontrol_p_p.h b/src/quick/items/qquicktextcontrol_p_p.h
index daf2f8ca82..44bc00221b 100644
--- a/src/quick/items/qquicktextcontrol_p_p.h
+++ b/src/quick/items/qquicktextcontrol_p_p.h
@@ -132,49 +132,40 @@ public:
bool isPreediting() const;
void commitPreedit();
- QTextDocument *doc;
- bool cursorOn;
- QTextCursor cursor;
- bool cursorIsFocusIndicator;
- QTextCharFormat lastCharFormat;
-
- Qt::TextInteractionFlags interactionFlags;
-
- QBasicTimer cursorBlinkTimer;
- QBasicTimer trippleClickTimer;
QPointF trippleClickPoint;
+ QPointF mousePressPos;
- bool mousePressed;
-
- QPoint mousePressPos;
-
- QPointer<QObject> contextObject;
-
- bool lastSelectionState;
-
- bool ignoreAutomaticScrollbarAdjustement;
+ QTextCharFormat lastCharFormat;
+ QTextDocument *doc;
+ QTextCursor cursor;
QTextCursor selectedWordOnDoubleClick;
QTextCursor selectedBlockOnTrippleClick;
+ QString tentativeCommit;
+ QString highlightedAnchor; // Anchor below cursor
+ QString anchorOnMousePress;
+ QString linkToCopy;
- bool overwriteMode;
- bool acceptRichText;
+ QBasicTimer cursorBlinkTimer;
+ QBasicTimer trippleClickTimer;
int preeditCursor;
- bool hideCursor; // used to hide the cursor in the preedit area
- QString tentativeCommit;
-
- QPalette palette;
- bool hasFocus;
- bool isEnabled;
- QString highlightedAnchor; // Anchor below cursor
- QString anchorOnMousePress;
- bool hadSelectionOnMousePress;
+ Qt::TextInteractionFlags interactionFlags;
- bool wordSelectionEnabled;
+ bool cursorOn : 1;
+ bool cursorIsFocusIndicator : 1;
+ bool mousePressed : 1;
+ bool lastSelectionState : 1;
+ bool ignoreAutomaticScrollbarAdjustement : 1;
+ bool overwriteMode : 1;
+ bool acceptRichText : 1;
+ bool hideCursor : 1; // used to hide the cursor in the preedit area
+ bool hasFocus : 1;
+ bool isEnabled : 1;
+ bool hadSelectionOnMousePress : 1;
+ bool wordSelectionEnabled : 1;
- QString linkToCopy;
void _q_copyLink();
void _q_updateBlock(const QTextBlock &);
void _q_documentLayoutChanged();