Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
tf = QStyle::visualAlignment(layout_direction, QFlag(tf));
- bool isRightToLeft = (layout_direction == Qt::RightToLeft);
-
if (!painter)
tf |= Qt::TextDontPrint;
QFixed QTextEngine::calculateTabWidth(int item, QFixed x) const
{
- const QScriptItem &si = layoutData->items[item];
-
QFixed dpiScale = 1;
if (block.docHandle() && block.docHandle()->layout()) {
QPaintDevice *pdev = block.docHandle()->layout()->paintDevice();
int firstLine = 0;
int lastLine = d->lines.size();
for (int i = 0; i < d->lines.size(); ++i) {
- QTextLine l(i, d);
const QScriptLine &sl = d->lines[i];
if (sl.y > clipe) {
qreal x = position.x() + l.cursorToX(cursorPosition);
int itm;
-
if (d->visualCursorMovement()) {
if (cursorPosition == sl.from + sl.length)
cursorPosition--;