summaryrefslogtreecommitdiffstats
path: root/korganizer/urihandler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/urihandler.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-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 'korganizer/urihandler.cpp')
-rw-r--r--korganizer/urihandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/korganizer/urihandler.cpp b/korganizer/urihandler.cpp
index 0c406318e..7caad0e34 100644
--- a/korganizer/urihandler.cpp
+++ b/korganizer/urihandler.cpp
@@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include "urihandler.h"
@@ -69,7 +69,7 @@ TQString UriHandler::uidFromUri( const TQString &uri )
return tmp;
}
-bool UriHandler::process( TQWidget *parent, const TQString &uri )
+bool UriHandler::process( TQWidget *tqparent, const TQString &uri )
{
kdDebug(5850) << "UriHandler::process(): " << uri << endl;
@@ -80,10 +80,10 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri )
kapp->startServiceByDesktopPath("kmail");
// parse string, show
- int colon = uri.find( ':' );
+ int colon = uri.tqfind( ':' );
// extract 'number' from 'kmail:<number>/<id>'
TQString serialNumberStr = uri.mid( colon + 1 );
- serialNumberStr = serialNumberStr.left( serialNumberStr.find( '/' ) );
+ serialNumberStr = serialNumberStr.left( serialNumberStr.tqfind( '/' ) );
KMailIface_stub kmailIface( "kmail", "KMailIface" );
kmailIface.showMail( serialNumberStr.toUInt(), TQString() );
@@ -91,7 +91,7 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri )
} else if ( uri.startsWith( "mailto:" ) ) {
- KApplication::kApplication()->invokeMailer( uri.mid(7), TQString::null );
+ KApplication::kApplication()->invokeMailer( uri.mid(7), TQString() );
return true;
} else if ( uri.startsWith( "uid:" ) ) {
@@ -127,7 +127,7 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri )
} else if ( uri.startsWith( "ATTACH:" ) ) {
// a calendar incidence attachment
- return AttachmentHandler::view( parent, attachmentNameFromUri( uri ), uidFromUri( uri ) );
+ return AttachmentHandler::view( tqparent, attachmentNameFromUri( uri ), uidFromUri( uri ) );
} else { // no special URI, let KDE handle it
new KRun( KURL( uri ) );