diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-05-18 16:06:18 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-05-18 16:19:52 +0300 |
commit | 61a211e45dd01751acb0adcbb3ae5496aa4bf3b9 (patch) | |
tree | 203ac1a15eaafb35dfe06b4cc4097e2e36ce1cc8 /demos/embedded | |
parent | 3335882eaa8ef3531a87d42a3400d06baa60380b (diff) | |
download | qt4-tools-61a211e45dd01751acb0adcbb3ae5496aa4bf3b9.tar.gz |
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
Diffstat (limited to 'demos/embedded')
-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 6cc18769a6..425d6aaa69 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(); } |