reorder Search, clear search field automaticly after result will be shown.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1383 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-07-16 00:49:39 +00:00
parent e80b56c63c
commit 063c4bb44f
2 changed files with 397 additions and 673 deletions

View File

@ -96,7 +96,7 @@ SearchDialog::SearchDialog(QWidget *parent)
/* Advanced search panel specifica */
RshareSettings rsharesettings;
QString key (UI_PREF_ADVANCED_SEARCH);
/*QString key (UI_PREF_ADVANCED_SEARCH);
bool useAdvanced = rsharesettings.value(key, QVariant(false)).toBool();
if (useAdvanced)
{
@ -104,10 +104,10 @@ SearchDialog::SearchDialog(QWidget *parent)
ui.SimpleSearchPanel->hide();
} else {
ui.AdvancedSearchPanel->hide();
}
}*/
connect(ui.toggleAdvancedSearchBtn, SIGNAL(toggled(bool)), this, SLOT(toggleAdvancedSearchDialog(bool)));
connect(ui.focusAdvSearchDialogBtn, SIGNAL(clicked()), this, SLOT(showAdvSearchDialog()));
//connect(ui.focusAdvSearchDialogBtn, SIGNAL(clicked()), this, SLOT(showAdvSearchDialog()));
/* End Advanced Search Panel specifics */
@ -501,6 +501,7 @@ void SearchDialog::searchKeywords()
/* abstraction to allow reusee of tree rendering code */
resultsToTree(txt, *finalResults);
ui.lineEdit->clear();
}
void SearchDialog::resultsToTree(std::string txt, std::list<FileDetail> results)

File diff suppressed because it is too large Load Diff