Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/text/qtextengine.cpp

    r651 r769  
    8282    {
    8383        if ((int)caps == (int)QFont::SmallCaps)
    84             generateScriptItemsSmallCaps(m_string.utf16(), start, length);
     84            generateScriptItemsSmallCaps(reinterpret_cast<const ushort *>(m_string.unicode()), start, length);
    8585        else if(caps == QFont::Capitalize)
    8686            generateScriptItemsCapitalize(start, length);
     
    857857}
    858858
    859 extern int qt_defaultDpiY(); // in qfont.cpp
     859Q_GUI_EXPORT extern int qt_defaultDpiY(); // in qfont.cpp
    860860
    861861void QTextEngine::shapeText(int item) const
     
    14351435    }
    14361436
    1437     const ushort *unicode = layoutData->string.utf16();
    1438     // correctly assign script, isTab and isObject to the script analysis
    1439     const ushort *uc = unicode;
     1437    const ushort *uc = reinterpret_cast<const ushort *>(layoutData->string.unicode());
    14401438    const ushort *e = uc + length;
    14411439    int lastScript = QUnicodeTables::Common;
     
    16511649            }
    16521650
    1653             glyph_t glyph = glyphs.glyphs[logClusters[pos + ilen - 1]];
     1651            glyph_t glyph = glyphs.glyphs[logClusters[ilen - 1]];
    16541652            glyph_metrics_t gi = fe->boundingBox(glyph);
    16551653            if (gi.isValid())
     
    24982496}
    24992497
    2500 extern int qt_defaultDpiY();
     2498Q_GUI_EXPORT extern int qt_defaultDpiY();
    25012499
    25022500QFixed QTextEngine::calculateTabWidth(int item, QFixed x) const
Note: See TracChangeset for help on using the changeset viewer.