diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2009-04-16 01:06:09 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-04-16 01:06:09 (GMT) |
commit | 5174ef058693fb3c5420bd9ed555ebf0dfc758a2 (patch) | |
tree | 2e8272b2394c9beff850e08dd745559d11aad258 /src/scripttools/debugging/qscriptcompletiontask.cpp | |
parent | 3eb4aacf07c77876c6ce68e9746906424934433b (diff) | |
download | Qt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.zip Qt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.tar.gz Qt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.tar.bz2 |
Remove obsolete pre-processor directives that check QT_VERSION.
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/scripttools/debugging/qscriptcompletiontask.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptcompletiontask.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/scripttools/debugging/qscriptcompletiontask.cpp b/src/scripttools/debugging/qscriptcompletiontask.cpp index 3767505..119b96a 100644 --- a/src/scripttools/debugging/qscriptcompletiontask.cpp +++ b/src/scripttools/debugging/qscriptcompletiontask.cpp @@ -162,11 +162,7 @@ void QScriptCompletionTaskPrivate::completeScriptExpression() obj = ctx->thisObject(); } else { QScriptValueList scopeChain; -#if QT_VERSION >= 0x040500 scopeChain = ctx->scopeChain(); -#else - scopeChain.append(ctx->activationObject()); -#endif for (int i = 0; i < scopeChain.size(); ++i) { QScriptValue oo = scopeChain.at(i).property(topLevelIdent); if (oo.isObject()) { @@ -180,11 +176,7 @@ void QScriptCompletionTaskPrivate::completeScriptExpression() if (obj.isValid()) objects.append(obj); } else { -#if QT_VERSION >= 0x040500 objects << ctx->scopeChain(); -#else - objects.append(ctx->activationObject()); -#endif QStringList keywords; keywords.append(QString::fromLatin1("this")); keywords.append(QString::fromLatin1("true")); |