Use QDebug instead of kdbgstream

svn path=/trunk/KDE/kdegraphics/okular/; revision=694533
remotes/origin/KDE/4.0
Thiago Macieira 19 years ago
parent 6254f609d8
commit 000dc825e3
  1. 6
      core/area.cpp
  2. 8
      core/area.h
  3. 2
      core/generator.cpp
  4. 5
      core/generator.h

@ -44,7 +44,7 @@ void NormalizedPoint::transform( const QMatrix &matrix )
matrix.map( x, y, &x, &y );
}
kdbgstream& operator<<( kdbgstream& str, const Okular::NormalizedPoint& p )
QDebug operator<<( QDebug str, const Okular::NormalizedPoint& p )
{
str << "NormPt(" << p.x << "," << p.y << ")";
return str;
@ -140,7 +140,7 @@ bool NormalizedRect::operator==( const NormalizedRect & r ) const
}
/*
kdbgstream& operator << (kdbgstream& str , const NormalizedRect &r)
QDebug operator << (QDebug str , const NormalizedRect &r)
{
str << "[" <<r.left() << "," << r.top() << "] x "<< "[" <<r.right() << "," << r.bottom() << "]";
return str;
@ -167,7 +167,7 @@ void NormalizedRect::transform( const QMatrix &matrix )
bottom = rect.bottom();
}
kdbgstream& operator<<( kdbgstream& str, const Okular::NormalizedRect& r )
QDebug operator<<( QDebug str, const Okular::NormalizedRect& r )
{
str << "NormRect(" << r.left << "," << r.top << " x " << ( r.right - r.left ) << "+" << ( r.bottom - r.top ) << ")";
return str;

@ -13,12 +13,12 @@
#include <QtCore/QList>
#include <QtGui/QColor>
#include <QtGui/QPainterPath>
#include <kdebug.h>
#include <okular/core/okular_export.h>
class QPolygonF;
class QRect;
class kdbgstream;
namespace Okular {
@ -724,14 +724,16 @@ class HighlightAreaRect : public RegularAreaRect
}
#ifndef QT_NO_DEBUG_STREAM
/**
* Debug operator for normalized @p point.
*/
OKULAR_EXPORT kdbgstream& operator<<( kdbgstream& str, const Okular::NormalizedPoint &point );
OKULAR_EXPORT QDebug operator<<( QDebug str, const Okular::NormalizedPoint &point );
/**
* Debug operator for normalized @p rect.
*/
OKULAR_EXPORT kdbgstream& operator<<( kdbgstream& str, const Okular::NormalizedRect &rect );
OKULAR_EXPORT QDebug operator<<( QDebug str, const Okular::NormalizedRect &rect );
#endif
#endif

@ -456,7 +456,7 @@ bool ExportFormat::operator!=( const ExportFormat &other ) const
return d != other.d;
}
kdbgstream& operator<<( kdbgstream &str, const Okular::PixmapRequest &req )
QDebug operator<<( QDebug str, const Okular::PixmapRequest &req )
{
QString s = QString( "%1 PixmapRequest (id: %2) (%3x%4), prio %5, pageNo %6" )
.arg( QString( req.asynchronous() ? "Async" : "Sync" ) )

@ -35,7 +35,6 @@ class KAboutData;
class KComponentData;
class KIcon;
class KPrinter;
class kdbgstream;
namespace Okular {
@ -546,6 +545,8 @@ class OKULAR_EXPORT PixmapRequest
}
kdbgstream& operator<<( kdbgstream &str, const Okular::PixmapRequest &req );
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<( QDebug str, const Okular::PixmapRequest &req );
#endif
#endif

Loading…
Cancel
Save