summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit_p.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-06 01:19:16 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-06 01:19:16 (GMT)
commit64031a8a69d5f71d73208447e0b1f7108aabd2fc (patch)
treec3fcee1fb2e86e0d6f06e7f694ba4a8a8aeddc21 /src/gui/widgets/qlineedit_p.cpp
parent8f839bb7b18e9140af7842daa142b0224d8680d7 (diff)
downloadQt-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.cpp12
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()),