summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/scriptobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/widgets/scriptobject.cpp')
-rw-r--r--kommander/widgets/scriptobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kommander/widgets/scriptobject.cpp b/kommander/widgets/scriptobject.cpp
index 2824d81f..472bb98c 100644
--- a/kommander/widgets/scriptobject.cpp
+++ b/kommander/widgets/scriptobject.cpp
@@ -30,7 +30,7 @@
#include <specials.h>
ScriptObject::ScriptObject(TQWidget *a_parent, const char *a_name)
- : TQLabel(a_parent, a_name), KommanderWidget(this)
+ : TQLabel(a_parent, a_name), KommanderWidget(TQT_TQOBJECT(this))
{
TQStringList states;
states << "default";
@@ -93,7 +93,7 @@ void ScriptObject::populate()
TQString ScriptObject::executeProcess(bool blocking)
{
- int index = ( states().findIndex( currentState()) );
+ int index = ( states().tqfindIndex( currentState()) );
if (index == -1)
{
printError(i18n("Invalid state for associated text."));
@@ -169,7 +169,7 @@ TQString ScriptObject::handleDCOP(int function, const TQStringList& args)
setAssociatedText(args[0]);
break;
case DCOP::clear:
- setAssociatedText(TQString::null);
+ setAssociatedText(TQString());
break;
case DCOP::execute:
m_params = args;
@@ -178,7 +178,7 @@ TQString ScriptObject::handleDCOP(int function, const TQStringList& args)
case DCOP::item:
{
uint index = args[0].toInt();
- return index < m_params.count() ? m_params[index] : TQString::null;
+ return index < m_params.count() ? m_params[index] : TQString();
}
case DCOP::count:
return TQString::number(m_params.count());