X-Git-Url: https://ruin.nu/git/?p=adress.git;a=blobdiff_plain;f=mainwindow.cpp;h=97c8a71dc1c2ef56f02dbd2b96236056d7065318;hp=0bafd08875f68a66eff8ac0b0ecb784c7b150999;hb=e23c6cb03fe262ee52e7b34803ce0dc0233e42a3;hpb=d959497b3c1b469d5e7bfcc161198823ca8e7a4d diff --git a/mainwindow.cpp b/mainwindow.cpp index 0bafd08..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.sprintf("%1").arg(i); + sprintf(s,"%i",i);//.arg(i); (void) new QListViewItem(ContactView, s, contact->lastname(), contact->firstname(), contact->adress(), contact->phoneNumber()); contact = contact->getNext(); i++;