[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdetoys/kaphorism
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2003-02-27 15:21:08
[Download RAW message or body]

CVS commit by antlarr: 

Less comparisons to "", also replaced some printf with kdDebug
CCMAIL: h.dijkema@hum.org


  M +5 -4      kaphorism_widget.cpp   1.6


--- kdetoys/kaphorism/kaphorism_widget.cpp  #1.5:1.6
@@ -5,4 +5,5 @@
 #include <kaboutapplication.h>
 #include <klocale.h>
+#include <kdebug.h>
 
 #include "kaphorism.h"
@@ -112,6 +113,6 @@ void kaphorism_widget::setChoices(void)
 int i;
 QString s;
-  for(i=0;(s=choice(i))!="";i++) {
-    printf("%s\n",s.latin1());
+  for(i=0;!(s=choice(i)).isEmpty();i++) {
+    kdDebug() << s << endl;
     menu->insertItem(s,i+10);
   }
@@ -121,7 +122,7 @@ void kaphorism_widget::choose(int choice
 {
   if (choice>=10) {QString c;
-    printf("%d\n",choice);
+    kdDebug() << choice << endl;
     c=menu->text(choice);
-    printf("%s\n",c.latin1());
+    kdDebug() << c << endl;
     choose(c);
     loadNew(c);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic