- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp
r2 r561 2 2 ** 3 3 ** 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]) 5 6 ** 6 7 ** This file is part of the QtSCriptTools module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 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. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 99 99 QScriptDebuggerCommandExecutor::~QScriptDebuggerCommandExecutor() 100 100 { 101 delete d_ptr; 101 } 102 103 static bool isPrefixOf(const QString &prefix, const QString &what) 104 { 105 return ((what.length() > prefix.length()) 106 && what.startsWith(prefix)); 102 107 } 103 108 … … 106 111 */ 107 112 QScriptDebuggerResponse QScriptDebuggerCommandExecutor::execute( 108 109 113 QScriptDebuggerBackend *backend, 114 const QScriptDebuggerCommand &command) 110 115 { 111 116 QScriptDebuggerResponse response; … … 288 293 if (ctx) { 289 294 QScriptDebuggerValueList dest; 290 #if QT_VERSION >= 0x040500291 295 QScriptValueList src = ctx->scopeChain(); 292 296 for (int i = 0; i < src.size(); ++i) 293 297 dest.append(src.at(i)); 294 #else295 dest.append(ctx->activationObject());296 #endif297 298 response.setResult(dest); 298 299 } else { … … 303 304 case QScriptDebuggerCommand::ContextsCheckpoint: { 304 305 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 305 404 } break; 306 405
Note:
See TracChangeset
for help on using the changeset viewer.