X-Git-Url: https://ruin.nu/git/?p=adress.git;a=blobdiff_plain;f=mainwindow.cpp;h=69131c7eb461414b489ba474135557dd62d7eb95;hp=f07283884ccbb285d906bbc5b305dd0c7a7f8fcc;hb=f1cfda04868abf531fa4003c3bd2a3243960fa72;hpb=1848a0d627c26c1cd949a82af05924697a1d25a9 diff --git a/mainwindow.cpp b/mainwindow.cpp index f072838..69131c7 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2,6 +2,7 @@ #include #include "contactmodifyer.h" +#include "searchresult.h" /* BRÖÖL * Constructs a MainWindow which is a child of 'parent', with the @@ -118,7 +119,7 @@ void MainWindow::slotLoad() QString adr = t.readLine(); QString pn = t.readLine(); if (fname == "" && lname == "" && lname == "" && pn == "") - continue; + continue; (void) new CContact(fname, lname, adr, pn); } updateView(); @@ -128,7 +129,12 @@ void MainWindow::slotLoad() */ void MainWindow::slotSearch() { - qWarning( "MainWindow::slotSearch() not yet implemented!" ); + if (SearchLine->text().isNull()) + return; + + SearchResult search(SearchLine->text(), SearchCombo->currentItem() + 1); + search.show(); + updateView(); } void MainWindow::slotModify(QListViewItem* lvi)