summaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/debug.h b/src/debug.h
index a6b9baa..da63e8d 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -6,12 +6,12 @@
#define CODEINE_DEBUG_H
#include <kdebug.h>
-#include <qcstring.h>
-#include <qvariant.h>
+#include <ntqcstring.h>
+#include <ntqvariant.h>
#include <sys/time.h>
-class QApplication; ///@see Debug::Indent
-extern QApplication *qApp;
+class TQApplication; ///@see Debug::Indent
+extern TQApplication *tqApp;
/**
@@ -47,9 +47,9 @@ extern QApplication *qApp;
namespace Debug
{
- inline QCString &indent()
+ inline TQCString &indent()
{
- static QCString indent;
+ static TQCString indent;
return indent;
#if 0
static timeval *stamp = 0;
@@ -62,7 +62,7 @@ namespace Debug
gettimeofday( &now, 0 );
now.tv_sec -= stamp->tv_sec;
- QString time( "[%1:%2]" );
+ TQString time( "[%1:%2]" );
return time.arg( now.tv_sec / 60, 2 ).arg( now.tv_sec % 60, 2 ).latin1() + indent;
#endif
@@ -74,7 +74,7 @@ namespace Debug
static inline kndbgstream error() { return kndbgstream(); }
static inline kndbgstream fatal() { return kndbgstream(); }
- static inline void debug1( QVariant v ) {}
+ static inline void debug1( TQVariant v ) {}
typedef kndbgstream Stream;
#else
@@ -98,7 +98,7 @@ namespace Debug
static inline kdbgstream fatal() { return kdbgstream( indent(), 0, KDEBUG_FATAL ) << AMK_PREFIX; }
/// convenience function
- static inline void debug1( QVariant v ) { kdbgstream( indent(), 0, KDEBUG_INFO ) << v << endl; }
+ static inline void debug1( TQVariant v ) { kdbgstream( indent(), 0, KDEBUG_INFO ) << v << endl; }
typedef kdbgstream Stream;
@@ -121,7 +121,7 @@ using Debug::debug1;
#define DEBUG_BLOCK Debug::Block uniquelyNamedStackAllocatedStandardBlock( __PRETTY_FUNCTION__ );
#define DEBUG_INDENT Debug::indent() += " ";
-#define DEBUG_UNINDENT { QCString &s = Debug::indent(); s.truncate( s.length() - 2 ); }
+#define DEBUG_UNINDENT { TQCString &s = Debug::indent(); s.truncate( s.length() - 2 ); }
/// Use this to remind yourself to finish the implementation of a function
#define DEBUG_NOTIMPLEMENTED warning() << "NOT-IMPLEMENTED: " << __PRETTY_FUNCTION__ << endl;
@@ -187,7 +187,7 @@ namespace Debug
DEBUG_UNINDENT
kdDebug() << indent() << "END__: " << m_label
- << " - Took " << QString::number( duration, 'g', 3 ) << "s\n";
+ << " - Took " << TQString::number( duration, 'g', 3 ) << "s\n";
}
};
@@ -227,10 +227,10 @@ namespace Debug
* @class Debug::List
* @short You can pass anything to this and it will output it as a list
*
- * debug() << (Debug::List() << anInt << aString << aQStringList << aDouble) << endl;
+ * debug() << (Debug::List() << anInt << aString << aTQStringList << aDouble) << endl;
*/
- typedef QValueList<QVariant> List;
+ typedef TQValueList<TQVariant> List;
}
@@ -243,19 +243,19 @@ namespace Codeine
namespace MessageBox
{
- static inline void error( const QString &message )
+ static inline void error( const TQString &message )
{
- KMessageBox::error( (QWidget*)videoWindow(), message );
+ KMessageBox::error( (TQWidget*)videoWindow(), message );
}
- static inline void sorry( const QString &message )
+ static inline void sorry( const TQString &message )
{
- KMessageBox::error( (QWidget*)videoWindow(), message );
+ KMessageBox::error( (TQWidget*)videoWindow(), message );
}
- static inline void information( const QString &message, const QString &title )
+ static inline void information( const TQString &message, const TQString &title )
{
- KMessageBox::information( (QWidget*)videoWindow(), message, title );
+ KMessageBox::information( (TQWidget*)videoWindow(), message, title );
}
}
}