Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/text/qtextdocument_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    133133        BlockDeleted = 7,
    134134        GroupFormatChange = 8,
     135        CursorMoved = 9,
    135136        Custom = 256
    136137    };
     
    253254    inline void setDefaultFont(const QFont &f) { formats.setDefaultFont(f); }
    254255
     256    void clearUndoRedoStacks(QTextDocument::Stacks stacksToClear, bool emitSignals = false);
     257
    255258private:
    256259    bool split(int pos);
    257260    bool unite(uint f);
    258     void truncateUndoStack();
    259261
    260262    void insert_string(int pos, uint strPos, uint length, int format, QTextUndoCommand::Operation op);
     
    276278
    277279    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); }
    279281
    280282    QTextFrame *frameAt(int pos) const;
     
    315317
    316318    int editBlock;
     319    int editBlockCursorPosition;
    317320    int docChangeFrom;
    318321    int docChangeOldLength;
     
    327330    int initialBlockCharFormatIndex;
    328331
    329     QList<QTextCursorPrivate*> cursors;
    330     QList<QTextCursorPrivate*> changedCursors;
     332    QList<QTextCursorPrivate *> cursors;
    331333    QMap<int, QTextObject *> objects;
    332334    QMap<QUrl, QVariant> resources;
     
    344346    uint needsEnsureMaximumBlockCount : 1;
    345347    uint inContentsChange : 1;
     348    uint blockCursorAdjustment : 1;
    346349    QSizeF pageSize;
    347350    QString title;
Note: See TracChangeset for help on using the changeset viewer.