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

List:       kde-commits
Subject:    koffice/kexi/core
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2008-12-08 19:09:18
Message-ID: 1228763358.494623.14693.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 894494 by staniek:

use kDebug()


 M  +1 -1      KexiView.cpp  
 M  +8 -8      KexiWindow.cpp  
 M  +2 -2      kexidbconnectionset.cpp  
 M  +3 -3      kexidbshortcutfile.cpp  
 M  +3 -3      kexipart.cpp  
 M  +5 -5      kexiproject.cpp  
 M  +1 -1      kexiprojectset.cpp  


--- trunk/koffice/kexi/core/KexiView.cpp #894493:894494
@@ -421,7 +421,7 @@
     if (e->type() == QEvent::FocusIn || e->type() == QEvent::FocusOut) {// && \
o->inherits("QWidget")) {  //  //hp==true if currently focused widget is a child of \
this table view  //  const bool hp = Kexi::hasParent( static_cast<QWidget*>(o), \
                focusWidget());
-        kexidbg << "KexiView::eventFilter(): this=[" << o->metaObject()->className()
+        kDebug() << "this=[" << o->metaObject()->className()
         << " " << objectName() << "] o=[" << o->metaObject()->className() << " " << \
                o->objectName()
         << "] focusWidget=[" << (qApp->focusWidget() ? \
                qApp->focusWidget()->metaObject()->className() : QString()) << " "
         << (qApp->focusWidget() ? qApp->focusWidget()->objectName() : QString()) << \
                "] ev.type=" << e->type();
--- trunk/koffice/kexi/core/KexiWindow.cpp #894493:894494
@@ -586,7 +586,7 @@
             return res;
     }
 
-    kexidbg;
+    kDebug();
     bool dontStore = false;
     KexiView *view = selectedView();
 
@@ -859,7 +859,7 @@
         //this part's ID is not stored within kexi__parts:
         KexiDB::TableSchema *ts =
             project->dbConnection()->tableSchema("kexi__parts");
-        kexidbg << "schema: " << ts;
+        kDebug() << "schema: " << ts;
         if (!ts)
             return false;
 
@@ -884,15 +884,15 @@
         }
 
         KexiDB::FieldList *fl = ts->subList("p_id", "p_name", "p_mime", "p_url");
-        kexidbg << "fieldlist: "
+        kDebug() << "fieldlist: "
         << (fl ? fl->debugString() : QString());
         if (!fl)
             return false;
 
-        kexidbg << part()->info()->ptr()->untranslatedGenericName();
+        kDebug() << part()->info()->ptr()->untranslatedGenericName();
 //  QStringList sl = part()->info()->ptr()->propertyNames();
 //  for (QStringList::ConstIterator it=sl.constBegin();it!=sl.constEnd();++it)
-//   kexidbg << *it << " " << part()->info()->ptr()->property(*it).toString();
+//   kDebug() << *it << " " << part()->info()->ptr()->property(*it).toString();
         if (!project->dbConnection()->insertRecord(
                     *fl,
                     QVariant(p_id),
@@ -901,10 +901,10 @@
                     QVariant(part()->info()->partClass() /*always ok?*/)))
             return false;
 
-        kexidbg << "insert success!";
+        kDebug() << "insert success!";
         part()->info()->setProjectPartID(p_id);
         //(int) project()->dbConnection()->lastInsertedAutoIncValue("p_id", \
                "kexi__parts"));
-        kexidbg << "new id is: " << part()->info()->projectPartID();
+        kDebug() << "new id is: " << part()->info()->projectPartID();
 
         part()->info()->setIdStoredInPartDatabase(true);
     }
@@ -961,7 +961,7 @@
 void KexiWindow::activate()
 {
     KexiView *v = selectedView();
-    //kexidbg << "focusWidget(): " << focusWidget()->name();
+    //kDebug() << "focusWidget(): " << focusWidget()->name();
 #ifdef __GNUC__
 #warning TODO KexiWindow::activate() OK instead of focusedChildWidget()?
 #else
--- trunk/koffice/kexi/core/kexidbconnectionset.cpp #894493:894494
@@ -149,11 +149,11 @@
 {
     clear();
 // QStringList dirs( KGlobal::dirs()->findDirs("data", "kexi/connections") );
-// kexidbg << dirs;
+// kDebug() << dirs;
     QStringList files(KGlobal::dirs()->findAllResources("data", \
"kexi/connections/*.kexic"));  // //also try for capital file extension
 // files += KGlobal::dirs()->findAllResources("data", "kexi/connections/*.KEXIC");
-// kexidbg << files;
+// kDebug() << files;
 
     foreach(const QString& file, files) {
         KexiDB::ConnectionData *data = new KexiDB::ConnectionData();
--- trunk/koffice/kexi/core/kexidbshortcutfile.cpp #894493:894494
@@ -106,7 +106,7 @@
         return false;
     }
 
-    /* kexidbg << "version=" << version
+    /* kDebug() << "version=" << version
         << " using group key=" << groupKey
         << " type=" << type
         << " caption=" << cg.readEntry("caption")
@@ -293,11 +293,11 @@
 {
     set.clear();
 // QStringList dirs( KGlobal::dirs()->findDirs("data", "kexi/connections") );
-// kexidbg << dirs;
+// kDebug() << dirs;
     QStringList files(KGlobal::dirs()->findAllResources("data", \
"kexi/connections/*.kexic"));  // //also try for capital file extension
 // files += KGlobal::dirs()->findAllResources("data", "kexi/connections/*.KEXIC");
-    kexidbg << files;
+    kDebug() << files;
 
     foreach(QStringList::ConstIterator, it, files) {
         KexiDB::ConnectionData *data = new KexiDB::ConnectionData();
--- trunk/koffice/kexi/core/kexipart.cpp #894493:894494
@@ -191,7 +191,7 @@
 {
     GUIClient *instanceGuiClient = d->instanceGuiClients.value((int)mode);
     if (!instanceGuiClient) {
-        kexidbg << "KexiPart::createSharedAction(): no gui client for mode " << mode \
<< "!"; +        kDebug() << "no gui client for mode " << mode << "!";
         return 0;
     }
     return KexiMainWindowIface::global()->createSharedAction(text, pix_name, cut, \
name, @@ -224,7 +224,7 @@
 {
   GUIClient *instanceGuiClient = d->instanceGuiClients[mode];
   if (!instanceGuiClient) {
-    kexidbg << "KexiPart::createSharedAction(): no gui client for mode " << mode << \
"!"; +    kDebug() << "no gui client for mode " << mode << "!";
     return 0;
   }
   return instanceGuiClient->actionCollection()->action(name, classname);
@@ -365,7 +365,7 @@
         window->selectedView()->setDirty(
             internalPropertyValue("newObjectsAreDirty", false).toBool() ? \
item.neverSaved() : false);  
-    kexidbg << "Part::openInstance() window returned.";
+    kDebug() << "window returned.";
     return window;
 }
 
--- trunk/koffice/kexi/core/kexiproject.cpp #894493:894494
@@ -1144,14 +1144,14 @@
     if (!ts)
         return false;
     KexiDB::FieldList *fl = ts->subList("p_id", "p_name", "p_mime", "p_url");
-    kexidbg << "fieldlist: " << (fl ? fl->debugString() : QString());
+    kDebug() << "fieldlist: " << (fl ? fl->debugString() : QString());
     if (!fl)
         return false;
 
-    kexidbg << info.ptr()->untranslatedGenericName();
+    kDebug() << info.ptr()->untranslatedGenericName();
 //  QStringList sl = part()->info()->ptr()->propertyNames();
 //  for (QStringList::ConstIterator it=sl.constBegin();it!=sl.constEnd();++it)
-//   kexidbg << *it << " " << part()->info()->ptr()->property(*it).toString();
+//   kDebug() << *it << " " << part()->info()->ptr()->property(*it).toString();
     if (!d->connection->insertRecord(
                 *fl,
                 QVariant(p_id),
@@ -1162,11 +1162,11 @@
         return false;
     }
 
-    kexidbg << "insert success!";
+    kDebug() << "insert success!";
     d->saveClassId(info.partClass(), p_id);
 //    part()->info()->setProjectPartID(p_id);
     //(int) project()->dbConnection()->lastInsertedAutoIncValue("p_id", \
                "kexi__parts"));
-    kexidbg << "new id is: " << p_id;
+    kDebug() << "new id is: " << p_id;
 
 //    part()->info()->setIdStoredInPartDatabase(true);
     return true;
--- trunk/koffice/kexi/core/kexiprojectset.cpp #894493:894494
@@ -66,7 +66,7 @@
         return;
     }
     QStringList dbnames = conn->databaseNames(false/*skip system*/);
-// kexidbg << dbnames.count();
+// kDebug() << dbnames.count();
     if (conn->error()) {
         setError(conn);
         delete conn;


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

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