summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/recipes/querymainwindow.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@digia.com>2012-11-22 15:34:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-26 13:12:57 +0100
commitf665204c032795257a340573db91686dfc27e028 (patch)
treef4fb5f20a553f859b760b097e3188326f49a87a6 /examples/xmlpatterns/recipes/querymainwindow.cpp
parent051aeb291646745559c47da160193bdcbd34ef2b (diff)
downloadqtxmlpatterns-f665204c032795257a340573db91686dfc27e028.tar.gz
Display first result as well
Change-Id: If014d72cee6e3dd9e822a36390f56754c30e3848 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/xmlpatterns/recipes/querymainwindow.cpp')
-rw-r--r--examples/xmlpatterns/recipes/querymainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/xmlpatterns/recipes/querymainwindow.cpp b/examples/xmlpatterns/recipes/querymainwindow.cpp
index 95dc3b2..a3b9604 100644
--- a/examples/xmlpatterns/recipes/querymainwindow.cpp
+++ b/examples/xmlpatterns/recipes/querymainwindow.cpp
@@ -62,6 +62,8 @@ QueryMainWindow::QueryMainWindow() : ui_defaultQueries(0)
int len = queries.count();
for(int i = 0; i < len; ++i)
ui_defaultQueries->addItem(queries.at(i));
+ if (len > 0)
+ displayQuery(0);
}
//! [0]