mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 19:12:28 -04:00
turtle dev. Worked on serialisation, mainly, and connexion to gui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1076 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
decb7442bc
commit
29bd4795fd
8 changed files with 364 additions and 26 deletions
|
@ -26,6 +26,9 @@
|
|||
#include "rsiface/rsexpr.h"
|
||||
#include "rsiface/rsfiles.h"
|
||||
#include "rsiface/rspeers.h"
|
||||
#ifdef TURTLE_HOPPING
|
||||
#include "rsiface/rsturtle.h"
|
||||
#endif
|
||||
#include "util/misc.h"
|
||||
|
||||
#include <iostream>
|
||||
|
@ -416,6 +419,12 @@ void SearchDialog::advancedSearch(Expression* expression)
|
|||
|
||||
void SearchDialog::searchKeywords()
|
||||
{
|
||||
#ifdef TURTLE_HOPPING
|
||||
QString qTxt = ui.lineEdit->text();
|
||||
std::string txt = qTxt.toStdString();
|
||||
|
||||
TurtleRequestId id = rsTurtle->turtleSearch(txt) ;
|
||||
#else
|
||||
QString qTxt = ui.lineEdit->text();
|
||||
std::string txt = qTxt.toStdString();
|
||||
|
||||
|
@ -488,6 +497,7 @@ void SearchDialog::searchKeywords()
|
|||
|
||||
/* abstraction to allow reusee of tree rendering code */
|
||||
resultsToTree(txt, *finalResults);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SearchDialog::resultsToTree(std::string txt, std::list<FileDetail> results)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue