summaryrefslogtreecommitdiffstats
path: root/kommander/working/plugintemplate/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/working/plugintemplate/widget.cpp')
-rw-r--r--kommander/working/plugintemplate/widget.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kommander/working/plugintemplate/widget.cpp b/kommander/working/plugintemplate/widget.cpp
index 73ec0278..2378e87a 100644
--- a/kommander/working/plugintemplate/widget.cpp
+++ b/kommander/working/plugintemplate/widget.cpp
@@ -16,10 +16,10 @@ enum Functions {
LastFunction
};
-%{APPNAME}::%{APPNAME}(QWidget *parent, const char *name)
- : QWidget(parent, name), KommanderWidget(this)
+%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name)
+ : TQWidget(parent, name), KommanderWidget(this)
{
- QStringList states;
+ TQStringList states;
states << "default";
setStates(states);
setDisplayStates(states);
@@ -29,7 +29,7 @@ enum Functions {
if (KommanderWidget::inEditor)
{
setPixmap(KGlobal::iconLoader()->loadIcon("%{APPNAMELC}", KIcon::NoGroup, KIcon::SizeMedium));
- setFrameStyle(QFrame::Box | QFrame::Plain);
+ setFrameStyle(TQFrame::Box | TQFrame::Plain);
setLineWidth(1);
setAlignment(Qt::AlignCenter);
}
@@ -40,8 +40,8 @@ enum Functions {
KommanderPlugin::setDefaultGroup(Group::DCOP);
//CHANGE THE BELOW LINES TO MATCH YOUR FUNCTIONS NAMES AND SIGNATURE
- KommanderPlugin::registerFunction(Function1, "function1(QString widget, QString arg1, int arg2)", i18n("Call function1 with two arguments, second is optional."), 2, 3);
- KommanderPlugin::registerFunction(Function2, "function2(QString widget)", i18n("Get a QString as a result of function2."), 1);
+ KommanderPlugin::registerFunction(Function1, "function1(TQString widget, TQString arg1, int arg2)", i18n("Call function1 with two arguments, second is optional."), 2, 3);
+ KommanderPlugin::registerFunction(Function2, "function2(TQString widget)", i18n("Get a TQString as a result of function2."), 1);
}
@@ -49,9 +49,9 @@ enum Functions {
{
}
-QString %{APPNAME}::currentState() const
+TQString %{APPNAME}::currentState() const
{
- return QString("default");
+ return TQString("default");
}
bool %{APPNAME}::isKommanderWidget() const
@@ -59,22 +59,22 @@ bool %{APPNAME}::isKommanderWidget() const
return true;
}
-QStringList %{APPNAME}::associatedText() const
+TQStringList %{APPNAME}::associatedText() const
{
return KommanderWidget::associatedText();
}
-void %{APPNAME}::setAssociatedText(const QStringList& a_atext)
+void %{APPNAME}::setAssociatedText(const TQStringList& a_atext)
{
KommanderWidget::setAssociatedText(a_atext);
}
-void %{APPNAME}::setPopulationText(const QString& a_text)
+void %{APPNAME}::setPopulationText(const TQString& a_text)
{
KommanderWidget::setPopulationText(a_text);
}
-QString %{APPNAME}::populationText() const
+TQString %{APPNAME}::populationText() const
{
return KommanderWidget::populationText();
}
@@ -84,10 +84,10 @@ void %{APPNAME}::populate()
KommanderWidget::evalAssociatedText(populationText());
}
-void %{APPNAME}::contextMenuEvent( QContextMenuEvent * e )
+void %{APPNAME}::contextMenuEvent( TQContextMenuEvent * e )
{
e->accept();
- QPoint p = e->globalPos();
+ TQPoint p = e->globalPos();
emit contextMenuRequested(p.x(), p.y());
}
@@ -97,7 +97,7 @@ bool %{APPNAME}::isFunctionSupported(int f)
return (f >= FirstFunction && f <= LastFunction); //see specials.h for other DCOP functions you might want to support
}
-QString %{APPNAME}::handleDCOP(int function, const QStringList& args)
+TQString %{APPNAME}::handleDCOP(int function, const TQStringList& args)
{
switch (function)
{
@@ -110,7 +110,7 @@ QString %{APPNAME}::handleDCOP(int function, const QStringList& args)
default:
return KommanderWidget::handleDCOP(function, args);
}
- return QString::null;
+ return TQString::null;
}
#include "%{APPNAMELC}.moc"