Fixed the numbering in ContactView. The old sprintf is trustfull.
authorMichael Andreen <harv@ruin.nu>
Fri, 1 Dec 2000 18:32:32 +0000 (18:32 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 1 Dec 2000 18:32:32 +0000 (18:32 +0000)
mainwindow.cpp

index 0bafd08..aff0dea 100644 (file)
@@ -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++;