Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r651 r769  
    6666    If the text has changed will emit displayTextChanged()
    6767*/
    68 void QLineControl::updateDisplayText()
     68void QLineControl::updateDisplayText(bool forceUpdate)
    6969{
    7070    QString orig = m_textLayout.text();
     
    103103    m_ascent = qRound(l.ascent());
    104104
    105     if (str != orig)
     105    if (str != orig || forceUpdate)
    106106        emit displayTextChanged(str);
    107107}
     
    477477    }
    478478    m_textLayout.setAdditionalFormats(formats);
    479     updateDisplayText();
     479    updateDisplayText(/*force*/ true);
    480480    if (cursorPositionChanged)
    481481        emitCursorPositionChanged();
     
    13721372#ifndef QT_NO_SHORTCUT
    13731373        case QEvent::ShortcutOverride:{
     1374            if (isReadOnly())
     1375                return false;
    13741376            QKeyEvent* ke = static_cast<QKeyEvent*>(ev);
    13751377            if (ke == QKeySequence::Copy
Note: See TracChangeset for help on using the changeset viewer.