diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/urlhandlermanager.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/urlhandlermanager.cpp')
-rw-r--r-- | kmail/urlhandlermanager.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/urlhandlermanager.cpp b/kmail/urlhandlermanager.cpp index d788add0f..e1707b1ba 100644 --- a/kmail/urlhandlermanager.cpp +++ b/kmail/urlhandlermanager.cpp @@ -20,11 +20,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -53,7 +53,7 @@ #include <algorithm> using std::for_each; using std::remove; -using std::find; +using std::tqfind; KMail::URLHandlerManager * KMail::URLHandlerManager::self = 0; @@ -116,7 +116,7 @@ namespace { bool handleContextMenuRequest( const KURL &, const TQPoint &, KMReaderWin * ) const { return false; } - TQString statusBarMessage( const KURL &, KMReaderWin * ) const { return TQString::null; } + TQString statusBarMessage( const KURL &, KMReaderWin * ) const { return TQString(); } }; class AttachmentURLHandler : public KMail::URLHandler { @@ -274,7 +274,7 @@ TQString KMail::URLHandlerManager::BodyPartURLHandlerManager::statusBarMessage( TQString path; partNode * node = partNodeFromXKMailUrl( url, w, &path ); if ( !node ) - return TQString::null; + return TQString(); KMail::PartNodeBodyPart part( *node, w->overrideCodec() ); for ( BodyPartHandlerList::const_iterator it = mHandlers.begin() ; it != mHandlers.end() ; ++it ) { @@ -282,7 +282,7 @@ TQString KMail::URLHandlerManager::BodyPartURLHandlerManager::statusBarMessage( if ( !msg.isEmpty() ) return msg; } - return TQString::null; + return TQString(); } // @@ -377,7 +377,7 @@ TQString KMail::URLHandlerManager::statusBarMessage( const KURL & url, KMReaderW if ( !msg.isEmpty() ) return msg; } - return TQString::null; + return TQString(); } @@ -495,7 +495,7 @@ namespace { if ( url.path() == "showAttachmentQuicklist" ) return i18n( "Show attachment list" ); } - return TQString::null ; + return TQString() ; } } @@ -532,7 +532,7 @@ namespace { } } } - return TQString::null ; + return TQString() ; } } @@ -560,7 +560,7 @@ namespace { TQString SMimeURLHandler::statusBarMessage( const KURL & url, KMReaderWin * ) const { TQString displayName, libName, keyId; if ( !foundSMIMEData( url.path() + '#' + url.ref(), displayName, libName, keyId ) ) - return TQString::null; + return TQString(); return i18n("Show certificate 0x%1").arg( keyId ); } } @@ -578,7 +578,7 @@ namespace { namespace { TQString MailToURLHandler::statusBarMessage( const KURL & url, KMReaderWin * ) const { if ( url.protocol() != "mailto" ) - return TQString::null; + return TQString(); return KMMessage::decodeMailtoUrl( url.url() ); } } @@ -605,7 +605,7 @@ namespace { { bool inHeader = false; const TQString place = url.queryItem( "place" ).lower(); - if ( place != TQString::null ) { + if ( place != TQString() ) { inHeader = ( place == "header" ); } return inHeader; @@ -682,7 +682,7 @@ namespace { { partNode * node = partNodeForUrl( url, w ); if ( !node ) - return TQString::null; + return TQString(); const KMMessagePart & msgPart = node->msgPart(); TQString name = msgPart.fileName(); @@ -752,7 +752,7 @@ namespace { namespace { bool FallBackURLHandler::handleClick( const KURL & url, KMReaderWin * w ) const { if ( w ) - w->emitUrlClicked( url, Qt::LeftButton ); + w->emitUrlClicked( url, TQt::LeftButton ); return true; } |