1.1 --- a/vymview.cpp Wed Nov 25 15:28:05 2009 +0000
1.2 +++ b/vymview.cpp Thu Nov 26 14:55:23 2009 +0000
1.3 @@ -18,6 +18,7 @@
1.4
1.5 // Create findWidget
1.6 findWidget=new FindWidget (this);
1.7 + findWidget->hide();
1.8
1.9 // Create TreeView
1.10 treeEditor=new TreeEditor (model);
1.11 @@ -172,7 +173,7 @@
1.12 }
1.13 }
1.14
1.15 -void VymView::changeProxySelection (const QItemSelection &newsel, const QItemSelection &oldsel)
1.16 +void VymView::changeProxySelection (const QItemSelection &newsel, const QItemSelection &)
1.17 {
1.18 // Notify mainwindow to update satellites, but map selection to
1.19 // original model first
1.20 @@ -289,7 +290,7 @@
1.21
1.22 void VymView::showFindWidget()
1.23 {
1.24 - findWidget->show();
1.25 + findWidget->popup();
1.26 }
1.27
1.28 void VymView::findNext (QString s)
1.29 @@ -297,14 +298,8 @@
1.30 bool cs=false;
1.31 BranchItem *bi=model->findText(s, cs);
1.32 if (bi)
1.33 - {
1.34 - //statusBar()->message( "Found: " + bi->getHeading(), statusbarTime );
1.35 - cout << "VV::Found!\n";
1.36 - } else
1.37 - {
1.38 - cout << "VV::Nothing found!\n";
1.39 - //QMessageBox::information( findWindow, tr( "VYM -Information:" ),
1.40 - // tr("No matches found for \"%1\"").arg(s));
1.41 - }
1.42 + findWidget->setStatus (FindWidget::Success);
1.43 + else
1.44 + findWidget->setStatus (FindWidget::Failed);
1.45
1.46 }