C++: Fix crash in code completion.

Caused by a dangling pointer of a template instantiation which had been
cloned into the wrong control. The fix is to remove that control and
refer to the control of the bindings (which is the correct one).

Change-Id: I951a60f2e613aae1e4ac901ce99c820212018709
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Enable mechanism to bundle Qt in APK

If the Qt version built against is Qt 5, and the deployment
method is "Use libs on device" + "Use local Qt libs", Creator
will copy the required files into the app bundle and set
the necessary meta-data to make the Java code in the app
actually load them from the app bundle.

We also make this deployment method the default on Qt 5.

Change-Id: Ib7a33e7d1fbd22f76c85c31e1dbc68912a38eda8
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Deploy qtquick2 imports for qml2puppet.

Task-number: QTCREATORBUG-9235

Change-Id: I9fae92bd9c1a07066d7d312008a7e10613b414f7
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Fix deployqt for qt4

Don't try to deploy qt quick 2 imports if they aren't there.

Change-Id: I1146ad8a81973af9e80c82caad515fea45b1530e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
QNX: Fix shutdown of inferior and inserting breakpoints on Windows

When debugging on a QNX device on Windows, neither
DebugBreakProcess(..) nor "-exec-interrupt" works for interrupting
the inferior process. Neither does sending it a SIGINT signal using
"kill" on the device.

This changes the local gdb process to run under the CtrlC stub on
Windows when debugging on QNX. This enables us to send a Ctrl+C
message to gdb, which interrupts the inferior, and allows us to
insert breakpoints during runtime on Windows.

Change-Id: I4b01fbe81138f3fe7a939a7e64267bac4eb8bf43
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Doc: edit Android dev instructions for Qt 5.1

Separate the instructions for configuring Qt Creator
for Necessitas and Qt 5.1 to make the process clearer.
Add missing information.

Change-Id: Iac8fb1d9bcdec57783905fae2e9fea1b222d28bb
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Squish: Use readFile() if possible

Change-Id: Ia850e624f24dd57589d7276af22aef1498c3c799
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Squish: Added timeout for waitFor()

Change-Id: I9d15d03c9b289f41830a57ed659264a324338cc6
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Squish: Stabilize invoking context menu items on Mac

Change-Id: I64ed356b6120c38d51c646ae409bbbc3a4fe9e8e
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
QmlDesigner.qml2puppet: Adding simple test

This test will fail and give an error message, if
inbuild item are missing.

Change-Id: Ib7a33e7d1fbd22f76c8ac31e1dbc68912aa8edaa
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
QmlDesigner.ItemLibrary: load QML source on startup

The QML source is now loaded while dragging, which creates
hickups.

Change-Id: If43e4661881f94d6a6f692981f19a61ac2c0e508
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
FakeVim: Focus current editor before handling command line command

Action like "Switch Header/Source" need to be performed in correct
context, in this case "CppEditor.C++Editor". But while command line is
focused the context is global.

Task-number: QTCREATORBUG-9217
Change-Id: I8680e7d9612e72d23e1ef6515904941505f410d8
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
QmlDesigner.PropertyEditor: also support .svg for Image


Change-Id: If43e4661881f99d6a6f692981f19a61ac2c0e500
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Wizards: QtQuick 2.1 import for Controls

Since Controls depend on Qt 5.1 we can use
a QtQuick 2.1 import.

Task-number: QTBUG-31011

Change-Id: I7524c54c3b77ccce89cc57292825f02e163fd7aa
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
QmlDesigner: Fix recursive dirty test

Change-Id: I62cb968eb21bb8399cd1918d68e405c9abe5d6e0
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Doc: edit text about deploying to Android

The default options for Qt 4 and Qt 5 are different.

Add background information about Android packages and
move information about specifying package settings from
the run settings topic to here.

Change-Id: I8ee0fac124e19233e85d17e1e37f060183149675
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Fix crash for long properties in outline model

Make sure the outline model only shows the first line
of a long property value.

Change-Id: Iac8059e927b10c400afec285a6dc6485cbbf49b4
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
QmlProject: Update code model when target changes

Change-Id: Ia8008748fb4d35507729c6ae684913e8bf72c985
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
QmlDebugging: Attach to QML application

Specify project source directory and sysroot.

Change-Id: Ie9287ef4da023159b131e67de51ffc218c4d2a70
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Squish: Corrected verifyBuildAndRun()

...to deal with the behavior described in QTCREATORBUG-9212

Change-Id: Ic69098be5a09fe6aa85c40218483c2d679584ab3
Reviewed-by: Christian Stenger <christian.stenger@digia.com>