From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kapptemplate/kpartplugin/plugin_app.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kapptemplate/kpartplugin/plugin_app.cpp') diff --git a/kapptemplate/kpartplugin/plugin_app.cpp b/kapptemplate/kpartplugin/plugin_app.cpp index 71c68bc7..0ec7a273 100644 --- a/kapptemplate/kpartplugin/plugin_app.cpp +++ b/kapptemplate/kpartplugin/plugin_app.cpp @@ -13,14 +13,14 @@ typedef KGenericFactory ${APP_NAME}Factory; K_EXPORT_COMPONENT_FACTORY( lib${APP_NAME_LC}plugin, ${APP_NAME}Factory( "${APP_NAME_LC}" ) ); -Plugin${APP_NAME}::Plugin${APP_NAME}( QObject* parent, const char* name, - const QStringList & /*args*/ ) +Plugin${APP_NAME}::Plugin${APP_NAME}( TQObject* parent, const char* name, + const TQStringList & /*args*/ ) : Plugin( parent, name ) { // Instantiate all of your actions here. These will appear in // Konqueror's menu and toolbars. (void) new KAction( i18n("&Plugin Action"), "${APP_NAME_LC}", 0, - this, SLOT(slotAction()), + this, TQT_SLOT(slotAction()), actionCollection(), "plugin_action" ); } @@ -35,8 +35,8 @@ void Plugin${APP_NAME}::slotAction() // change the following block. if ( !parent()->inherits("KHTMLPart") ) { - QString title( i18n( "Cannot Translate Source" ) ); - QString text( i18n( "You cannot translate anything except web pages " + TQString title( i18n( "Cannot Translate Source" ) ); + TQString text( i18n( "You cannot translate anything except web pages " "with this plugin." ) ); KMessageBox::sorry( 0, text, title ); @@ -55,8 +55,8 @@ void Plugin${APP_NAME}::slotAction() // valid URL if ( !url.isValid() ) { - QString title( i18n( "Malformed URL" ) ); - QString text( i18n( "The URL you entered is not valid, please " + TQString title( i18n( "Malformed URL" ) ); + TQString text( i18n( "The URL you entered is not valid, please " "correct it and try again." ) ); KMessageBox::sorry( 0, text, title ); @@ -69,7 +69,7 @@ void Plugin${APP_NAME}::slotAction() // BEGIN KURL work( "http://babel.altavista.com/translate.dyn" ); - QString query( "urltext=" ); + TQString query( "urltext=" ); query += KURL::encode_string( url.url() ); work.setQuery( query ); // END -- cgit v1.2.1