~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/gui/widgets/qlineedit.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-08-01 11:30:30 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20080801113030-c33y1z0l21t6cj5r
Tags: upstream-4.4.1
ImportĀ upstreamĀ versionĀ 4.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2238
2238
    Q_D(QLineEdit);
2239
2239
    if (e->reason() == Qt::TabFocusReason ||
2240
2240
         e->reason() == Qt::BacktabFocusReason  ||
2241
 
         e->reason() == Qt::ShortcutFocusReason)
 
2241
         e->reason() == Qt::ShortcutFocusReason) {
2242
2242
        if (d->maskData)
2243
2243
            d->moveCursor(d->nextMaskBlank(0));
2244
2244
        else if (!d->hasSelectedText())
2245
2245
            selectAll();
 
2246
    }
2246
2247
#ifdef QT_KEYPAD_NAVIGATION
2247
2248
    if (!QApplication::keypadNavigationEnabled() || (hasEditFocus() && e->reason() == Qt::PopupFocusReason))
2248
2249
#endif