diff options
Diffstat (limited to 'languages/cpp/app_templates/kpartplugin')
-rw-r--r-- | languages/cpp/app_templates/kpartplugin/plugin_app.cpp | 16 | ||||
-rw-r--r-- | languages/cpp/app_templates/kpartplugin/plugin_app.h | 4 |
2 files changed, 10 insertions, 10 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 ); } diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h index e70ad1c1..7c7bfc0c 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.h +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h @@ -9,7 +9,7 @@ class Plugin%{APPNAME} : public KParts::Plugin { Q_OBJECT public: - Plugin%{APPNAME}( QObject* parent = 0, const char* name = 0 ); + Plugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 ); virtual ~Plugin%{APPNAME}(); public slots: @@ -23,7 +23,7 @@ public: %{APPNAME}Factory(); virtual ~%{APPNAME}Factory(); - virtual QObject* createObject( QObject* parent = 0, const char* pname = 0, const char* name = "QObject", const QStringList &args = QStringList() ); + virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() ); static KInstance* instance(); |