Changeset 769 for trunk/src/gui/text/qtextengine.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qtextengine.cpp
r651 r769 82 82 { 83 83 if ((int)caps == (int)QFont::SmallCaps) 84 generateScriptItemsSmallCaps( m_string.utf16(), start, length);84 generateScriptItemsSmallCaps(reinterpret_cast<const ushort *>(m_string.unicode()), start, length); 85 85 else if(caps == QFont::Capitalize) 86 86 generateScriptItemsCapitalize(start, length); … … 857 857 } 858 858 859 extern int qt_defaultDpiY(); // in qfont.cpp859 Q_GUI_EXPORT extern int qt_defaultDpiY(); // in qfont.cpp 860 860 861 861 void QTextEngine::shapeText(int item) const … … 1435 1435 } 1436 1436 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()); 1440 1438 const ushort *e = uc + length; 1441 1439 int lastScript = QUnicodeTables::Common; … … 1651 1649 } 1652 1650 1653 glyph_t glyph = glyphs.glyphs[logClusters[ pos +ilen - 1]];1651 glyph_t glyph = glyphs.glyphs[logClusters[ilen - 1]]; 1654 1652 glyph_metrics_t gi = fe->boundingBox(glyph); 1655 1653 if (gi.isValid()) … … 2498 2496 } 2499 2497 2500 extern int qt_defaultDpiY();2498 Q_GUI_EXPORT extern int qt_defaultDpiY(); 2501 2499 2502 2500 QFixed QTextEngine::calculateTabWidth(int item, QFixed x) const
Note:
See TracChangeset
for help on using the changeset viewer.