summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kpartplugin/plugin_app.cpp')
-rw-r--r--languages/cpp/app_templates/kpartplugin/plugin_app.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
index a9ee55a3..61e3ca0e 100644
--- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
+++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp
@@ -8,13 +8,13 @@
#include <klocale.h>
#include <kglobal.h>
-Plugin%{APPNAME}::Plugin%{APPNAME}( QObject* parent, const char* name )
+Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* parent, const char* name )
: Plugin( parent, name )
{
// Instantiate all of your actions here. These will appear in
// Konqueror's menu and toolbars.
(void) new KAction( i18n("&Plugin Action"), "%{APPNAMELC}", 0,
- this, SLOT(slotAction()),
+ this, TQT_SLOT(slotAction()),
actionCollection(), "plugin_action" );
}
@@ -29,8 +29,8 @@ void Plugin%{APPNAME}::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 );
@@ -49,8 +49,8 @@ void Plugin%{APPNAME}::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 );
@@ -63,7 +63,7 @@ void Plugin%{APPNAME}::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
@@ -83,7 +83,7 @@ void Plugin%{APPNAME}::slotAction()
s_instance = 0;
}
-QObject* %{APPNAME}Factory::createObject( QObject* parent, const char* name, const char*, const QStringList & )
+TQObject* %{APPNAME}Factory::createObject( TQObject* parent, const char* name, const char*, const TQStringList & )
{
return new Plugin%{APPNAME}( parent, name );
}