diff -r afe194b6b1cd -r cf5c74390b98 qcpix/tsrc/samplesearch/samplesearch.cpp --- a/qcpix/tsrc/samplesearch/samplesearch.cpp Tue Jul 06 15:30:04 2010 +0300 +++ b/qcpix/tsrc/samplesearch/samplesearch.cpp Wed Aug 18 10:53:26 2010 +0300 @@ -17,7 +17,7 @@ #include "SampleSearch.h" #include "searchhandler.h" -#include +#include #include SampleSearch::SampleSearch(QWidget */*parent*/) @@ -98,7 +98,7 @@ connect(btnSearchAsync, SIGNAL(clicked()),this, SLOT(doSearchAsync())); connect(iSearchHandler, SIGNAL(handleSearchResult(int,int)),this, SLOT(onSearchComplete(int,int))); connect(iSearchHandler, SIGNAL(handleAsyncSearchResult(int,int)),this, SLOT(onAsyncSearchComplete(int,int))); - connect(iSearchHandler, SIGNAL(handleDocument(int,QCPixDocument*)),this, SLOT(onGetDocumentComplete(int,QCPixDocument*))); + connect(iSearchHandler, SIGNAL(handleDocument(int,CpixDocument*)),this, SLOT(onGetDocumentComplete(int,CpixDocument*))); } SampleSearch::~SampleSearch() @@ -142,7 +142,7 @@ iSearchHandler->getDocumentAsyncAtIndex( nextDocumentIndex++ ); } -void SampleSearch::onGetDocumentComplete(int aError, QCPixDocument* aDoc) +void SampleSearch::onGetDocumentComplete(int aError, CpixDocument* aDoc) { if( aDoc == NULL ) return; addDocumentToResultsPage( aDoc, currentRow++ ); @@ -293,7 +293,7 @@ { if(rowCountgetDocumentAtIndex(i); + CpixDocument* aSearchDoc = iSearchHandler->getDocumentAtIndex(i); addDocumentToResultsPage( aSearchDoc, rowCount ); rowCount++; } @@ -312,7 +312,7 @@ QString docId; }; -void SampleSearch::addDocumentToResultsPage( QCPixDocument* aSearchDoc, int rowCount ) +void SampleSearch::addDocumentToResultsPage( CpixDocument* aSearchDoc, int rowCount ) { QTableWidgetItem *appClassCol = new QTableWidgetItem("Col1"); appClassCol->setFlags(Qt::ItemIsEnabled);