Commit Graph

30330 Commits

Author SHA1 Message Date
Gunnar Sletta 434eb95e65 Don't crash when the shader source is null. 2011-05-12 12:56:49 +02:00
Roberto Raggi ae8f9b5f11 Added auto tests for properties initialized using JS statements 2011-05-12 11:44:17 +02:00
Roberto Raggi f31d94f2d4 Fix the QML front-end to allow side effects in the initializer.
Task-number: QTBUG-15117
2011-05-12 11:31:31 +02:00
Kim Motoyoshi Kalland 35559a2f00 Output warning if using unsupported texture wrap mode.
The REPEAT wrap mode is not supported by default for non-
power-of-two textures in OpenGL ES 2. Output warning in
QSGTexture::updateBindOptions() in debug mode.
2011-05-12 10:13:00 +02:00
Alan Alpert 108f7cec20 Upgrade Flickr demo to QtQuick 2.
And throw in particle effects.

Includes a variety of fixes to modelparticle and picture affector which
were arrived at during this demo.
2011-05-12 15:43:29 +10:00
Rohan McGovern f7d3d68c60 tests: build autotests by default for qtdeclarative
Configure Qt with `-nomake tests' if you don't want the tests.

Reviewed-by: Jason McDonald
Change-Id: I1af6a231b9cfb8ecf3e3a0c932ead6ddff7bbe90
2011-05-12 14:40:16 +10:00
Rohan McGovern 03cfbe8cb9 tests: mark tst_qsgitem as a private-test
This test uses private symbols.

Reviewed-by: Jason McDonald
Change-Id: I026f4d00be5f53203d0b155e08533474cc4d9605
2011-05-12 14:40:16 +10:00
Rohan McGovern 5186ddc1d9 Fixed incorrect usage of `signals', `slots' in headers
Qt headers must use Q_SIGNALS, Q_SLOTS.

Reviewed-by: Jason McDonald
Change-Id: I54b3322befd8f133d44aa48f3aa7cd96785d2e24
2011-05-12 14:40:16 +10:00
Martin Jones 6fe601e4bc Improve error message for invalid image provider name.
Also fix broken qdeclarativeimageprovider test.
2011-05-12 14:34:48 +10:00
Martin Jones 57828fb1c1 Compile. 2011-05-12 13:40:02 +10:00
Kim Motoyoshi Kalland e3aef83de3 Fixed image tiling on scene graph.
Repeat wrapping of non-power-of-two textures is not supported
on OpenGL ES 2 by default. This commit implements a fallback
for tiled QML Images.
2011-05-11 17:09:16 +02:00
Qt Continuous Integration System 19ed42109e Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging
* 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging:
  Views do not notify count changes properly
  Uninitialized memory is compared.
  Clear the root index when the model is reset.
  Fix warning about ASCII cast in calling QString::contains (cherry picked from commit 4671c273edb87e55436dd3bf0b371267c5e34ff7)
2011-05-12 01:03:54 +10:00
Martin Jones bc83e44dc3 Views do not notify count changes properly
The views don't have a valid count until both a model and a delegate
are provided.  But, countChanged() is not called when a delegate is
set after the model, so bindings to count were not evaluated.  Also
test that count is updated for insertion/removal

Change-Id: Ic82039a624c02f0bdb2862ac7a6e215df75bb314
Task-number: QTBUG-19037
Reviewed-by: Bea Lam
(cherry picked from commit 4fbcb6a531bf424a8dbbbd0ca2947d9e15118885)
2011-05-11 17:00:06 +02:00
Martin Jones db49ce3f88 Uninitialized memory is compared.
Memory is allocated and used without first clearing it.  At
the least this annoys valgrind, but also has potential for real
problems.

Change-Id: Icf3fd39f44ee0481dd732510e7f8b3ad6cef477d
Task-number: QTBUG-15187
Reviewed-by: Aaron Kennedy
(cherry picked from commit 95aa4e4f9b82c3652ffc93310b190db869d491df)
2011-05-11 17:00:06 +02:00
Girish Ramakrishnan 15407cfb5f Clear the root index when the model is reset.
Task-number: QTBUG-18839

Change-Id: I46608d7481d820fa74a9be60df1e018e70a761c6
Merge-request: 2598
Reviewed-by: Martin Jones <martin.jones@nokia.com>
(cherry picked from commit f6b7ce204ee88be0fedb4cfcff382f208fa4ed33)
2011-05-11 17:00:06 +02:00
Thiago Macieira b2617d8096 Fix warning about ASCII cast in calling QString::contains
(cherry picked from commit 4671c273edb87e55436dd3bf0b371267c5e34ff7)
2011-05-11 17:00:06 +02:00
Yoann Lopes 9e037dae27 Fixes crash in PaintedItem example when using threaded rendering. 2011-05-11 15:55:01 +02:00
Qt Continuous Integration System da66235392 Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging
* 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging:
  Add QTDECLARATIVE_VERSION macro for qtdeclarative
2011-05-11 23:09:23 +10:00
Liang Qi 14b8b7d3de Add QTDECLARATIVE_VERSION macro for qtdeclarative
Provide version info for each library.

Task-number: QTMODULARIZATION-44
Reviewed-by: axis
2011-05-11 13:21:07 +02:00
Gunnar Sletta 7ab1f9834f Documentation and API cleanup of QSGMaterial 2011-05-11 13:16:01 +02:00
Gunnar Sletta 53c6fb735a Delete the rendering thread when shutting down 2011-05-11 13:16:01 +02:00
Gunnar Sletta 97e553d578 Stop the render thread before deleting the QSGCanvas. 2011-05-11 13:16:01 +02:00
Alan Alpert ad5aeed367 Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into qtquick2 2011-05-11 19:11:51 +10:00
Alan Alpert faed3a7914 Add private parts to autotest .pro files 2011-05-11 19:11:18 +10:00
Alan Alpert 1f43fa543d Augment Documentation
Task-number: QTBUG-18235
2011-05-11 17:53:22 +10:00
Chris Adams 4ff72975b6 Add user documentation for scarce resource properties
Relates to commit 59ace5c5a666b1588560d2aeaa79a57da535e863.

Task-number: QMLNG-18
Reviewed-by: Aaron Kennedy
Change-Id: I216ced4c663ebab8003978999dc16ac809443a5f
2011-05-11 14:26:43 +10:00
Qt Continuous Integration System 6c6cf86e7d Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging
* 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging:
  Removed some trailing whitespace
  Moved the QML Observer Service and related functionality into Qt
2011-05-11 04:49:31 +10:00
Thorbjørn Lindeijer ef177c41a6 Removed some trailing whitespace
(cherry picked from commit 713a4c2fc2a52277a9b820608e3270507850ac47)
2011-05-10 20:40:59 +02:00
Thorbjørn Lindeijer 517404f626 Moved the QML Observer Service and related functionality into Qt
This code was previously developed as part of Qt Creator in
share/qtcreator/qml/qmljsdebugger/

Moving it into Qt will allow us to simplify the setup required before
you can debug QML applications.

To avoid adding too much weight to the QtDeclarative module, a
declarativeobserver plugin was introduced that contains the
QDeclarativeViewObserver and related classes. The
QDeclarativeObserverService is just a stub service that loads this
plugin once a QML debugging client connects. The plugin implements the
QDeclarativeObserverInterface

A QJSDebugService was separated out of QJSDebuggerAgent, so
that the service can be active while the agent is instantiated lazily.
Each QDeclarativeEngine adds itself to the QJSDebugService. Currently
only the first one is used when instantiating the agent.

QDeclarativeObserverService is hooked into QDeclarativeView, with the
view registering itself to the service, allowing the
QDeclarativeViewObserver to be created for the view once somebody
connects to the service. Again, only the first view is used at the
moment.

Change-Id: Ib50579c6d24361c2b39528e5556410d3446c2e90
Reviewed-by: Martin Jones
Reviewed-by: Michael Brasser
(cherry picked from commit 35faeb205843c4f0b921d2b878d2d24962c64664)

Fixups squashed into this one:

(cherry picked from commit 0abf1dd99eeb252ae10c9f3cd99b64ee0b4d6e72)
(cherry picked from commit 894515429397be20670806825099b4b9896d50d6)
(cherry picked from commit 7d9f03c87e0e096934583a36340de5446e1d0520)

Conflicts:

	src/plugins/qmltooling/qmltooling.pro
	src/plugins/qmltooling/tcpserver/qtcpserverconnection.cpp
2011-05-10 20:40:41 +02:00
Qt Continuous Integration System fdaea804c9 Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging
* 'master' of git://scm.dev.nokia.troll.no/qt/qtdeclarative-staging:
  QDeclarativeDebugServer: Send hello answer before any service messages
2011-05-11 02:18:53 +10:00
Thorbjørn Lindeijer 84a5bde0c4 QDeclarativeDebugServer: Send hello answer before any service messages
This is necessary since some services may like to send a message back
immediately when its state changes to enabled.

Reviewed-by: Kai Koehne
(cherry picked from commit 9fa0a9319ee0f178d03f9bdc4afbabb8563b4c62)
2011-05-10 18:14:37 +02:00
Kim Motoyoshi Kalland 67d5026372 Replaced grab() with scheduleUpdate().
Replaced the synchronous function grab() with an asynchronous
function scheduleUpdate() in QShaderEffectSource because
synchronous grabbing doesn't work with threaded rendering.
2011-05-10 16:57:59 +02:00
Yoann Lopes 79f6db432e Documented which thread gets the QSGPaintedItem::paint() call. 2011-05-10 13:12:57 +02:00
Eskil Abrahamsen Blomfeldt 762cbc75b9 Update to work with QGlyphs -> QGlyphRun renaming
Just some search replace to make the repository compile after
QGlyphs and related APIs were renamed.
2011-05-10 12:19:47 +02:00
Yoann Lopes b909a2433e Added a separate property to enable mipmapping on QSGPaintedItem.
Don't use QSGItem's smooth property for that anymore.
2011-05-10 12:12:44 +02:00
Kai Koehne 21deca53df QmlViewer: Remove one call to enableDebugging
Merge f9b198987d resulted in two calls of the method.

Reviewed-by: TrustMe
2011-05-10 11:44:24 +02:00
Kai Koehne 7b337d460c QmlViewer: Translate UI
Install translators for the Qt & QmlViewer translations. also
add QT_NO_CAST_FROM_ASCII, QT_NO_CAST_TO_ASCII to check for untranslated
strings.

Reviewed-by: Oswald Buddenhagen
Task-number: QTBUG-14848

(cherry-picked from commit f33b31dcc1b8fd35501ab5b441a4529e2f8570f3)
2011-05-10 11:38:02 +02:00
Martin Jones f9b198987d Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into qtquick2 2011-05-10 15:34:37 +10:00
Martin Jones e7f900bdc6 Benchmark component creation with different types of bindings. 2011-05-10 15:33:46 +10:00
Chris Adams 3cfdb6da04 Add user documentation for js imports functionality
Relates to commit 6f8637810e549dac3ee8386f199a997d21ac85ce.

Task-number: QMLNG-18
Reviewed-by: Martin Jones
Change-Id: I96f0e2ebc4206d6c2a0fda476d214e549666a69c
2011-05-10 15:32:21 +10:00
Kim Motoyoshi Kalland 4fb6ee7d25 Fix Rectangle implementation. 2011-05-09 17:31:03 +02:00
Yoann Lopes 2002baaf68 Udate mipmaps when QSGPaintedItem's texture has changed. 2011-05-09 17:16:54 +02:00
Gunnar Sletta 7b7f5671c8 Docs for QSGTextureMaterials 2011-05-09 13:51:40 +02:00
Gunnar Sletta 2aa66a6660 Renamed of texture material classes to be more intuitivly named
The assumption is that most people will use QSGTextureMaterial
so this should be the one that works for both transparent
and opaque textures. QSGOpaqueTextureMaterial is an optimization
2011-05-09 13:51:40 +02:00
Gunnar Sletta 743f8df88a Clean up QSGVertexColorMaterial a bit 2011-05-09 13:51:40 +02:00
Gunnar Sletta 79f2d3c2e9 Removed a few warnings 2011-05-09 13:51:40 +02:00
Gunnar Sletta aba3870391 Docs for vertex and flat color materials 2011-05-09 13:51:40 +02:00
Yoann Lopes b7e0c07633 Enable mipmapping for QSGPaintedItem's texture. 2011-05-09 13:13:24 +02:00
Kim Motoyoshi Kalland c962253085 Fixed issues with ShaderEffectSource and threaded rendering. 2011-05-09 13:08:43 +02:00
Kim Motoyoshi Kalland 02582f6c80 Added 'recursive' property to ShaderEffectSource.
If 'recursive' is set, ShaderEffectSource will keep two
buffers, alternatingly sourcing from one while rendering into
the other.
2011-05-09 13:08:42 +02:00