Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the QtSCriptTools module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    9999QScriptDebuggerCommandExecutor::~QScriptDebuggerCommandExecutor()
    100100{
    101     delete d_ptr;
     101}
     102
     103static bool isPrefixOf(const QString &prefix, const QString &what)
     104{
     105    return ((what.length() > prefix.length())
     106            && what.startsWith(prefix));
    102107}
    103108
     
    106111*/
    107112QScriptDebuggerResponse QScriptDebuggerCommandExecutor::execute(
    108         QScriptDebuggerBackend *backend,
    109         const QScriptDebuggerCommand &command)
     113    QScriptDebuggerBackend *backend,
     114    const QScriptDebuggerCommand &command)
    110115{
    111116    QScriptDebuggerResponse response;
     
    288293        if (ctx) {
    289294            QScriptDebuggerValueList dest;
    290 #if QT_VERSION >= 0x040500
    291295            QScriptValueList src = ctx->scopeChain();
    292296            for (int i = 0; i < src.size(); ++i)
    293297                dest.append(src.at(i));
    294 #else
    295             dest.append(ctx->activationObject());
    296 #endif
    297298            response.setResult(dest);
    298299        } else {
     
    303304    case QScriptDebuggerCommand::ContextsCheckpoint: {
    304305        response.setResult(qVariantFromValue(backend->contextsCheckpoint()));
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
     341
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
     391
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
     403
    305404    }   break;
    306405
Note: See TracChangeset for help on using the changeset viewer.