diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:50:38 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:50:38 -0600 |
commit | d6331f1b56eb6dca7a1950658b2932f208015da0 (patch) | |
tree | f99bf8d1571f93304bdb4a46fb199a1bde60e6ee /kbugbuster/backend/bug.cpp | |
parent | e738fee8847c1f606df7b338a589cc8c0539a521 (diff) | |
download | tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.tar.gz tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kbugbuster/backend/bug.cpp')
-rw-r--r-- | kbugbuster/backend/bug.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kbugbuster/backend/bug.cpp b/kbugbuster/backend/bug.cpp index c2328122..ec249ef7 100644 --- a/kbugbuster/backend/bug.cpp +++ b/kbugbuster/backend/bug.cpp @@ -56,16 +56,16 @@ TQString Bug::severityLabel( Bug::Severity s ) TQString Bug::severityToString( Bug::Severity s ) { switch ( s ) { - 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" ); + 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" ); default: kdWarning() << "Bug::severityToString invalid severity " << s << endl; - return TQString::tqfromLatin1( "<invalid>" ); + return TQString::fromLatin1( "<invalid>" ); } } @@ -95,7 +95,7 @@ TQValueList<Bug::Severity> Bug::severities() return s; } -TQString Bug::statusLabel( Bug::tqStatus s ) +TQString Bug::statusLabel( Bug::Status s ) { switch ( s ) { @@ -109,21 +109,21 @@ TQString Bug::statusLabel( Bug::tqStatus s ) } } -TQString Bug::statusToString( Bug::tqStatus s ) +TQString Bug::statusToString( Bug::Status s ) { switch ( s ) { - 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" ); + 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" ); default: kdWarning() << "Bug::statusToString invalid status " << s << endl; - return TQString::tqfromLatin1( "<invalid>" ); + return TQString::fromLatin1( "<invalid>" ); } } -Bug::tqStatus Bug::stringTotqStatus( const TQString &s, bool *ok ) +Bug::Status Bug::stringToStatus( const TQString &s, bool *ok ) { if ( ok ) *ok = true; @@ -207,7 +207,7 @@ Bug::BugMergeList Bug::mergedWith() const } -Bug::tqStatus Bug::status() const +Bug::Status Bug::status() const { if ( !m_impl ) return StatusUndefined; |