Commit Graph

50929 Commits

Author SHA1 Message Date
Orgad Shaneh
a9c967263e MSVC: Minor cleanup
Change-Id: I4aa9684e04e57a96c3fc624236c2c95817306d76
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 08:52:42 +00:00
Orgad Shaneh
1d6d799d22 ToolChain: Compare also by language
Otherwise C/C++ with the same ABI are detected as duplicates.

Change-Id: I99090b4cc776047b1ecb958242d0b4f5ecec5f0a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-31 08:52:36 +00:00
Leena Miettinen
75c5afef48 Doc: Setting when property for state in Design mode
Change-Id: I3462f7c5a8ea436d979c12bc02ae1e2f063eeb4b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-31 07:57:48 +00:00
Rafael Roquetto
501bf4918f Fix CDB detection
To make sure CDB is really installed on a Windows Kit, we need to assure the
'inc' subdirectory is present. Before this patch, if, for instance, the
Windows 8.1 kit is present (including a Debuggers subdirectory), but without
CDB, the first test under "32-bit" qmake will yield a false positive,
preventing the following 32-bit kits to be tested, then to fail under the
64-bit qmake test because the 'inc' directory is inexistent, finally
bringing about an empty CDB_PATH variable.

Change-Id: I1d7cf3350f4a63a556ef106faa5b3f0593dcf8c8
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-10-31 06:37:29 +00:00
Thomas Hartmann
2cab55ea1a QmlDesigner: Allow JavaScrip blocks in Connections in .ui.qml
Inside a Connections item JavaScript blocks should be allowed.

Change-Id: Ia6a08fc575a72980bd53a32249bf302b7a426266
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2016-10-28 14:27:58 +00:00
Christian Kandeler
11dd0f4c6f Update qbs submodule
To HEAD of 1.6 branch.

Change-Id: Ideda150d8126e09fa105b3b85848f7af102a29d4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-10-28 14:16:07 +00:00
Leena Miettinen
1562ec7bce Doc: Using code completion in Binding Editor in Design mode
Change-Id: I4889d6d247f6d8d8cb758c65eea917736f33262d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-28 14:11:31 +00:00
Tobias Hunger
b75c6444d1 Core: Add a reaper that will asynchronously clean up QProcesses
Change-Id: Ic24dde261eac775d1a5854b8dbcbfeb002d0f729
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-28 12:28:46 +00:00
Ulf Hermann
424005c911 QmlJS: Release the same documents we keep before
When rescanning imports we generally get a new version of the parent
document. When replacing the cached documents we want to release the
old ones, not the new ones. Failing to do so leads to types
disappearing from the QML code model and to leaking memory.

Task-number: QTCREATORBUG-17175
Change-Id: I3994444ac0a6cd87f9d9d0b47ab3d6015660e416
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-28 11:39:18 +00:00
Tobias Hunger
9e72dc343c Wizards: C++11-ify code generated by JSON wizards
Task-number: QTCREATORBUG-16983
Change-Id: I1f936f25f4e9756239e04d677cec92316e3dc75b
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-28 11:07:23 +00:00
Eike Ziller
ff21689487 iOS: Make runSimCtlCommand static
Doesn't depend on state.

Change-Id: I6c0004bf6b6d1e30171b08e1b404d82242c42d99
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2016-10-28 10:06:23 +00:00
Ulf Hermann
c0ff0b7237 IosTool: Always listen on both IPv4 and IPv6
We don't know which protocol QtCreator will choose to connect to the
QML debug server. Currently QtCreator uses whatever "localhost"
resolves to.

Change-Id: Id41fb54e5eb975581d382767bdd125fbb9801f4f
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 09:06:54 +00:00
Ulf Hermann
779c54872a IosTool: Don't restrict the number of pending connections
Apparently a failed connection counts as "pending" for a while before
it is finally removed. The QML profiler aggressively tries to connect
with different timeouts and multiple sockets, so quite often there is
such a failed connection which then prevents new connections from
getting established.

We already enforce the limit of only one successful connection via the
SingleRelayServer subclass.

Change-Id: I441e2ed898d28f04359a9976d5b25569b8447f3f
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 09:05:39 +00:00
Eike Ziller
4f06d084fc Source packages: Fix that tar.xz was not xz but gz
Change-Id: I5379cdfe963f53cca04317ea51f544c40743db7b
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
2016-10-28 08:50:00 +00:00
hjk
bd2653fbaa Debugger: Introduce and use type ids instead of type in dumpers
Change-Id: I569d13d4f5d66cf1606b2b5d047b415659de539b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-28 08:11:38 +00:00
Orgad Shaneh
a6427453f4 Fix icons that moved from core to utils
Change-Id: Id3151b1cce2d97b2bfb6debaf3cebe53cd6d88ed
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-27 16:12:35 +00:00
Leena Miettinen
7b25da7e22 Doc: Describe new flame graphs in QML Profiler
You can now visualize memory consumption and allocations
of functions in addition to their time consumption.

Change-Id: I1c36019a5e3a161332a956a4b2d4aa833ea781dc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-10-27 15:06:04 +00:00
Tobias Hunger
aa118539a4 CMake: Fix warnings about cmake configuration model
The index was handled wrongly.

Change-Id: I8a98c7a16e32798a9b7662c6c5c1683d248580da
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 15:01:53 +00:00
Daniel Kamil Kozar
949215341d Actively monitor the recent projects list for the projects' existence
Instead of checking whether the recent projects exist on startup, check
it before returning the project list.
Additionally, update the welcome page (and thus projects) when the
application state changes, which gives the proper behavior when
minimizing or switching between applications.

Change-Id: Ib172f0b53fdc65fbd6de00041920f246d10da6a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-27 14:49:02 +00:00
Ulf Hermann
10ddde4125 iOS: also process stderr to look for QML debug port
This is where the "Waiting for connection ..." message usually appears.

In general this mechanism of first replacing the port in the message
and then parsing the message to figure out that the iostool (not the
application) is actually listening is very confusing and backwards,
but fixing this is material for the master branch.

Change-Id: I73d3c5a34482403d275e6ea7a9ad59996121b02e
Task-number: QTCREATORBUG-17141
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-27 14:08:35 +00:00
Tobias Hunger
bacb0a74a0 Qt options page: Simplify code a bit
Change-Id: I70ea3134550c01f6c81f8a15d2730dc906d834a7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:59:23 +00:00
Leena Miettinen
25b4e9c8ce Doc: Describe code completion in CMake editor
Change-Id: Ia8d2a5f6c13f3d1f8372e201ef65d39811589e10
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-27 13:23:10 +00:00
Thomas Hartmann
48537ca197 QmlDesigner: Crash fix
Editing subcomponents should only be possible for
graphical items.
Qt Creator was crashing in case the node was something else.

Change-Id: Ia0e286c666b0b485da0817678ca2048ace260c9b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:19:15 +00:00
Thomas Hartmann
d8eb2bf762 QmlDesigner: Fix warning
Change-Id: I751ef6b28dd57a98b1989a875d4c367f8bf50ece
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 13:19:09 +00:00
Orgad Shaneh
3de8b56d88 Theme: Remove some more unused entries
Change-Id: Ie2df7520871db21930c39fd976fa8739d354a2dc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-27 12:54:22 +00:00
Eike Ziller
51e755d413 Version bump for after 4.2-beta
Change-Id: Ide9a51c899914531e9d23a2adf614d424a2746d8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-27 11:45:52 +00:00
Tobias Hunger
4f374d4bbf Android: Clean up Kit updates
Change-Id: Iab45062012fb91a8f62ee227af8b6a7ab94a8fed
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-10-27 10:36:44 +00:00
Tobias Hunger
5a2001f730 Android: Add C toolchains
This should fix kits complaining about wrongly set C compilers and
ABI incompatibility between C and C++ compilers.

Task-number: QTCREATORBUG-17165
Task-number: QTCREATORBUG-17166
Change-Id: Ia002490b471e0f5306c3a76b27158869920452ed
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-10-27 10:36:02 +00:00
Eike Ziller
cf47f3e807 Merge remote-tracking branch 'origin/4.2'
Change-Id: Ia346d86ad5fabe9d91454ea642cbeac5ec862699
2016-10-27 12:10:26 +02:00
Tobias Hunger
c777bd32bc QtSupport: Do not show Type column in Qt options page
Nothing ever fills that column, so do not bother to show it.

Change-Id: I5787aa72ee5c414fbf01ca01eed3aea20b6b7201
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-27 10:01:10 +00:00
Orgad Shaneh
0e134d260e Theme: Remove unused icon entries
Change-Id: I867aa0b8737b56fc3e8d357bb1559acad740ccf0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-27 09:39:42 +00:00
hjk
0bf4bfcade Debugger: Don't optimize dumper tests
Better finish a slow build than waiting forever for a potentially
faster one.

Change-Id: Idec49294ec10f8dee41b061b3eeb7bf1e696d2a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-27 06:49:25 +00:00
Thomas Hartmann
6eddf41886 Documenting QmlJS error message
I also fixed the "."

Change-Id: I65cdc6be8b2de31af411d1172780281afd20a4f9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-26 16:41:53 +00:00
Tim Jenssen
55db42fe2c QmlDesigner: remove styling of the output pane
Setting objectnames to reduce possible influence to other
widgets.
Introduce a background QWidget to set the background color.
AutofillBackground was not working for unclear reason.

Change-Id: I4acd5b7ed5ff9d63b5320b133a82099c5888b839
Task-number: QTCREATORBUG-17172
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-26 16:33:08 +00:00
Thomas Hartmann
61dadc6da1 QmlDesigner: Disable validator in any case
We have to disable the validator even if the root node has no id.

Change-Id: I021c33909dfa7c3aa3154d1782a589cef9151af5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-26 16:14:20 +00:00
Thomas Hartmann
e012e42ff2 QmlDesigner: Do not allow certain ids
Some ids are likely to create issues, because they collide
with property names.

Change-Id: I688ed0751c227afdd3ef59ba0f31b1334b26eaea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-26 16:10:51 +00:00
Thomas Hartmann
99aaf86a33 QmlJSCheck: Add error for ambiguous ids
Certain ids can be ambiguous and have name clashes with properties.
Those ids are not supported in the designer.

Change-Id: Ida293d24611c467df6ef813a541e8abfc06b51cb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-26 16:08:29 +00:00
Thomas Hartmann
de6021c71a QmlDesigner: If no types are available the dialog is implicitly canceled
Task-number: QTCREATORBUG-17179
Change-Id: I89cf2240f9f54072dc35c40fb56a709284ff3187
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-10-26 16:05:05 +00:00
Tim Jenssen
a0f1473dc1 QmlDesigner: remove unnecessary code
Change-Id: Ib10fa0513f326b3047b93f8cbedc1a11f2bd1f90
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-26 16:02:59 +00:00
Tim Jenssen
e25ac57f38 QmlDesigner: spaces only change
Change-Id: I1ecb9425148843558e8bf2deffde2aa2290ded4b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-10-26 16:02:48 +00:00
Alessandro Portale
2534cb017b ScxmlEditor: Fix the align* and adjust* icons
Use toolbar variants in the toolbar and menu variants in the menu.

Change-Id: Ie79631d80ff0f2c4c3b19b216def10d79bdd8454
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-10-26 15:30:29 +00:00
Leena Miettinen
dfcd6537d2 Doc: C and C++ compilers can now be added separately
Update screenshots.

Change-Id: I02be7d5be7865f58d6842be0e064a205034becf2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-26 14:43:13 +00:00
Leena Miettinen
4d1d4a5e2d Doc: Add link to Clang Code Model settings documentation
...to the list in the Configuring Projects topic.

Change-Id: Iab1c540a85172aa3b7d99be387b2208320f4d5f9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-10-26 14:42:59 +00:00
Tobias Hunger
63c339ffba Wizards: Generate header guard of cpp classes based on header file name
Generate header guard of cpp classes based on the header file name, not
based on the class name (plus the preferred extension for header files).

Task-number: QTCREATORBUG-15864
Change-Id: I8c2b5d4a78e59a2389091ed5933b5bdeae8e5730
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-26 14:05:24 +00:00
Tobias Hunger
3cfa0c0de7 Qt: Do not send dataChanged if nothing changed
When setting the warning/error icon on a Qt version in the Qt options
page: Do not send dataChanged if the icon has not actually changed.

This fixes the selection getting broken when two Qt versions happen to
have the same displayName.

Task-number: QTCREATORBUG-16644
Change-Id: I7722fbc021388be237e59a59bd136c61f611ad52
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-10-26 13:44:59 +00:00
Orgad Shaneh
b383eeae82 Changelog: Add credits
Change-Id: I56dc048d65e2665f1b5e3489b7dfff6891f67c41
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-26 13:16:57 +00:00
Nikolai Kosjar
759c2d562f Change log: Small correction
Change-Id: I7524f982a1733dca253ac78c6c49b711aa0534a8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-10-26 12:09:25 +00:00
Ulf Hermann
2d95057434 QmlProfiler: Open load and save dialogs deferred
This works around QTBUG-56746, by decoupling the dialog from the
context menu.

Change-Id: I2f13b01003a10598e6f69b14bb7eb8e9141acad8
Task-number: QTCREATORBUG-17149
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-26 11:46:48 +00:00
Tobias Hunger
ca6f37f3bd SVN: Fix topic
Use svnversion in favor of svn info to report the topic for SVN versions.

Task-number: QTCREATORBUG-13611
Change-Id: Ia1f61c0d3b9bfb871d42449478029835c7b2796f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-10-26 11:01:04 +00:00
Ulf Hermann
e07b495b70 QmlProfiler: Don't delete QObjects from outside their home thread
We cannot do this because the parent object needs to be notified.

Change-Id: Id70de2acea4aa241ea0e85b5b02327e1f91b7e68
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-10-26 10:56:23 +00:00