Changeset 769 for trunk/src/gui/widgets/qlinecontrol.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/widgets/qlinecontrol.cpp
r651 r769 66 66 If the text has changed will emit displayTextChanged() 67 67 */ 68 void QLineControl::updateDisplayText( )68 void QLineControl::updateDisplayText(bool forceUpdate) 69 69 { 70 70 QString orig = m_textLayout.text(); … … 103 103 m_ascent = qRound(l.ascent()); 104 104 105 if (str != orig )105 if (str != orig || forceUpdate) 106 106 emit displayTextChanged(str); 107 107 } … … 477 477 } 478 478 m_textLayout.setAdditionalFormats(formats); 479 updateDisplayText( );479 updateDisplayText(/*force*/ true); 480 480 if (cursorPositionChanged) 481 481 emitCursorPositionChanged(); … … 1372 1372 #ifndef QT_NO_SHORTCUT 1373 1373 case QEvent::ShortcutOverride:{ 1374 if (isReadOnly()) 1375 return false; 1374 1376 QKeyEvent* ke = static_cast<QKeyEvent*>(ev); 1375 1377 if (ke == QKeySequence::Copy
Note:
See TracChangeset
for help on using the changeset viewer.