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

List:       kde-commits
Subject:    koffice/kspread
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2010-11-10 11:40:55
Message-ID: 20101110114055.5BCB5AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195103 by mkruisselbrink:

replcae kdbgstream with QDebug to compile with no deprecated code in kdelibs

 M  +1 -1      Cell.h  
 M  +4 -4      Damages.cpp  
 M  +4 -4      Damages.h  
 M  +1 -1      Region.h  
 M  +2 -2      Value.cpp  
 M  +2 -2      Value.h  


--- trunk/koffice/kspread/Cell.h #1195102:1195103
@@ -644,7 +644,7 @@
   kDebug support
 ****************************************************************************/
 
-inline kdbgstream operator<<(kdbgstream str, const KSpread::Cell& cell)
+inline QDebug operator<<(QDebug str, const KSpread::Cell& cell)
 {
     return str << qPrintable(KSpread::Cell::columnName(cell.column()) + QString::number(cell.row()));
 }
--- trunk/koffice/kspread/Damages.cpp #1195102:1195103
@@ -162,7 +162,7 @@
   kDebug support
 ****************************************************************************/
 
-kdbgstream operator<<(kdbgstream str, const KSpread::Damage& d)
+QDebug operator<<(QDebug str, const KSpread::Damage& d)
 {
     switch (d.type()) {
     case Damage::Nothing:   return str << "NoDamage";
@@ -176,7 +176,7 @@
     return str;
 }
 
-kdbgstream operator<<(kdbgstream str, const KSpread::CellDamage& d)
+QDebug operator<<(QDebug str, const KSpread::CellDamage& d)
 {
     str << "CellDamage: " << d.region().name(d.sheet());
     if (d.changes() & CellDamage::Appearance) str << " Appearance";
@@ -186,7 +186,7 @@
     return str;
 }
 
-kdbgstream operator<<(kdbgstream str, const KSpread::SheetDamage& d)
+QDebug operator<<(QDebug str, const KSpread::SheetDamage& d)
 {
     str << "SheetDamage: " << (d.sheet() ? d.sheet()->sheetName() : "NULL POINTER!");
     switch (d.changes()) {
@@ -202,7 +202,7 @@
     return str;
 }
 
-kdbgstream operator<<(kdbgstream str, const KSpread::SelectionDamage& d)
+QDebug operator<<(QDebug str, const KSpread::SelectionDamage& d)
 {
     str << "SelectionDamage: " << d.region().name();
     return str;
--- trunk/koffice/kspread/Damages.h #1195102:1195103
@@ -209,9 +209,9 @@
   kDebug support
 ****************************************************************************/
 
-KSPREAD_EXPORT kdbgstream operator<<(kdbgstream str, const KSpread::Damage& d);
-KSPREAD_EXPORT kdbgstream operator<<(kdbgstream str, const KSpread::CellDamage& d);
-KSPREAD_EXPORT kdbgstream operator<<(kdbgstream str, const KSpread::SheetDamage& d);
-KSPREAD_EXPORT kdbgstream operator<<(kdbgstream str, const KSpread::SelectionDamage& d);
+KSPREAD_EXPORT QDebug operator<<(QDebug str, const KSpread::Damage& d);
+KSPREAD_EXPORT QDebug operator<<(QDebug str, const KSpread::CellDamage& d);
+KSPREAD_EXPORT QDebug operator<<(QDebug str, const KSpread::SheetDamage& d);
+KSPREAD_EXPORT QDebug operator<<(QDebug str, const KSpread::SelectionDamage& d);
 
 #endif // KSPREAD_DAMAGES
--- trunk/koffice/kspread/Region.h #1195102:1195103
@@ -658,7 +658,7 @@
   kDebug support
 ****************************************************************************/
 
-inline kdbgstream operator<<(kdbgstream str, const KSpread::Region& r)
+inline QDebug operator<<(QDebug str, const KSpread::Region& r)
 {
     return str << qPrintable(r.name());
 }
--- trunk/koffice/kspread/Value.cpp #1195102:1195103
@@ -966,7 +966,7 @@
   kDebug support
 ****************************************************************************/
 
-kdbgstream operator<<(kdbgstream str, const KSpread::Value& v)
+QDebug operator<<(QDebug str, const KSpread::Value& v)
 {
     QString string;
     QTextStream stream(&string);
@@ -975,7 +975,7 @@
     return str;
 }
 
-kdbgstream operator<<(kdbgstream stream, const KSpread::Value::Format& f)
+QDebug operator<<(QDebug stream, const KSpread::Value::Format& f)
 {
     switch (f) {
     case KSpread::Value::fmt_None:     stream << "None";     break;
--- trunk/koffice/kspread/Value.h #1195102:1195103
@@ -524,7 +524,7 @@
   kDebug support
 ****************************************************************************/
 
-KSPREAD_EXPORT kdbgstream operator<<(kdbgstream str, const KSpread::Value& v);
-kdbgstream operator<<(kdbgstream stream, const KSpread::Value::Format& f);
+KSPREAD_EXPORT QDebug operator<<(QDebug str, const KSpread::Value& v);
+QDebug operator<<(QDebug stream, const KSpread::Value::Format& f);
 
 #endif // KSPREAD_VALUE_H
[prev in list] [next in list] [prev in thread] [next in thread] 

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