From 61a211e45dd01751acb0adcbb3ae5496aa4bf3b9 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 18 May 2010 16:06:18 +0300 Subject: 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 --- demos/embedded/flightinfo/flightinfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demos/embedded') 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(); } -- cgit v1.2.1