Commit Graph

45754 Commits

Author SHA1 Message Date
Eike Ziller
ccc46bbe46 Fix crashes with (Runnable|Connection)::is<T>()
Another regression of 3f11ef9216
Default constructed Runnables/Connections have zero d pointer.

Task-number: QTCREATORBUG-16507
Change-Id: I230b661eba4c408a353a711f93f3163160980793
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-28 11:56:10 +00:00
hjk
438697219f ProjectExplorer: Fix comparison with default-constructed Runnables
Regression was introduced with 3f11ef9216.

The original check asserting 'that != 0' is still needed without
dynamic_cast, as d-pointer of 'other' can be statically 0 for
default-constructed Runnable objects.

Change-Id: Ibee898ffc61fb2f4a6a6276390fdf6d517fde546
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-24 11:31:46 +00:00
Eike Ziller
b06cc736f4 Fix compilation with QT_NO_ACCESSIBILITY
Task-number: QTCREATORBUG-16446
Change-Id: If75122c23a697f26ccf56391fe2e8d316aad6367
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-06-24 10:21:25 +00:00
Nikolai Kosjar
05c1efd8ef Clang: Fix dot-arrow-correction for not-yet-parsed unsaved content
The issue was re-producible with e.g.:

    void g()
    {
        // Type 'foo.' as fast as possible in the next line

    }

This led to "foo->" with completion results as if there was no "foo." at
all in that line.

We relied on a correct position for
translationUnit.sourceLocationAtWithoutReparsing(), but the just typed
characters were not yet reparsed. And we do not want to reparse at that
point since takes too long. We already determine the utf8 position for
the dot character, so simply use that instead.

This completes commit 17c1325cc4.

Change-Id: I669888b5c17ee63b2aec7b16c9921f9d79e281f9
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-24 08:31:28 +00:00
Nikolai Kosjar
a1749f9a14 Clang: Fix dot-arrow-correction for zero results
If there are no completion items, do not add snippets since these will
otherwise pop-up at undesired positions, e.g. when:

 1) Typing float/doubles: 0.
 2) Typing file suffix in include directives: #include "stdio.

Task-number: QTCREATORBUG-16188
Change-Id: Ie1c29826dc62dc447b2ff57b0c5537eb9d9511ef
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-24 07:29:27 +00:00
Marco Bubke
cc804d542d UnitTests: Disable small string test
Change-Id: I508e43923efc065fce9a79edebeff79606069abd
(cherry picked from commit 505c9be9af)
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-06-23 12:39:14 +00:00
hjk
3f11ef9216 Avoid using dynamic_cast<>
dynamic_cast<> breaks in cross-library situations. In the past
the issue was witnessed on Mac, this time on FreeBSD in
various configurations.

The workaround deployed here is to manually create unique
type ids in form of (addresses of) global variables.

Task-id: QTCREATORBUG-16462
Change-Id: Ie28fbb3d31d06c1a722a3d9ea808831191298e71
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Ralf Nolden <nolden@kde.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-22 07:31:41 +00:00
David Schulz
8c7913e0ba Clang: Fix compiling unittest on windows.
Change-Id: Id48d494510ee53a9e888e22a752e8210f3d4ae2d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-06-21 13:37:35 +00:00
Jake Petroules
069a4dc7dd Add macos value to qbs.targetOS.
Change-Id: I38f810ae72ff1f7ef428835b2eeeed6d726d4727
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-06-20 16:17:17 +00:00
Christian Stenger
ccda65bf83 AutoTest: Avoid fetching WorkingCopy from multiple threads
Instead fetch it once before starting asynchronous processing.
Backported from 72e6dd2ab1 on master.

Change-Id: If159311d1ce244c39482acb2ed0d7e33907a2933
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-06-20 13:30:21 +00:00
Leena Miettinen
083b1175c9 Doc: Link to released Qt Quick Controls 2 docs
Change-Id: I5ddb23ae1f78aae136869fd335030b530e1f266a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-20 08:16:12 +00:00
David Faure
52ed384549 cmake: resolve symlinks when comparing source directories.
Testcase: trying to use an existing build dir which was
made for /d/foo where /d is a symlink to $HOME/d.

To help understanding the problem, the error message now prints
both source dirs, the one found in the builddir and the one we expected.

Change-Id: I9a24fbd6ef3cf8108c5edba0d2a5b99ecdea0e89
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-20 07:37:41 +00:00
Eike Ziller
ff2ba0cef5 Bump Version
Change-Id: Ifc422cd795803d419a7aba20e37923fb9084cf43
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-06-20 07:22:40 +00:00
Christian Kandeler
68990f329f Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: I846f5f97071ad3567409dcdf6dfa7fe66931ada1
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-17 14:24:45 +00:00
Leena Miettinen
359127ec09 Doc: Update info about creating JSON wizards
Change-Id: Id45d3f9228ab35a57c0cc5a0d044bc510727c637
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-17 09:33:37 +00:00
Eike Ziller
7b5b1d17ab Add changes file for 4.0.2
Change-Id: I987e481d45842e7f88e4d968eff01a261855a116
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-06-15 11:58:43 +00:00
Ralf Nolden
9b4c91cacc qmake ABI detection fix for NetBSD and OpenBSD
The ABI dection works on inspecting the ELF header which should contain
the values for ELFOSABI, with the macro ELFOSABI_NETBSD equals 2 and
ELFOSABI_OPENBSD equals 12. However, on these systems the ELF binaries
are built using 0 so detection will fail and default to Linux, preventing
to use the correct qmake for Desktop Qt. Therefore, on these systems default 0
to use the host OS (NetBSD or OpenBSD), otherwise Linux as before.

Change-Id: I293389980860977ba6c2ad9903edd567f0a5b9f0
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-14 09:00:07 +00:00
Eike Ziller
47b4f2c738 Bump version
Change-Id: Ic6c37187806ae2848d229693c9bf030dba5d50c5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.0.2
2016-06-09 11:48:52 +00:00
Eike Ziller
cda5f70cd9 Change log: Fix indentation
Some markdown implementations want 4 spaces for
second list indentation level

Change-Id: I0dfa3ac6c0ffe7231b56d4ec39ec51335cf5f018
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-06-09 07:17:55 +00:00
Friedemann Kleint
31f484ea1a qtcdebugger: Register as post-mortem debugger for 64bit applications as well.
Add mode argument to registry access helpers allowing to access the 64bit
registry from 32bit applications and vice versa using special REGSAM
values, similar to the new QSettings formats introduced in Qt 5.7.

This allows for setting the 64bit post-mortem debugger when running
as a 32bit application on 64bit Windows. The -wow argument is extended
to indicate accessing the 64bit node from 32bit.

Task-number: QTCREATORBUG-16386
Change-Id: I7f003673777e4b8c1b259ba1905a4207b4ce0b43
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-06-09 06:12:26 +00:00
David Schulz
60f4a48666 Cdb: Disable noisy symbol loading.
It may cause hick ups when debugging an application that has pdb files
larger than 1 GB.

Change-Id: I596d8f39396f39164f4b59df8ac0b06fbf2ad358
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-08 07:46:46 +00:00
David Schulz
6863acfe91 Use general vc environment script instead of platform specific.
Just use the specific scripts to detect whether a toolchain is
installed.
Partial revert of 2be4d2643a.

Task-number: QTCREATORBUG-16359
Change-Id: Ic8c8fbc30f0c1269aeb51abbd21902097bd6c285
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
v4.0.1
2016-06-06 13:26:59 +00:00
hjk
023b78545f Debugger: Revert parts of the 'arrayIndex' optimization
The parent's address is not always the base address of the array
data, but often a wrapper like QVector, so the correct computation
of the item's address is more involved, removing the benefits of
the optimization.

Change-Id: Iecb19799addc1502649fefbad0953b77947f4193
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-06 09:17:14 +00:00
Christian Kandeler
b50e9e546f QbsProjectManager: Do not pop up the message pane.
Only messages of type "info" appear there these days. They should not
force the message pane to open.

Change-Id: I2e0c01574eecffb7b9df41594df8abb6fd722397
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 10:36:22 +00:00
Thomas Hartmann
23f873ccbc QmlDesigner: Crash fix
Trimm expression to avoid ambiguity that leads to assert.

Task-number: QTCREATORBUG-16059
Change-Id: Id5f0378e38f0edeba22236c6e9519c8107e4a311
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-06-03 10:20:55 +00:00
Christian Kandeler
7c3013a54a Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: I29c839b4e249808124c225cc07f89cda97d5b755
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2016-06-03 09:32:26 +00:00
Eike Ziller
c7419c1fff More change log for 4.0.1
Change-Id: I383cafdf23b254e07bb08232e75383279b0eb906
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-06-02 13:34:44 +00:00
Robert Loehning
79623d5774 Squish: Base getPaths() on new path functions
Change-Id: I54cd03bc1d24b715df15de37291f776f9867416f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-06-02 09:35:16 +00:00
Christian Stenger
b04b5e5d75 Squish: Provide functions for getting paths inside Qt installation
Change-Id: I273304f0c6d451d28a256c99588479525eef95e4
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2016-06-01 14:50:25 +00:00
Victor Heng
48423414f6 JsonWizard: Check widget visibility when determining if it's mandatory
The wizard is unable to advance when a mandatory field is hidden. Assume
a hidden widget is not mandatory.

Change-Id: I19bdc1a661d91b75151d3aec34ad9d584002a556
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-01 04:55:45 +00:00
Robert Loehning
4117ba7313 Squish: Replace remaining shell usages
Change-Id: Id7c2c1a17fed053f2e8601fc4c7716705e260431
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-31 14:52:17 +00:00
Robert Loehning
7d51d3849a Squish: Silence more warnings
Change-Id: I6259382a2359a795654a6d6536112c090ede130f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-31 09:15:35 +00:00
Orgad Shaneh
7eca0803d9 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: If6cfb3db0150ae6d49391996a6f2a279990e130b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-05-31 08:51:51 +00:00
hjk
8ddce2fbd4 Debugger: Disable Run in Terminal with LLDB globally
This forcefully ignores the Run in Terminal setting, i.e. debugger
starts up properly, but without the console. It a stop-gap measure
deemed less harmful than the 4.0 'start up gets stuck' behavior.

Change-Id: I015147c4db23bf91ea09001ce923fbab97eeae77
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-30 14:07:25 +00:00
hjk
3a6ee2c305 Debugger: Move console stub procedure creation
... to a place where it can potentially be re-started.

Change-Id: Icc7ba4512533cdef659507442eec069e073f84b1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-30 14:07:17 +00:00
Christian Kandeler
299d93e77b QbsProjectManager: Fix crash on project unloading.
We can't just blindly delete the qbs jobs after cancelling them, as that
is not a synchronous operation.

Task-number: QTCREATORBUG-16273
Change-Id: I29787da857e70404a1be1b4bc54921f5a8ce448b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-30 12:53:24 +00:00
Christian Stenger
0e331a2e29 Squish: Adapt to changes in Quick Application template
The template has slightly changed in 6b506b34ec.

Change-Id: Id58e67beacaac046c6dd235b715f360dc7ef4c09
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2016-05-30 12:35:39 +00:00
Tobias Hunger
8405a16179 Revert "CMake: Pass STATIC types on cmake execution"
I have missed that this change was headed for 4.0 instead
of master. It breaks the build there.

This reverts commit 0043c721c2.

Change-Id: Ia359798c2636b2b4699de9cc73484ec12a757601
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-30 12:06:54 +00:00
Orgad Shaneh
0043c721c2 CMake: Pass STATIC types on cmake execution
Change-Id: Ie3401d009044a46af7fac314d1f29975543a44b0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-30 11:34:26 +00:00
Orgad Shaneh
6531ff5672 CMake: Unindent a lambda
Change-Id: I71af11e3fba9a47c24b06bb19617ab212ee5b8a1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-30 11:34:07 +00:00
Robert Loehning
7e9aa9c908 Squish: Silence warnings in tst_default_settings
Change-Id: I668cc7b1fcb569b50d2178fe792f566721c9d4d4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-30 10:40:12 +00:00
Robert Loehning
c1e7cf84e4 Squish: Do not use shell in getOutputFromCmdline
Change-Id: I731b119169063912cd3b528a1a6a58727002ae67
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-30 09:13:04 +00:00
Christian Kandeler
b4e11b191b QbsProjectManager: Prevent transient build dirs from becoming permanent.
If "dry run" is enabled for the project resolving step, then the rule
execution step needs it too.

Task-number: QTCREATORBUG-16343
Change-Id: I6db7ad68b447299d2b4848f128a262e6097786d4
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-05-27 17:45:53 +00:00
Christian Kandeler
d89fc0bfea QbsProjectManager: Logging improvements.
- Make messages with level "warning" or "error" appear in the Issues
  pane.
- Do not suppress messages of level "info". People add "console.info()"
  calls into their projects for debugging and they expect to see the
  output in Creator.

Task-number: QTCREATORBUG-15983
Change-Id: I6c84bc1ef08dbf85d7e88af864b18f64fcedfe1a
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-05-27 17:42:47 +00:00
hjk
74b6d2e708 Debugger: Clean up GdbEngine member data on finish
Restarting with cached outdated information is problematic.

Change-Id: I396da2fef96a161c1ab150134b8e65a758a16d58
Task-number: QTCREATORBUG-16355
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-27 12:34:20 +00:00
Christian Kandeler
8271277d30 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: I9452fd110330713ea58593cc4c4f6673533b2d41
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-27 12:04:05 +00:00
Ulf Hermann
17ee4990d1 QmlProfiler: Allow for a maximum depth in flame graph view
It gets unwieldy and eventually it produces a stack overflow if you
have insane recursion.

Change-Id: I8ae6bf018572d9b240aec01d5d3319544799e9bb
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-05-27 09:47:59 +00:00
Jake Petroules
b67b3160b6 iostool: Print ALL error messages recognized by MobileDevice framework.
Task-number: QTCREATORBUG-16328
Change-Id: I45f8042dee4293bd40e204002c164eb99ac754df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-27 09:38:12 +00:00
Takayuki ORITO
6b506b34ec Add properties to template for Qt Quick Application.
It imitate template for Qt Quick Controls Application.

Change-Id: I3440c96f06f3607b43811399427e341e73dea657
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-27 08:48:32 +00:00
Christian Stenger
e564abdd9a Squish: Use more stable subprocess code
Change-Id: I9a895831f9d57562a9eeb8491cc7f46c1da2eba1
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2016-05-27 04:35:49 +00:00