X-Git-Url: https://ruin.nu/git/?p=adress.git;a=blobdiff_plain;f=mainwindow.cpp;h=97c8a71dc1c2ef56f02dbd2b96236056d7065318;hp=34c431e11cf94ee3c24fd49732297b5780b76265;hb=e23c6cb03fe262ee52e7b34803ce0dc0233e42a3;hpb=e2721b2f5b828bf44923e249832c298972e8413f diff --git a/mainwindow.cpp b/mainwindow.cpp index 34c431e..97c8a71 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -7,7 +7,7 @@ #include "contact.h" #include -/* +/* BRÖÖL * Constructs a MainWindow which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */ @@ -91,11 +91,11 @@ void MainWindow::updateView() CContact* contact = CContact::getFirst(); int i = 1; - QString s; + char s[100]; while (contact != '\0') { - s = i; + sprintf(s,"%i",i);//.arg(i); (void) new QListViewItem(ContactView, s, contact->lastname(), contact->firstname(), contact->adress(), contact->phoneNumber()); contact = contact->getNext(); i++;