aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-24279-99583/+0
| | | | | | | | | | | | | Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove the last sql dependency in declarativeMartin Jones2012-02-221-2/+1
| | | | | Change-Id: Ib2410e1b32e2cc5216d5fc9659bc45fb46a1da61 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* DebugMessageService: Remove unneeded dataAurindam Jana2012-02-221-1/+1
| | | | | | | Do not send version info of QMessageLogContext. Change-Id: I32dd4a548ee2b918e5d04dcdffd4d5545fd2f54f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Implement String.localeCompare() using QString::localeAwareCompare()Martin Jones2012-02-223-0/+35
| | | | | | | | v8's localeCompare() implementation is not locale aware, so we use Qt's locale aware compare. Change-Id: Ia9092b3d6754545bb797adac26080ac7a29dcd92 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* DebugMessageService: Also pass Debug Context InfoAurindam Jana2012-02-212-10/+18
| | | | | | | | Use QMessageHandler which provides context information such as line, file and function for the debug output. Change-Id: I475faf4a1363d8419dec910b8a23cc44666c1908 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* v8profiler: Actually submit dataKai Koehne2012-02-211-0/+2
| | | | | | | Fix regression introduced in 82dfecab3. Change-Id: Icd90c483b9b2fde8d4cf522f3a35368cd395b120 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Renames QAnimation2ChangeListener to QAnimationJobChangeListenerCharles Yin2012-02-212-8/+8
| | | | | Change-Id: I921b252380d095fb878b4e5d36df0b5a13a3888f Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove sql dependency from declarative.proCharles Yin2012-02-211-1/+1
| | | | | Change-Id: I43aa11e948a498796788587e03a699f121308d1b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* DeclarativeEngineDebugService: Fix CrashAurindam Jana2012-02-211-0/+13
| | | | | | | | Iterate through contents of QVariantMap to convert QObjects to streamable type. Change-Id: I2cb64a84aef674904de43f9a0c0fee539b87a59a Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix gcc compiler warnings.Friedemann Kleint2012-02-211-1/+1
| | | | | | Change-Id: I22d0a45bdcf68c454af0aab9fa62dd2d126d63c2 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Console API: Pass context information from js to qt logging frameworkKai Koehne2012-02-201-36/+87
| | | | | | | | Log the file, line, function context from the original calls in js. Also print the stack trace as part of one multi-line message. Change-Id: I53836df081f3ce06e9b52ebb647ba172ff6bdbef Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Delete v8methods array at destructionAaron Kennedy2012-02-201-0/+1
| | | | | Change-Id: I6412ad352ad23db4100fffc9285532eb7e0b3a71 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Don't store source after script data is createdAaron Kennedy2012-02-202-6/+1
| | | | | Change-Id: I84fd61893db3578b80beb85b9a88ed325ea7584f Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce memory by not calling QUrl::toString() multiple timesAaron Kennedy2012-02-2012-19/+51
| | | | | Change-Id: I57ce25f4e20cac048ff507a8c195b83adc30040d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Don't store object and property in QDeclarativeAbstractBindingAaron Kennedy2012-02-2012-61/+175
| | | | | Change-Id: Ia164655f6329ec80dc466a1a3a5613a73e1c23ac Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce size of QV8BindingsAaron Kennedy2012-02-206-44/+82
| | | | | Change-Id: I4bd8fed3f38aa358fb42e21b5cf19ff1aa61c138 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce size of QDeclarativeJavaScriptExpressionAaron Kennedy2012-02-205-45/+78
| | | | | Change-Id: Ie1242d18ef10e5cbd9c1cab27c31ad3f6d9281fd Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce size of QV8Bindings::BindingAaron Kennedy2012-02-203-38/+46
| | | | | | | Use the instruction ptr instead of copying data Change-Id: I2e9c8ce2fcf5d664ac98d8d58b5733b60e8bf548 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce the size of QDeclarativeAbstractBindingAaron Kennedy2012-02-202-10/+21
| | | | | | | | The weak pointer in every binding is rarely used, so we can store it in the same memory as the me ptr. Change-Id: I3ce7d767fa25cf5b6e6d30c4f022d0e94fc3ffbb Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce the size of QDeclarative*ExpressionAaron Kennedy2012-02-209-94/+225
| | | | | | | | Reduces the size of QDeclarativeAbstractExpression and QDeclarativeJavaScriptExpression. Change-Id: I39386e5a45f8bd12bfb2d80b47dfec37f2f05479 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Update ftw classesAaron Kennedy2012-02-205-9/+695
| | | | | | | This is for the benefit of subsequent changes. Change-Id: Ib494efb1474d069c067194008c9832653d5d8eb4 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Use Utf8 for javascript source codeAaron Kennedy2012-02-2015-41/+170
| | | | | | | This saves a surprising amount of memory. Change-Id: I16f7bde8d11fe11703d4e441060fd52e9632248c Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Use the existing endpoint object to connect alias notify signalsAaron Kennedy2012-02-201-17/+17
| | | | | Change-Id: I891ea5e3854a4fc92ba59e98417ad72774bd7adb Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Reduce size of QDeclarativePropertyDataAaron Kennedy2012-02-202-23/+29
| | | | | | | | Accessors cannot overload properties and are not available on value types so can be safely union'd together. Change-Id: Iae34f8b2935d010ca43365238a7514c0e26953f0 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Make QLocale::uiLanguages() available in Qt.locale() objectMartin Jones2012-02-171-0/+25
| | | | | | | Available as uiLanguages property returning an array of strings. Change-Id: Ic698bbaff2eb0f9f6720ae06952c12a987298964 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Reduce the memory used by QStringHashAaron Kennedy2012-02-164-232/+533
| | | | | | | | | This change reduces the memory consumed by individual QStringHashNodes, and adds support for "linking" one hash to another that allows us to avoid copying all the nodes. Change-Id: Ib5bd151d8ec610a020fd125f46a4e218d959529b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* QtDeclarative/Quick: Fix warnings.Friedemann Kleint2012-02-162-2/+3
| | | | | Change-Id: I71bd638fcc41356e0b76df27ec76ad3ed5ef90d9 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Set the type for unary expressions in v4.Michael Brasser2012-02-161-1/+1
| | | | | | | | | Previously unary expressions were being discarded because the type was not set. Also add tests verifying the results. Change-Id: Icbb493fbb6f036e59c8a4a1fe232c118312a63a5 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Add basic plugin metadata for QtQuick2 import plugin.Michael Brasser2012-02-161-2/+2
| | | | | | | | | | This indirectly fixes the qdebugmessageservice autotest, which was getting confused by the "old plugin" warning. Also updated the extension plugin interface to use org.qt-project rather than com.trolltech. Change-Id: I94fc6cf03d23e606c2e2333b013dd2b698f04623 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* QmlProfiler: sending start profiling messageChristiaan Janssen2012-02-152-1/+17
| | | | | | | | | Will be used by the client to show status in the GUI. When profiling is stopped, data is sent immediately, therefore no "stop profiling" message. Change-Id: Idd12069a9707296b87e305e8b3cbf8e324989a3f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix warnings in sequence wrapper codeChris Adams2012-02-151-36/+83
| | | | | | | | | | | | | | | Previously, the sequence wrapper had unsigned int / signed int comparisons (due to Qt container classes only allowing signed int indexes (where negative indexes are invalid). This commit ensures that unsigned indexes are bounds checked appropriately, and also fixes a warning due to QString construction from QByteArray. Finally, it updates the documentation for sequences to clarify the indexing semantics. Change-Id: I4c6e133bef6e980a9ccb62ff15a70a5d41537ee3 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix typo in error string.Glenn Watson2012-02-141-1/+1
| | | | | | | | | Provide correct line/column information in case of error while creating dynamic qml object. Task-number: QTBUG-24065 Change-Id: I283408c898706dc6df57e21a57d97bafd56d9aaa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Qt.application.inputPanel to make deprecation warning only oncePekka Vuorela2012-02-131-1/+5
| | | | | Change-Id: I6db04fdbf648e0b91e7ef21f57b6062813ceb6c5 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Don't crash when an animation update causes it to delete itself.Michael Brasser2012-02-135-18/+76
| | | | | Change-Id: Ic108adfb99a09e6ede71d474240fb0917cee6961 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Change linkage of datafunction in V8_DEFINE_EXTENSION to static.Justin McPherson2012-02-132-2/+2
| | | | | | | Stops interaction with items of the same name elsewhere. Change-Id: I37ffdc8253d76247f03bd593785a35069636eba8 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Debugger: Rename QDeclarativeDebugTrace to QDeclarativeProfilerServiceKai Koehne2012-02-1011-101/+101
| | | | | | | | This avoids naming confusion with QDeclarativeTrace + makes it in line with QV8ProfilerService. Change-Id: Ifd801655044cff3ffdb2a9695ffc9868eeb51663 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Consistenly use 'state' instead of 'status'Kai Koehne2012-02-1018-101/+101
| | | | | | | | | Fix inconsistent naming e.g. in QtDeclarativeEngineDebug by always using 'state' instead of 'status'. This is in line with the other source code, which also seems to favor 'state'. Change-Id: I65a7a3bd0eb7dfffeb37b5f8dad15b0a4a78de70 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Use QInputMethod instead of deprecated QInputPanelPekka Vuorela2012-02-105-5/+15
| | | | | | | | | | Similarly deprecate Qt.application.inputPanel and introduce replacement Qt.inputMethod. Change-Id: Ie4fd467f93f75023c86b0a2d038d858fe5001146 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Sami Kananoja <sami.kananoja@nokia.com>
* Remove deprecated builtin sql database API.Charles Yin2012-02-096-631/+2
| | | | | | | | | | | The new local storage API has been implemented as a standalone module plugin for a while, and qtquick1 has been moved into a seperated repo, so the old API can be safely removed now. Task-number:QTBUG-21538 Change-Id: Ib89f34797afe492ad4987d5afa8ff23cdca044ab Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Debugger: Allow trace service to send data on exitKai Koehne2012-02-097-15/+61
| | | | | | | | Add a statusAboutToBeChanged virtual that allows services to send data e.g. on application exit. Change-Id: I28fa513ab2a12d6973c444aac3062d64a0957207 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* QmlProfiler: add filename to "Compiling" events locationChristiaan Janssen2012-02-091-0/+1
| | | | | Change-Id: I58c4cae59790bed6a921f7e94d97ee84ba3e6777 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Pass the QQuickCanvas to texture factories.Gunnar Sletta2012-02-091-1/+2
| | | | | | | | | This makes it a lot more convenient as we then have direct access to the GL context, createTexture(), invalidation signal and more. Change-Id: I114514d1379c4d0efcc35c512fa2b485da3438b0 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Check dynamic slot function for nullness before evaluationChris Adams2012-02-092-3/+34
| | | | | | | | | | | | | | Previously, we didn't check whether the function object handle associated with a dynamic slot's method index was null before attempting to evaluate it, which could cause a crash in some circumstances. This change also adds better error reporting during function compilation. Task-number: QTBUG-24064 Task-number: QTBUG-24037 Task-number: QTBUG-23387 Change-Id: I3c5e35e8c16187870125736013a5935fcc5cb1f2 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Make use of the new maybeAdvance animation logic inside the animation systemGunnar Sletta2012-02-091-1/+1
| | | | | Change-Id: Ifef986241d4817fe1e8f8cb94b9640b2bcec0d29 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Handle exceptions while compiling v8 bindingsChris Adams2012-02-092-9/+37
| | | | | | | | | | | | | Previously, no exception handling existed, which could cause a crash if an invalid v8 binding expression was generated. Such invalid bindings should usually be rewritten into valid form by the bindings rewriter, but in some cases it is too costly to do so, so we need to handle exceptions. Task-number: QTBUG-24064 Task-number: QTBUG-23387 Change-Id: I7da12a936780a561c9e9cad3a4a7b62c06d6973e Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix warnings reported by clang.Michael Brasser2012-02-091-0/+1
| | | | | Change-Id: Ifa850c2848c61319cb2465d7fcfffc7fef630923 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Rewrite multiline strings properlyAlan Alpert2012-02-096-12/+135
| | | | | | | | | | | | | | | | Because the bindings rewriter works on code strings, it would leave multiline strings across multiple lines (which is illegal in ECMAScript. It now manually breaks them up when it sees them, by replacing a \n character with a literal \n. Since RewriteSignalHandler now likes to have the AST passed in too, the related method in QDeclarativeCompiler (and its customers) have been altered to use the QDeclarativeScript::Value instead of just a string. Task-number: QTBUG-23387 Change-Id: Id060de37e70590c9da2a902038ed02d948fdd70f Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update documentation on QJSEngine::newQObject to match implementation.Jamey Hicks2012-02-081-1/+1
| | | | | Change-Id: Id38244dd78b7d562dad14e08555fb55d2e0815fa Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Mark constructor of QJSValue as deletable.Jędrzej Nowacki2012-02-072-11/+2
| | | | | | | This constructor is there only to force compile time error. Change-Id: Ia2e059e0c7fa516949a166da8856543a5608d217 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Add and use new animation backend.Michael Brasser2012-02-0712-0/+2000
| | | | | | | | | The new backend improves performance, and allows us to create multiple running animation jobs from a single Transition. It is based off of the existing Qt animation framework. Change-Id: Id1d0162f6e5c65bf31267f3f9f2042c354375d57 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>