diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-05-18 13:06:18 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-05-18 13:19:52 (GMT) |
commit | 61a211e45dd01751acb0adcbb3ae5496aa4bf3b9 (patch) | |
tree | 203ac1a15eaafb35dfe06b4cc4097e2e36ce1cc8 | |
parent | 3335882eaa8ef3531a87d42a3400d06baa60380b (diff) | |
download | Qt-61a211e45dd01751acb0adcbb3ae5496aa4bf3b9.zip Qt-61a211e45dd01751acb0adcbb3ae5496aa4bf3b9.tar.gz Qt-61a211e45dd01751acb0adcbb3ae5496aa4bf3b9.tar.bz2 |
Set edit focus to proper control in flightinfo demo
Set edit focus to line edit control when user needs to input
flight number.
Task-number: QTBUG-10124
Reviewed-by: Shane Kearns
-rw-r--r-- | demos/embedded/flightinfo/flightinfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/embedded/flightinfo/flightinfo.cpp b/demos/embedded/flightinfo/flightinfo.cpp index 6cc1876..425d6aa 100644 --- a/demos/embedded/flightinfo/flightinfo.cpp +++ b/demos/embedded/flightinfo/flightinfo.cpp @@ -174,6 +174,10 @@ private slots: ui.infoBox->hide(); ui.flightStatus->hide(); ui.flightName->setText("Enter flight number"); + ui.flightEdit->setFocus(); +#ifdef QT_KEYPAD_NAVIGATION + ui.flightEdit->setEditFocus(true); +#endif m_map = QPixmap(); update(); } |