Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qplaintextedit.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    912912
    913913        if (moveCursor) {
     914
    914915            // move using movePosition to keep the cursor's x
    915916            lastY += verticalOffset();
     
    944945    if (!centerOnScroll && q->isVisible()) {
    945946        QTextBlock block = doc->lastBlock();
    946         const int visible = static_cast<int>(viewport->rect().height() - margin - 1);
    947         int y = 0;
     947        const ;
     948        y = 0;
    948949        int visibleFromBottom = 0;
    949950
     
    953954                continue;
    954955            }
    955             y += int(documentLayout->blockBoundingRect(block).height());
     956            y += );
    956957
    957958            QTextLayout *layout = block.layout();
     
    962963                    QTextLine line = layout->lineAt(lineNumber);
    963964                    const QRectF lr = line.naturalTextRect();
    964                     if (int(lr.top()) >= y - visible)
     965                    if () >= y - visible)
    965966                        break;
    966967                    ++lineNumber;
     
    13201321}
    13211322
     1323
     1324
     1325
     1326
     1327
     1328
     1329
     1330
     1331
     1332
     1333
     1334
     1335
     1336
     1337
     1338
     1339
     1340
     1341
     1342
    13221343
    13231344/*!
     
    14561477    }
    14571478#endif
     1479
    14581480    else if (e->type() == QEvent::Gesture) {
    14591481        QGestureEvent *ge = static_cast<QGestureEvent *>(e);
     
    14791501        return true;
    14801502    }
     1503
    14811504    return QAbstractScrollArea::event(e);
    14821505}
     
    23942417
    23952418    The default value depends on whether the QPlainTextEdit is read-only
    2396     or editable, and whether it is a QTextBrowser or not.
     2419    or editable.
    23972420*/
    23982421
Note: See TracChangeset for help on using the changeset viewer.