Changeset 846 for trunk/src/gui/text/qtextengine_p.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qtextengine_p.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 312 312 {} 313 313 QTextItemInt(const QScriptItem &si, QFont *font, const QTextCharFormat &format = QTextCharFormat()); 314 314 315 315 316 /// copy the structure items, adjusting the glyphs arrays to the right subarrays. … … 390 391 uint hasTrailingSpaces : 1; 391 392 uint leadingIncluded : 1; 392 QFixed height() const { return ascent + descent+ 1393 QFixed height() const { return + 1 393 394 + (leadingIncluded? qMax(QFixed(),leading) : QFixed()); } 394 395 QFixed base() const { return ascent … … 416 417 class Q_GUI_EXPORT QTextEngine { 417 418 public: 419 420 421 422 423 418 424 struct LayoutData { 419 425 LayoutData(const QString &str, void **stack_memory, int mem_size); … … 428 434 mutable int used; 429 435 uint hasBidi : 1; 430 uint inLayout : 1;436 uint ; 431 437 uint memory_on_stack : 1; 432 438 bool haveCharAttributes; 433 439 QString string; 434 voidreallocate(int totalGlyphs);440 reallocate(int totalGlyphs); 435 441 }; 436 442 … … 458 464 void itemize() const; 459 465 466 460 467 static void bidiReorder(int numRuns, const quint8 *levels, int *visualOrder); 461 468 … … 519 526 } 520 527 521 inline voidensureSpace(int nGlyphs) const {528 inline ensureSpace(int nGlyphs) const { 522 529 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; 524 532 } 525 533
Note:
See TracChangeset
for help on using the changeset viewer.