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/qtextengine_p.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    312312    {}
    313313    QTextItemInt(const QScriptItem &si, QFont *font, const QTextCharFormat &format = QTextCharFormat());
     314
    314315
    315316    /// copy the structure items, adjusting the glyphs arrays to the right subarrays.
     
    390391    uint hasTrailingSpaces : 1;
    391392    uint leadingIncluded : 1;
    392     QFixed height() const { return ascent + descent + 1
     393    QFixed height() const { return + 1
    393394                            + (leadingIncluded?  qMax(QFixed(),leading) : QFixed()); }
    394395    QFixed base() const { return ascent
     
    416417class Q_GUI_EXPORT QTextEngine {
    417418public:
     419
     420
     421
     422
     423
    418424    struct LayoutData {
    419425        LayoutData(const QString &str, void **stack_memory, int mem_size);
     
    428434        mutable int used;
    429435        uint hasBidi : 1;
    430         uint inLayout : 1;
     436        uint ;
    431437        uint memory_on_stack : 1;
    432438        bool haveCharAttributes;
    433439        QString string;
    434         void reallocate(int totalGlyphs);
     440        reallocate(int totalGlyphs);
    435441    };
    436442
     
    458464    void itemize() const;
    459465
     466
    460467    static void bidiReorder(int numRuns, const quint8 *levels, int *visualOrder);
    461468
     
    519526    }
    520527
    521     inline void ensureSpace(int nGlyphs) const {
     528    inline ensureSpace(int nGlyphs) const {
    522529        if (layoutData->glyphLayout.numGlyphs - layoutData->used < nGlyphs)
    523             layoutData->reallocate((((layoutData->used + nGlyphs)*3/2 + 15) >> 4) << 4);
     530            return layoutData->reallocate((((layoutData->used + nGlyphs)*3/2 + 15) >> 4) << 4);
     531        return true;
    524532    }
    525533
Note: See TracChangeset for help on using the changeset viewer.