diff options
Diffstat (limited to 'languages/cpp/app_templates/konqnavpanel')
-rw-r--r-- | languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp | 14 | ||||
-rw-r--r-- | languages/cpp/app_templates/konqnavpanel/konqnavpanel.h | 10 |
2 files changed, 12 insertions, 12 deletions
diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp index 34515ce2..ae9a85a6 100644 --- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp +++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.cpp @@ -1,16 +1,16 @@ -#include <qlabel.h> +#include <tqlabel.h> #include <kinstance.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqstring.h> +#include <tqwidget.h> #include "%{APPNAMELC}.h" #include "%{APPNAMELC}.moc" -%{APPNAME}::%{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name): +%{APPNAME}::%{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name): KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name) { - widget=new QLabel("Init Value",widgetParent); + widget=new TQLabel("Init Value",widgetParent); } @@ -20,14 +20,14 @@ void %{APPNAME}::handleURL(const KURL &url) { - widget->setText(QString("%{APPNAME}")+"::"+url.url()); + widget->setText(TQString("%{APPNAME}")+"::"+url.url()); } extern "C" { - void* create_konqsidebar_%{APPNAME}(KInstance *instance,QObject *par,QWidget *widp,QString &desktopname,const char *name) + void* create_konqsidebar_%{APPNAME}(KInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name) { return new %{APPNAME}(instance,par,widp,desktopname,name); } diff --git a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h index 949c68d3..9599b530 100644 --- a/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h +++ b/languages/cpp/app_templates/konqnavpanel/konqnavpanel.h @@ -7,7 +7,7 @@ #endif #include <konqsidebarplugin.h> -#include <qstring.h> +#include <tqstring.h> #include <kconfig.h> @@ -25,17 +25,17 @@ public: * @param desktopName The filename of the configuration file. * @param name A Qt object name for your plugin. **/ - %{APPNAME}(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name=0); + %{APPNAME}(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name=0); /** destructor */ ~%{APPNAME}(); - virtual QWidget *getWidget(){return widget;} - virtual void *provides(const QString &) {return 0;} + virtual TQWidget *getWidget(){return widget;} + virtual void *provides(const TQString &) {return 0;} protected: /*Example widget only. You use whichever widget you want. You onl have to care that getWidget returns some kind of widget */ - QLabel *widget; + TQLabel *widget; virtual void handleURL(const KURL &url); }; |