void BrowserSearchDialog::search() { nodes.clear(); results->clear(); nodes.search(BrowserView::get_project(), ed->text(), case_sensitive->isChecked()); nodes.sort(); BrowserNode * bn; for (bn = nodes.first(); bn != 0; bn = nodes.next()) { QString up = ((BrowserNode *) bn->parent())->get_path(); results->insertItem((up.isEmpty()) ? QString(bn->text(0)) : bn->text(0) + QString(" [") + up + "]"); } }