#include "contact.h"
#include <iostream>
-/*
+/* BRÖÖL
* Constructs a MainWindow which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
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++;