Commit Graph

61529 Commits

Author SHA1 Message Date
Ulf Hermann
0db635ac58 Tracing: Restrict category tooltip to label text
We don't want the tooltip to show up on the disabled expand button.

Change-Id: I0ac6f185a6d6a5e01d07e1dcdacba736816f151e
Reviewed-by: Tim Henning <tim.henning@kdab.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-01 11:48:04 +00:00
Michael Weghorn
3cc286de3d ToolTipWatchItem: Fix column mapping
Commit e95fd876 ("Debugger: Make the time stamp recording
option work for single items") introduced an enum, and the old
(off-by-one from column 1 on) plain integers were used here,
leading to the problem that the second column would always
show "0" and the actual value would go to the third column
instead of the second one when hovering over a variable
with the mouse in debug mode.

Use the enum values to make it work as expected.

Change-Id: I3a66596281e27a3bcc953ee6ea461755d5e64d5c
Reviewed-by: hjk <hjk@qt.io>
2019-07-01 11:11:01 +00:00
Christian Kandeler
db288667fe ProjectExplorer: Prevent inadvertant "configure" in target setup page
When the user presses the return key, this must only lead to project
setup if clicking the "Configure Project" button would have been
possible. Otherwise the prerequisites are not met.

Change-Id: I247b9ff3a0600798667c7f95a99e7b61e7171706
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-01 10:59:09 +00:00
hjk
b9d6721be8 ProjectExplorer: Reduce ProjectExplorer::configureAsExampleProject()
... to the bits that are actually used.

Change-Id: I39a6ed1f4136d75b776bb89eec6165479097a4ec
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-01 10:05:19 +00:00
David Schulz
91684894fb LSP: Fix language server auto tests
broken by ea81b676c7

Change-Id: I4e4359669de31e2ddb1e123bece6bd75222ec888
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-01 09:15:11 +00:00
Cristian Adam
b519dc541a CMake build: Fix building with CMake
Change-Id: Ib1ba9d286a029d20106d105b3db7fb34596badbd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-01 07:43:04 +00:00
Thomas Hartmann
fd36a0b2cb QmlDesigner.MetaInfo: Add font to value types
Change-Id: I4851e8d86634f1653bb898be7c2f0a7d6691b2d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-28 17:50:50 +00:00
Robert Loehning
ec584e6e90 Project Explorer: Fix number of argument
Change-Id: I0680b127fbddd664c0c7618b94cabd5b6e5b4136
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-28 11:40:33 +00:00
Eike Ziller
b3de8fc809 Bump version to 4.10.0-rc1
Change-Id: I95991a4f46be2f2bc1600ca38d14b9b03269fc0b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-28 11:05:00 +00:00
Eike Ziller
10098b2508 Merge remote-tracking branch 'origin/4.10'
Conflicts:
	CMakeLists.txt
	tests/unit/unittest/unittest.pro

Change-Id: I64296ad31502d9b35012da129a28e9277e9fcf8e
2019-06-28 12:50:03 +02:00
hjk
5dbfd46bcf ProjectExplorer: Merge BuildConfigurationFactory::availableBuilds
... and availableSetups as far as mechanically possible.

Change-Id: Ia1d7babe943eea25da97cef7838187c234378673
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-27 14:19:53 +00:00
hjk
f94e55b807 ProjectExplorer: Align signatures of BuildConfiguration
... availableBuilds() and availableSetups().

Goal is to merge them and inline all the local createBuildInfo()
functions.

Change-Id: I9f19093163808b6da6dc83977894420e08a1edd9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-27 13:59:39 +00:00
Christian Kandeler
a111f25126 Project import: Fix focus issue
If the user presses return in the path chooser, and the directory does
not contain a proper build, then a message box will come up, after which
the focus might not be at the path chooser anymore, which breaks our
(admittedly somewhat brittle) logic. So we now keep an explicit state
that tells us whether the parent widget should be allowed to handle the
return key or not.

Amends 50dc5674d3.

Change-Id: Ia4643b57641fda591292d20e6883e1c8bc281c0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 13:21:57 +00:00
Robert Loehning
f25408c436 Squish: Remove outdated code
Change-Id: Ic4c3cf43aed15756aaeaa4a5e7ed5240bed2545c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 12:59:32 +00:00
Robert Loehning
0b5d60db53 Squish: Update tst_git_local
Change-Id: If3b3eb69a7927d0ecbc5d10afee6ab3fdfbd448b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 12:40:15 +00:00
Marco Bubke
e777ad57c5 Clang: Add reset to ModifiedTimeChecker
We can reset some file once to flag a file dirty if the included file has
changed.

Change-Id: I8763bb80f65882fba4e70057f569234e77097927
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:22 +00:00
Marco Bubke
e031ada154 Clang: Watch only PCH sources
We watched all sources but we do not want to watch the sources of the
project part because they are not used to build a PCH.

Change-Id: I700cd6077fc54230c9be94d620043cf3f10cf9ea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:12 +00:00
Marco Bubke
cbfd9dc16b Clang: Update ModifiedTimeChecker in SymbolIndexer
If a watched file changed we should update the ModifiedTimeChecker too.

Change-Id: Ie43f5cf5b6dd4ddb1383168a1326add21f6e3e9d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:02 +00:00
Marco Bubke
bbd58ca30b Clang: Watch directories instead of files
Because there a limited resources to watch files we watch now directories.
So we need much less resources.

Change-Id: Iac558832e9521a7a1a67c5ea99b42ad1b0b5129c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:31:52 +00:00
Christian Kandeler
9d290fc682 Fix build with mingw 5.3
Change-Id: I81609bb475ca1de73acbb3fb60b76b40ff8a39a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 09:01:05 +00:00
Christian Kandeler
375ec4c51b Wizards: Fix qbs project template for QtQuick app
Change-Id: Iffc9dad352d78f54557f45b36687c543935853dd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 09:00:35 +00:00
Christian Stenger
6288e03264 Wizards: Fix regular expressions
Although this is valid JavaScript matching the '.' is
not working as expected.
The directory always gets messed up by replacing the
first character with a dash. Use an alternate regular
expression and also ensure the replacement happens
globally instead of once as we want to replace all
dots by a dash.
As at it fix handling of the file suffixes as well.

Task-number: QTCREATORBUG-22625
Change-Id: Ide189fe50e29994abfb368e503050b9b413aba9f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-06-27 07:18:19 +00:00
Eike Ziller
33d49ec072 Fix lupdate issues
Change-Id: I0a7cc0650b6427d56b4415b2fff6cf39e29c96f9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 06:59:31 +00:00
hjk
e7c6169d70 ProjectExplorer etc: More FilePath usage
Mostly for project files.

Change-Id: Icb6059f80758865e42cc9f9c092ec6782770dfd7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-26 16:02:23 +00:00
Eike Ziller
dcb03c115e Add changes for 4.10 beta2
Change-Id: Ie399b7445f31bb5e597df7ab81582ecb9ea83ad7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-06-26 15:27:31 +00:00
hjk
f878486fcb Use build step ids for construction in more cases
Change-Id: If2deb7c02c082e29cc6b1f0408c0d0e06d1c584b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-26 15:00:30 +00:00
Orgad Shaneh
81ee28fc98 VCS: Add seconds to timestamp in output window
Useful when there are multiple commands at the same minute.

Change-Id: Ie5c344fe3d19e54e5b2fce1a5b3dc0cfdeb267e2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-06-26 14:25:19 +00:00
Michael Weghorn
aedc0ca91b Pretty printers: Unify code for different allocators
The code path for allocators other than
'std::allocator' does work for 'std::allocator' as well,
so unify this.

This also fixes the case of std containers when
'std::allocator' is used and the compiler flag
'-D_GLIBCXX_DEBUG' in place which results in size assumptions
that were made in the now dropped path to not be fulfilled,
thus leading to an incorrect display.

Fixes: QTCREATORBUG-22606
Change-Id: I2b6f8ac9933b210d26197975017292e2fc227541
Reviewed-by: hjk <hjk@qt.io>
2019-06-26 13:40:13 +00:00
hjk
54c82c950c iOS: Inline IosBuildStepConfigWidget
In preparation of aspectification.

Change-Id: I0a97440aa6c4bc749af51219ccace519982bfaa1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-26 12:59:33 +00:00
hjk
5d6c84777a AutoTools: Prefer build step ids for setting up the build configuration
Essentially a proof-of-concept that knowing the actual classes is
not needed.

Change-Id: I82b1664c93a25e418860bda77f66ec77144cf658
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-26 12:51:23 +00:00
Marco Bubke
98d7b502ca ClangRefactoring: Clear input files after collecting symbols
Change-Id: Ic4fbaac7ad3b3f80223d6cbb84a34dffa741fc4f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-26 12:21:24 +00:00
hjk
7ebfa87dc2 Qbs: Inline qbsinstallstepconfigwidget.ui
Prelimimary step towards aspectification.

Change-Id: I3ce6e3ca3ecd3fbb858525a533202af2fd0e6ff5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-26 12:19:21 +00:00
Eike Ziller
63c4428287 Merge remote-tracking branch 'origin/4.9' into 4.10
Change-Id: I53ceb69b1558520e7d7b6db8b7ebdd5c1590e991
v4.10.0-beta2
2019-06-26 11:58:54 +02:00
Nikolai Kosjar
f223c094a1 ClangTools: Show hint when disabling "Build the project before analysis."
Show also the same hint as a tooltip.

Fixes: QTCREATORBUG-22382
Change-Id: If1b594994cea387d6727775ce4c28c21d51f2d86
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-26 08:55:10 +00:00
Michael Weghorn
5eba3bde93 Fix std::basic_string printer with custom allocator
This fixes expansion of 'std::basic_string' in the locals
view when a custom allocator is used (which previously
would result in "<not accessible>" being shown);
for example, when expanding 's' at the breakpoint
in the following example:

    #include <string>

    template<class T>
    class myallocator : public std::allocator<T> {};

    int main()
    {
        std::basic_string<char, std::char_traits<char>, myallocator<char>> s("hello");
        return 0; // break here and expand value of 's' in locals view
    }

Change-Id: I0ca98de50d83a1f6e6f019acc37a1302a05fdba8
Reviewed-by: hjk <hjk@qt.io>
2019-06-26 07:18:06 +00:00
Michael Weghorn
01f26bd5b7 Fix std::vector<bool> printer with custom allocator
This fixes the std::vector<bool> pretty printer, which
previously just showed "<not accessible>" for variable
'v' for the following sample code (with system GDB
pretty printer disabled so that the custom
pretty printers are used):

    #include <vector>

    template<class T>
    class myallocator : public std::allocator<T> {
    };

    int main()
    {
        std::vector<bool, myallocator<bool>> v;
        v.push_back(true);
        return 0; // break here and check value of 'v'
    }

Change-Id: Ia9883aa0b06a396cb3546ac2594a82c1b2062b80
Reviewed-by: hjk <hjk@qt.io>
2019-06-26 07:17:39 +00:00
Michael Weghorn
0313cdbd87 gdbbridge: Convert children to gdb.Value
'Dumper::fromNativeValue' expects an object of type
'gdb.Value'. However, the 'pretty_printer.children()' iterator
may return values that first need to be converted to this,
as documented for function 'pretty_printer.children' at [1]:

> This method must return an object conforming to the Python iterator
> protocol. Each item returned by the iterator must be a tuple holding two
> elements. The first element is the “name” of the child; the second
> element is the child’s value. The value can be any Python object which
> is convertible to a GDB value.

Therefore, explicitly convert the value to a GDB value first.

This fixes the expansion of 'std::vector<bool>' when system
GDB pretty printers are enabled which previously led to
"<not accessible>" being shown e.g. for the following example
(expand 'v' in the local variable view at the breakpoint):

    #include <vector>

    int main()
    {
        std::vector<bool> v;
        v.push_back(true);
        return 0; // insert breakpoint here
    }

Side note: GCC's pretty printer for 'std::vector<bool>' previously
returned either '0' or '1' for the element values, thus leading to the
problem described above. With this patch in place, the elements are
shown when the vector is expanded, but the shown type is 'long long'
(since that's the type that GDB seems to automatically assign when
constructing a 'gdb.Value' from these integers, at least with
GDB 8.2.1 on amd64). This will work as expected ('bool' shown as
type) from GCC commit [2] on ("Have std::vector printer's iterator
return bool for vector<bool>").

[1] https://sourceware.org/gdb/onlinedocs/gdb/Pretty-Printing-API.html
[2] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6c7d761a3f5fd7d19795d1d4b9b027a04b3fe88b

Change-Id: I9047affa5b4369befd2e2386c8a6b04c66c4b632
Reviewed-by: hjk <hjk@qt.io>
2019-06-26 07:16:42 +00:00
Robert Loehning
38685de894 Squish: Update openCmakeProject
Change-Id: I17f1a271eafbcff24987fbd7e31dc6cc8c789b84
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-26 06:58:32 +00:00
hjk
32bbf2a3b3 Debugger: Introduce a tree level above stack frames
This level is meant to take the role of current thread handler
in the long run, allowing per-thread stackviews in each engine.

For now, the additional level holds just a single, invisible
dummy item playing the role of a "current thread".

Change-Id: Ief6131500fc1aa8902f2313038a65840b80b495b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-26 06:58:03 +00:00
Nikolai Kosjar
c54ef80a4e CppTools: Ignore -f[no-]keep-inline-dllexport
Fixes: QTCREATORBUG-22452
Change-Id: Ic17e6331e92f23c31f4f7319257f2d09c66af8a4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-26 06:37:18 +00:00
Nikolai Kosjar
2e528917f0 CppEditor: Add another sanity check to ParseContextModel
Task-number: QTCREATORBUG-22596
Change-Id: I222656503477ea8dbd3b65801d1816b77baa7c39
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-26 06:36:39 +00:00
Eike Ziller
8181363fa9 Add changes file for 4.9.2
Change-Id: Icce93b9daed51603093cf1efe8c904253984351b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v4.9.2
2019-06-25 19:51:39 +00:00
hjk
c39f2866c7 RemoteLinux: Simplify AbstractPackaging and derived step
Change-Id: I1a9fc0947fcca358ce3e8ca24c6430bc973f131f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 16:24:18 +00:00
Christian Kandeler
ce4f57a01c Make it possible to continue with "Build All Projects" after errors
The user might still want to get the second project built after the
first one failed.

Fixes: QTCREATORBUG-22140
Change-Id: I644e64ae2267b25e9804cb4a614edd5a3340a2e7
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 16:23:55 +00:00
hjk
10b61d584b ProjectExplorer: Mechanically simplify ProcessStep summary update
Change-Id: If30f676b6ad4999ea56fce4fb650007b73d2bc32
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 16:18:18 +00:00
hjk
5026d21c4e BareMetal: Remove unused deployment step
Was apparently not really needed and can be easily
re-added nowadays.

Change-Id: Ib7f46f7b8ea0624d0d3f12a8ef42092dd51d78d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
2019-06-25 16:06:52 +00:00
Christian Stenger
8d0e57e7db Squish: Fix tst_qml_locals
The locals and expressions display nowadays an additional
column which might be hidden.
Use the right 'Value' column to fetch the values.

Fixes: QTCREATORBUG-22617
Change-Id: I646b05eed607c5941f2713013221eb4c511d901b
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-06-25 14:49:51 +00:00
Ulf Hermann
29e92e4dda PerfProfiler: Connect the updateRunActions() signal earlier
The startup project can get enabled before we create the views. In that
case we miss an update and the run button stays disabled.

Fixes: QTCREATORBUG-22616
Change-Id: I5af9075a4899a5dd0e5f69c13348510cde47285d
Reviewed-by: hjk <hjk@qt.io>
2019-06-25 14:06:52 +00:00
hjk
7dc1b39a61 Nim: Simplify NimCleanStep
Change-Id: I76213999b394fb18e228cf3c4d24a47c26afb398
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 13:41:57 +00:00
hjk
1f0a4c0152 Qbs: Use new widget summary updating in clean step
Change-Id: I8ea3a53fcedeb1f9b3a8a97797fc418b8c3983ff
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-25 13:36:05 +00:00