Changeset 846 for trunk/src/gui/text/qtextdocument_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qtextdocument_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 133 133 BlockDeleted = 7, 134 134 GroupFormatChange = 8, 135 CursorMoved = 9, 135 136 Custom = 256 136 137 }; … … 253 254 inline void setDefaultFont(const QFont &f) { formats.setDefaultFont(f); } 254 255 256 void clearUndoRedoStacks(QTextDocument::Stacks stacksToClear, bool emitSignals = false); 257 255 258 private: 256 259 bool split(int pos); 257 260 bool unite(uint f); 258 void truncateUndoStack();259 261 260 262 void insert_string(int pos, uint strPos, uint length, int format, QTextUndoCommand::Operation op); … … 276 278 277 279 inline void addCursor(QTextCursorPrivate *c) { cursors.append(c); } 278 inline void removeCursor(QTextCursorPrivate *c) { cursors.removeAll(c); changedCursors.removeAll(c);}280 inline void removeCursor(QTextCursorPrivate *c) { cursors.removeAll(c); } 279 281 280 282 QTextFrame *frameAt(int pos) const; … … 315 317 316 318 int editBlock; 319 int editBlockCursorPosition; 317 320 int docChangeFrom; 318 321 int docChangeOldLength; … … 327 330 int initialBlockCharFormatIndex; 328 331 329 QList<QTextCursorPrivate*> cursors; 330 QList<QTextCursorPrivate*> changedCursors; 332 QList<QTextCursorPrivate *> cursors; 331 333 QMap<int, QTextObject *> objects; 332 334 QMap<QUrl, QVariant> resources; … … 344 346 uint needsEnsureMaximumBlockCount : 1; 345 347 uint inContentsChange : 1; 348 uint blockCursorAdjustment : 1; 346 349 QSizeF pageSize; 347 350 QString title;
Note:
See TracChangeset
for help on using the changeset viewer.