diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-08-06 01:19:16 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-08-06 01:19:16 (GMT) |
commit | 64031a8a69d5f71d73208447e0b1f7108aabd2fc (patch) | |
tree | c3fcee1fb2e86e0d6f06e7f694ba4a8a8aeddc21 /src/gui/widgets/qlineedit_p.cpp | |
parent | 8f839bb7b18e9140af7842daa142b0224d8680d7 (diff) | |
download | Qt-64031a8a69d5f71d73208447e0b1f7108aabd2fc.zip Qt-64031a8a69d5f71d73208447e0b1f7108aabd2fc.tar.gz Qt-64031a8a69d5f71d73208447e0b1f7108aabd2fc.tar.bz2 |
Compile Fix for QT_KEYPAD_NAVIGATION
Diffstat (limited to 'src/gui/widgets/qlineedit_p.cpp')
-rw-r--r-- | src/gui/widgets/qlineedit_p.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp index f0ec8ad..aed454e 100644 --- a/src/gui/widgets/qlineedit_p.cpp +++ b/src/gui/widgets/qlineedit_p.cpp @@ -126,6 +126,14 @@ void QLineEditPrivate::_q_cursorPositionChanged(int from, int to) emit q->cursorPositionChanged(from, to); } +#ifdef QT_KEYPAD_NAVIGATION +void QLineEditPrivate::_q_editFocusChange(bool e) +{ + Q_Q(QLineEdit); + q->setEditFocus(e); +} +#endif + void QLineEditPrivate::init(const QString& txt) { Q_Q(QLineEdit); @@ -142,6 +150,10 @@ void QLineEditPrivate::init(const QString& txt) q, SIGNAL(returnPressed())); QObject::connect(control, SIGNAL(editingFinished()), q, SIGNAL(editingFinished())); +#ifdef QT_KEYPAD_NAVIGATION + QObject::connect(control, SIGNAL(editFocusChange(bool)), + q, SLOT(_q_editFocusChange(bool))); +#endif // for now, going completely overboard with updates. QObject::connect(control, SIGNAL(selectionChanged()), |