summaryrefslogtreecommitdiff
path: root/examples/webkit/formextractor/formextractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webkit/formextractor/formextractor.cpp')
-rw-r--r--examples/webkit/formextractor/formextractor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/webkit/formextractor/formextractor.cpp b/examples/webkit/formextractor/formextractor.cpp
index c1417bad13..4f2b25b1dc 100644
--- a/examples/webkit/formextractor/formextractor.cpp
+++ b/examples/webkit/formextractor/formextractor.cpp
@@ -78,6 +78,11 @@ void FormExtractor::submit()
ui.updatesEdit->setText("Yes");
else
ui.updatesEdit->setText("No");
+
+ // In mobile devices, change the tab when the data has been submitted
+ #if defined Q_OS_SYMBIAN || defined Q_WS_HILDON || defined Q_WS_MAEMO_5 || defined Q_WS_SIMULATOR
+ ui.tabWidget->setCurrentWidget(ui.tabData);
+ #endif
}
void FormExtractor::populateJavaScriptWindowObject()