diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kommander/widgets/scriptobject.cpp | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/scriptobject.cpp')
-rw-r--r-- | kommander/widgets/scriptobject.cpp | 8 |
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()); |