diff -r b163492fda17 -r a9295db4dcbf vymview.cpp --- a/vymview.cpp Wed Nov 25 15:27:22 2009 +0000 +++ b/vymview.cpp Thu Nov 26 14:55:23 2009 +0000 @@ -18,6 +18,7 @@ // Create findWidget findWidget=new FindWidget (this); + findWidget->hide(); // Create TreeView treeEditor=new TreeEditor (model); @@ -172,7 +173,7 @@ } } -void VymView::changeProxySelection (const QItemSelection &newsel, const QItemSelection &oldsel) +void VymView::changeProxySelection (const QItemSelection &newsel, const QItemSelection &) { // Notify mainwindow to update satellites, but map selection to // original model first @@ -289,7 +290,7 @@ void VymView::showFindWidget() { - findWidget->show(); + findWidget->popup(); } void VymView::findNext (QString s) @@ -297,14 +298,8 @@ bool cs=false; BranchItem *bi=model->findText(s, cs); if (bi) - { - //statusBar()->message( "Found: " + bi->getHeading(), statusbarTime ); - cout << "VV::Found!\n"; - } else - { - cout << "VV::Nothing found!\n"; - //QMessageBox::information( findWindow, tr( "VYM -Information:" ), - // tr("No matches found for \"%1\"").arg(s)); - } + findWidget->setStatus (FindWidget::Success); + else + findWidget->setStatus (FindWidget::Failed); }