mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove unused QTextItemInt::midItem() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
87187129f8
commit
930e16e2b5
2 changed files with 0 additions and 23 deletions
|
@ -1972,28 +1972,6 @@ void QTextItemInt::initWithScriptItem(const QScriptItem &si)
|
|||
flags |= QTextItem::StrikeOut;
|
||||
}
|
||||
|
||||
QTextItemInt QTextItemInt::midItem(QFontEngine *fontEngine, int firstGlyphIndex, int numGlyphs) const
|
||||
{
|
||||
QTextItemInt ti = *this;
|
||||
const int end = firstGlyphIndex + numGlyphs;
|
||||
ti.glyphs = glyphs.mid(firstGlyphIndex, numGlyphs);
|
||||
ti.fontEngine = fontEngine;
|
||||
|
||||
if (logClusters && chars) {
|
||||
const int logClusterOffset = logClusters[0];
|
||||
while (logClusters[ti.chars - chars] - logClusterOffset < firstGlyphIndex)
|
||||
++ti.chars;
|
||||
|
||||
ti.logClusters += (ti.chars - chars);
|
||||
|
||||
ti.num_chars = 0;
|
||||
int char_start = ti.chars - chars;
|
||||
while (char_start + ti.num_chars < num_chars && ti.logClusters[ti.num_chars] - logClusterOffset < end)
|
||||
++ti.num_chars;
|
||||
}
|
||||
return ti;
|
||||
}
|
||||
|
||||
QTextLineItemIterator::QTextLineItemIterator(QTextEngine *_eng, int _lineNum, const QPointF &pos,
|
||||
const QTextLayout::FormatRange *_selection)
|
||||
: eng(_eng),
|
||||
|
|
|
@ -277,7 +277,6 @@ public:
|
|||
|
||||
/// copy the structure items, adjusting the glyphs arrays to the right subarrays.
|
||||
/// the width of the returned QTextItemInt is not adjusted, for speed reasons
|
||||
QTextItemInt midItem(QFontEngine *fontEngine, int firstGlyphIndex, int numGlyphs) const;
|
||||
void initWithScriptItem(const QScriptItem &si);
|
||||
|
||||
QFixed descent;
|
||||
|
|
Loading…
Add table
Reference in a new issue