]> ruin.nu Git - adress.git/blobdiff - mainwindow.cpp
meckat lite
[adress.git] / mainwindow.cpp
index 0bafd08875f68a66eff8ac0b0ecb784c7b150999..97c8a71dc1c2ef56f02dbd2b96236056d7065318 100644 (file)
@@ -7,7 +7,7 @@
 #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' 
  */
@@ -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++;