summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/bugdetails.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kbugbuster/backend/bugdetails.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/backend/bugdetails.cpp')
-rw-r--r--kbugbuster/backend/bugdetails.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kbugbuster/backend/bugdetails.cpp b/kbugbuster/backend/bugdetails.cpp
index d1ce4666..5dcfbcd4 100644
--- a/kbugbuster/backend/bugdetails.cpp
+++ b/kbugbuster/backend/bugdetails.cpp
@@ -35,7 +35,7 @@ BugDetails::~BugDetails()
TQString BugDetails::version() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->version;
}
@@ -43,7 +43,7 @@ TQString BugDetails::version() const
TQString BugDetails::source() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->source;
}
@@ -51,7 +51,7 @@ TQString BugDetails::source() const
TQString BugDetails::compiler() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->compiler;
}
@@ -59,7 +59,7 @@ TQString BugDetails::compiler() const
TQString BugDetails::os() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->os;
}
@@ -79,7 +79,7 @@ int BugDetails::age() const
if ( !m_impl )
return 0;
- return submissionDate().daysTo( TQDateTime::currentDateTime() );
+ return submissionDate().daysTo( TQDateTime::tqcurrentDateTime() );
}
BugDetailsPart::List BugDetails::parts() const
@@ -181,7 +181,7 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
kdDebug() << "BugDetails::extractAttachments found header " << *rit << endl;
#endif
// Taken from libkdenetwork/kmime_headers.cpp
- int pos=header.find("filename=", 0, false);
+ int pos=header.tqfind("filename=", 0, false);
TQString fn;
if(pos>-1) {
pos+=9;
@@ -226,12 +226,12 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
break;
if ( line == boundary+"--" ) // end of last attachment
{
- boundary = TQString::null;
+ boundary = TQString();
break;
}
contents += line; // no newline, because of linebreaking between <br and />
}
- contents = contents.replace( TQRegExp("<br */>"), TQString::null );
+ contents = contents.tqreplace( TQRegExp("<br */>"), TQString() );
#ifdef DEBUG_EXTRACT
kdDebug() << "BugDetails::extractAttachments contents=***\n" << contents << "\n***" << endl;
#endif
@@ -241,7 +241,7 @@ TQValueList<BugDetails::Attachment> BugDetails::extractAttachments( const TQStri
KCodecs::base64Decode( contents.local8Bit(), a.contents /*out*/ );
else
//KCodecs::uudecode( contents.local8Bit(), a.contents /*out*/ );
- KMessageBox::information( 0, i18n("Attachment %1 could not be decoded.\nEncoding: %2").arg(filename).arg(encoding) );
+ KMessageBox::information( 0, i18n("Attachment %1 could not be decoded.\nEncoding: %2").tqarg(filename).tqarg(encoding) );
#ifdef DEBUG_EXTRACT
kdDebug() << "Result: ***\n" << TQCString( a.contents.data(), a.contents.size()+1 ) << "\n*+*" << endl;
#endif