Delay loading implicit import

As a performance improvement to avoid accessing the filesystem
unecessarily, only import "." implicitly if types cannot be found in the
existing imports. This is not a behavior change for type resolution,
because "." already has the lowest precedence for type resolution.

Change-Id: I8a8f10f7a790e6a02fc2c07c443f7be1984fc979
Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Add a method that allows registration of files to types

There is currently no way in C++ to duplicate the functionality of a qmldir
file in mapping QML files to versioned types in a module. This functionality
would be useful both in cases where a separate qmldir file would be overkill,
and for cases where the type mapping should be generated dynamically.

Change-Id: I28d7898122c5556fcd7cf3476795bcf4bb288eab
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
sync.profile: Point dependencies to 'refs/heads/dev'

We should test dev branches against dev branches only by default.
At some point we should automate the merges from release->stable->dev
and/or decide how to handle possible conflicts.

This is good enough for the time being.

Change-Id: I15717ed1666bf939ddbe15c20df1858f480d60b7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Merge branch 'stable' into dev

Conflicts:
	sync.profile
	tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp

Change-Id: I3620d15b4163fec420d18f6be50cae1635b99a2f
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I1175450886eca4dcaf7e81ae82fd112e541ad2f8
Remove export-declaration from inline function qmlRegisterType().

Fix MinGW-warning about invalid dllimport-directive.

Change-Id: I12b2888c09de5b548fd3bd7e626717ee057de80c
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Alan Alpert <aalpert@rim.com>
Remove QT_{BEGIN,END}_HEADER macro usage

The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb
and is no longer necessary or used.

Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html
Change-Id: Ic5b55b26967d65b3f11cac6fc3963f33ec6051a4
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Alan Alpert <aalpert@rim.com>
Fix QDeclarativeListView currentSection property update

Model modifications that did not trigger the refill logic caused
the view's currentSection property to contain an outdated value.

A new autotest has been added to catch the bug.

Task-number: QTBUG-29712
Change-Id: I88cf1295ac55dad7596b6ba1fe475ebf98a31026
Reviewed-by: Alan Alpert <aalpert@rim.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I4fd7f5c1096b0460bd23e2831e6207d63c2b69e3
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
MouseArea shouldn't grab the mouse until there is an effective drag.

A MouseArea shouldn't prevent a parent MouseArea or Flickable from
handling a drag event unless it is going to do something useful with
it.

Task-number: QTBUG-29717
Change-Id: I17caa51ebc2e547e73e727fd185e60644591ad2b
Reviewed-by: Alan Alpert <aalpert@rim.com>
Flickable shouldn't grab the mouse until it starts an effective move.

If the boundBehavior prevents the flickable from moving its content
item in response to a drag it shouldn't grab the mouse as that will
prevent a parent MouseArea or Flickable from handling the drag.

Task-number: 29718
Change-Id: Ief82ef7b898ea2581fd0b7e52548f451d887e2f1
Reviewed-by: Alan Alpert <aalpert@rim.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I71384165752875c073dfbcbd279cfdc82eeea4dc
Improve emission of FocusScope focusChanged signals.

Emit activeFocusChanged up the focus tree when an item receives a focus
event, rather than when the focusItem changes which happens before
internal state is sufficiently updated for hasFocus and hasActiveFocus
to return the correct values from within a changed signal handler.

There are some limitions to this. First the signals are not emitted
reliably when the scene is not active which makes sense for activeFocus
but not for focus.  The second is in some instances the focus and
activeFocus can update unnecessarily while the focus chain sorts itself
out.

QDeclarativeItem tests by Andreas Aardal Hanssen <andreas@hanssen.name>

Task-number: QTBUG-28288
Task-number: QTBUG-25644

Change-Id: Ib3d17c42754c15a08b34c3388f50b45cc1d2a831
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Reviewed-by: Alan Alpert <aalpert@rim.com>
Fix warning about uninitialized variable (CLANG).

Change-Id: I7fd31373b4d08130c1fb44bb5b203331313558c3
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Remove unused variable (CLANG).

Change-Id: I74d07deb862ff7099eaeeae93b04be3c7496c5c8
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Fix warnings about unused variables in tests (CLANG).

Change-Id: I29d4a41d2b6c4ac5c7b27930257c3853500325a1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Fix warning about adding int to a QString (CLANG).

Change-Id: If83018b1bd6dcaf7f8104fa9c4c3f4359062623e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Fix warning about overloaded virtual in qmlviewer (CLANG).

Change-Id: Id5f3f66a353a360e98957541e339a28ad0d301e5
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Makes QSmoothedAnimation respect zero duration.

In automated GUI test scenarios it often desired not to wait for animations
before verifying a result, so setting the duration to zero should accomplish
this, before this patch; if duration was set to zero QSmoothedAnimation
would treat it as if duration was not set, and used velocity to calculate
animation speed.

Change-Id: Ie6520d6c595bd014f3cab69bbb527e773f3850da
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>