summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/bug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/backend/bug.cpp')
-rw-r--r--kbugbuster/backend/bug.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kbugbuster/backend/bug.cpp b/kbugbuster/backend/bug.cpp
index aaa61273..edb94744 100644
--- a/kbugbuster/backend/bug.cpp
+++ b/kbugbuster/backend/bug.cpp
@@ -23,7 +23,7 @@ Bug::Bug( const Bug &other )
Bug Bug::fromNumber( const TQString &bugNumber )
{
- return new BugImpl( TQString::null, Person(), bugNumber, 0xFFFFFFFF, Normal, Person(),
+ return new BugImpl( TQString(), Person(), bugNumber, 0xFFFFFFFF, Normal, Person(),
Unconfirmed, Bug::BugMergeList() );
}
@@ -56,16 +56,16 @@ TQString Bug::severityLabel( Bug::Severity s )
TQString Bug::severityToString( Bug::Severity s )
{
switch ( s ) {
- case Critical: return TQString::fromLatin1( "critical" );
- case Grave: return TQString::fromLatin1( "grave" );
- case Major: return TQString::fromLatin1( "major" );
- case Crash: return TQString::fromLatin1( "crash" );
- case Normal: return TQString::fromLatin1( "normal" );
- case Minor: return TQString::fromLatin1( "minor" );
- case Wishlist: return TQString::fromLatin1( "wishlist" );
+ case Critical: return TQString::tqfromLatin1( "critical" );
+ case Grave: return TQString::tqfromLatin1( "grave" );
+ case Major: return TQString::tqfromLatin1( "major" );
+ case Crash: return TQString::tqfromLatin1( "crash" );
+ case Normal: return TQString::tqfromLatin1( "normal" );
+ case Minor: return TQString::tqfromLatin1( "minor" );
+ case Wishlist: return TQString::tqfromLatin1( "wishlist" );
default:
kdWarning() << "Bug::severityToString invalid severity " << s << endl;
- return TQString::fromLatin1( "<invalid>" );
+ return TQString::tqfromLatin1( "<invalid>" );
}
}
@@ -95,7 +95,7 @@ TQValueList<Bug::Severity> Bug::severities()
return s;
}
-TQString Bug::statusLabel( Bug::Status s )
+TQString Bug::statusLabel( Bug::tqStatus s )
{
switch ( s )
{
@@ -109,21 +109,21 @@ TQString Bug::statusLabel( Bug::Status s )
}
}
-TQString Bug::statusToString( Bug::Status s )
+TQString Bug::statusToString( Bug::tqStatus s )
{
switch ( s ) {
- case Unconfirmed: return TQString::fromLatin1( "unconfirmed" );
- case New: return TQString::fromLatin1( "new" );
- case Assigned: return TQString::fromLatin1( "assigned" );
- case Reopened: return TQString::fromLatin1( "reopened" );
- case Closed: return TQString::fromLatin1( "closed" );
+ case Unconfirmed: return TQString::tqfromLatin1( "unconfirmed" );
+ case New: return TQString::tqfromLatin1( "new" );
+ case Assigned: return TQString::tqfromLatin1( "assigned" );
+ case Reopened: return TQString::tqfromLatin1( "reopened" );
+ case Closed: return TQString::tqfromLatin1( "closed" );
default:
kdWarning() << "Bug::statusToString invalid status " << s << endl;
- return TQString::fromLatin1( "<invalid>" );
+ return TQString::tqfromLatin1( "<invalid>" );
}
}
-Bug::Status Bug::stringToStatus( const TQString &s, bool *ok )
+Bug::tqStatus Bug::stringTotqStatus( const TQString &s, bool *ok )
{
if ( ok )
*ok = true;
@@ -134,7 +134,7 @@ Bug::Status Bug::stringToStatus( const TQString &s, bool *ok )
else if ( s == "reopened" ) return Reopened;
else if ( s == "closed" ) return Closed;
- kdWarning() << "Bug::stringToStatus: invalid status: " << s << endl;
+ kdWarning() << "Bug::stringTotqStatus: invalid status: " << s << endl;
if ( ok )
*ok = false;
return StatusUndefined;
@@ -143,7 +143,7 @@ Bug::Status Bug::stringToStatus( const TQString &s, bool *ok )
TQString Bug::title() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->title;
}
@@ -171,7 +171,7 @@ void Bug::setAge( uint age )
struct Person Bug::submitter() const
{
if ( !m_impl )
- return Person( TQString::null, TQString::null );
+ return Person( TQString(), TQString() );
return m_impl->submitter;
}
@@ -179,7 +179,7 @@ struct Person Bug::submitter() const
TQString Bug::number() const
{
if ( !m_impl )
- return TQString::null;
+ return TQString();
return m_impl->number;
}
@@ -207,7 +207,7 @@ Bug::BugMergeList Bug::mergedWith() const
}
-Bug::Status Bug::status() const
+Bug::tqStatus Bug::status() const
{
if ( !m_impl )
return StatusUndefined;
@@ -222,7 +222,7 @@ TQString Bug::severityAsString() const
Person Bug::developerTODO() const
{
- return (m_impl == NULL) ? Person( TQString::null, TQString::null ) :
+ return (m_impl == NULL) ? Person( TQString(), TQString() ) :
m_impl->developerTODO;
}