--- a/qcpix/tsrc/orbitsearch/testsearch.cpp Tue Jul 06 15:30:04 2010 +0300
+++ b/qcpix/tsrc/orbitsearch/testsearch.cpp Wed Aug 18 10:53:26 2010 +0300
@@ -48,11 +48,30 @@
searchButton = new HbPushButton( "Search" );
layout->addItem( searchButton );
+ QGraphicsLinearLayout *getdoclayout = new QGraphicsLinearLayout;
+ getdoclayout->setOrientation(Qt::Horizontal);
+
+ indexBox = new HbLineEdit;
+ indexBox->setInputMethodHints(Qt::ImhPreferNumbers);
+
+ countBox = new HbLineEdit;
+ countBox->setInputMethodHints(Qt::ImhPreferNumbers);
+
+ getdocbutton = new HbPushButton("GetDocs");
+
+#if !DONT_SHOW_RESULTS
+ getdoclayout->addItem(indexBox);
+ getdoclayout->addItem(countBox);
+ getdoclayout->addItem(getdocbutton);
+ layout->addItem(getdoclayout);
+#endif //!DONT_SHOW_RESULTS
+
resultsBox = new HbTextEdit;
layout->addItem( resultsBox );
- SearchHelper* sh = new SearchHelper(searchBox, searchButton, resultsBox);
+ SearchHelper* sh = new SearchHelper(searchBox, searchButton, resultsBox, indexBox, countBox,getdocbutton);
QObject::connect( searchButton, SIGNAL( clicked() ), sh, SLOT(doSearch()) );
+ QObject::connect( getdocbutton, SIGNAL( clicked() ), sh, SLOT(showdocs()) );
w->setLayout( layout );
BigScreen->addView ( w );