Changeset 561 for trunk/src/gui/text/qtextengine_p.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/text/qtextengine_p.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 111 111 112 112 glyph_metrics_t transformed(const QTransform &xform) const; 113 113 114 }; 114 115 Q_DECLARE_TYPEINFO(glyph_metrics_t, Q_PRIMITIVE_TYPE); … … 345 346 inline QScriptItem() 346 347 : position(0), 347 num_glyphs(0), descent(-1), ascent(-1), width(-1),348 num_glyphs(0), descent(-1), ascent(-1), width(-1), 348 349 glyph_data_offset(0) {} 349 350 inline QScriptItem(int p, const QScriptAnalysis &a) 350 351 : position(p), analysis(a), 351 num_glyphs(0), descent(-1), ascent(-1), width(-1),352 num_glyphs(0), descent(-1), ascent(-1), width(-1), 352 353 glyph_data_offset(0) {} 353 354 … … 357 358 QFixed descent; 358 359 QFixed ascent; 360 359 361 QFixed width; 360 362 int glyph_data_offset; … … 373 375 : from(0), length(0), 374 376 justified(0), gridfitted(0), 375 hasTrailingSpaces(0) {}377 hasTrailingSpaces(0) {} 376 378 QFixed descent; 377 379 QFixed ascent; 380 378 381 QFixed x; 379 382 QFixed y; … … 385 388 mutable uint gridfitted : 1; 386 389 uint hasTrailingSpaces : 1; 387 QFixed height() const { return ascent + descent + 1; } 390 uint leadingIncluded : 1; 391 QFixed height() const { return ascent + descent + 1 392 + (leadingIncluded? qMax(QFixed(),leading) : QFixed()); } 393 QFixed base() const { return ascent 394 + (leadingIncluded ? qMax(QFixed(),leading) : QFixed()); } 388 395 void setDefaultHeight(QTextEngine *eng); 389 396 void operator+=(const QScriptLine &other); … … 394 401 inline void QScriptLine::operator+=(const QScriptLine &other) 395 402 { 403 396 404 descent = qMax(descent, other.descent); 397 405 ascent = qMax(ascent, other.ascent); … … 476 484 } 477 485 478 QFontEngine *fontEngine(const QScriptItem &si, QFixed *ascent = 0, QFixed *descent = 0 ) const;486 QFontEngine *fontEngine(const QScriptItem &si, QFixed *ascent = 0, QFixed *descent = 0) const; 479 487 QFont font(const QScriptItem &si) const; 480 488 inline QFont font() const { return fnt; } … … 582 590 void shapeText(int item) const; 583 591 void shapeTextWithHarfbuzz(int item) const; 584 #if defined(Q_ OS_WINCE)592 #if defined(Q_S_WINCE) 585 593 void shapeTextWithCE(int item) const; 586 594 #endif
Note:
See TracChangeset
for help on using the changeset viewer.