Commit Graph

44349 Commits

Author SHA1 Message Date
Ulf Hermann
f9a3ac7f08 QmlProfiler: Also handle RunControl::finished() signal
If you force-stop an application by closing the output tab, we don't get
a stopped() signal. In order to properly reset the UI we need to handle
the finished() signal then.

Change-Id: Ibab5faf86542a59c3eb3aa139bb3dc66afe89ce2
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-01-17 11:33:16 +00:00
David Schulz
6fe933b63a Bookmark: Store line text trimmed
Change-Id: I6f96210db20a8d18b5ceb5f6a3b529ea8d2bc0c5
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-17 11:20:46 +00:00
Andre Hartmann
6bc12ff446 DiffEditor: Replace bool arguments with flags enum
Change-Id: I70262476d015ba5b73069b149093dac66f7c6008
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-17 09:13:40 +00:00
Orgad Shaneh
b8ee51fef1 DiffEditor: Simplify makePatch tests a bit
Change-Id: I205bda692dbb5f759ca84dd5cf4b73da9601a7b5
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-17 09:13:29 +00:00
Tobias Hunger
b3abe8cbe3 CMakeRunConfiguration: Fix warning about unused lambda capture
Change-Id: Ib40a40ff77f9473aafe94b176e8309ff7e3a4e12
Reviewed-by: hjk <hjk@qt.io>
2018-01-17 09:12:16 +00:00
Eike Ziller
d6ee830ec1 Merge "Merge remote-tracking branch 'origin/4.6'" 2018-01-17 08:40:59 +00:00
Hannes Domani
507e2b99cb Valgrind: Fix heob ui texts
Change-Id: Id246ba7d485c6993ae5788dde3ae4262df2f35d7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2018-01-17 08:37:32 +00:00
Eike Ziller
115afed94b Merge remote-tracking branch 'origin/4.6'
Conflicts:
	tests/unit/unittest/gtest-creator-printing.cpp
	tests/unit/unittest/gtest-creator-printing.h

Change-Id: I43d2571617bfbf41c0fcf23502ab77975540eba4
2018-01-17 09:30:57 +01:00
Nikolai Kosjar
2765409d2b TextEditor: Remove left-over qDebugs()
Change-Id: Ia5277b1eb40d35c59b2de09c88b44b180375a64f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-01-17 07:43:25 +00:00
Orgad Shaneh
351f355b69 ClangSupport: Add 2 missing exports
Fixes the following GCC warnings:

In file included from .../clangpchmanagerbackend/clangpchmanagerbackendmain.cpp:26:0:
.../clangsupport/clangpathwatcher.h: In instantiation of ‘class ClangBackEnd::ClangPathWatcher<QFileSystemWatcher, QTimer>’:
.../clangpchmanagerbackend/clangpchmanagerbackendmain.cpp:114:78:   required from here
.../clangsupport/clangpathwatcher.h:80:7: warning: ‘ClangBackEnd::ClangPathWatcher<QFileSystemWatcher, QTimer>’
    declared with greater visibility than the type of its field ‘ClangBackEnd::ClangPathWatcher<QFileSystemWatcher, QTimer>::m_idCache’ [-Wattributes]
 class ClangPathWatcher : public ClangPathWatcherInterface
       ^~~~~~~~~~~~~~~~

Change-Id: I8c6bc30e80da50b631d272ff7c2120cf706548aa
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-01-17 07:21:17 +00:00
Christian Stenger
a26fecf851 Debugger: Only raise watchers window if debugger is running
Otherwise you run into a soft assert if you load a session that
had watchers.

Change-Id: Ib3566e7a8b26d953a904d6eeee536348afba9d62
Reviewed-by: hjk <hjk@qt.io>
2018-01-17 05:54:05 +00:00
Andre Hartmann
aaaa543a32 Locator: Allow simple calculations by using QJSEngine
Task-number: QTCREATORBUG-14380
Change-Id: I807441ce00991856b3510a6793b454eb3c6a6c30
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-16 21:26:25 +00:00
Hannes Domani
76bc20ffce Valgrind: Add heob path to settings
Change-Id: If2fa8c913b20bd30016673d2cf712fb9b85ad9d6
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-01-16 19:46:18 +00:00
Hannes Domani
6f63da3728 Valgrind: Enable heob menu entry only if debugging is possible
Change-Id: Ifc2b029538c1dd48e1e9853d52eb1ffae38ea325
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-01-16 18:58:02 +00:00
Hannes Domani
6ced413e03 Valgrind: Save current heob settings as default
Change-Id: I9e2ac8aff2830f2a46d86185d198ecf188c5e649
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-01-16 18:51:26 +00:00
Hannes Domani
848cece0b2 Valgrind: Run heob process with debugger
Change-Id: Ie026033b04dce73c8f4d7a4adb42f9c08c53cccd
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-01-16 18:50:59 +00:00
Nikolai Kosjar
76c25bcd6a Clang: Provide tooltips
This includes also the query data for the help system (F1) for an
identifier under cursor.

Regressions (libclang changes necessary):
 - Function signatures do not contain default values.
 - Aliases are not resolved for/at:
   - template types
   - qualified name of a type

Fixes/Improvements:
 - Resolve "auto"
 - On a template type, show also the template parameter.
 - For a typedef like
     typedef long long superlong;
   the tooltip was "long long superlong", which was confusing.
   Now, "long long" is shown.

New:
 - Show first or \brief paragraph of a documentation comment.
 - Show size of a class at definition.
 - Show size of a field member in class definition.

Task-number: QTCREATORBUG-11259
Change-Id: Ie1a07930d0e882015d07dc43e35bb81a685cdeb8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-01-16 15:32:15 +00:00
Marco Bubke
5d088e9df5 UnitTests: Cleanup unit tests
There was still unneeded PrintTo functions and gtest includes.
It is now possible to use MockFunction for callbacks.

Change-Id: Ie5875c3697069a37b48c2f2022f1f8c21f1c794f
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 14:00:28 +00:00
Christian Stenger
c57b06b9e6 AutoTest: Fix noticing crashes on Windows for gtest
gtest based tests do not end the QProcess with CrashExit
when abort() is triggered but it results in a special exit
code.

Task-number: QTCREATORBUG-19565
Change-Id: I4ffc67cb43b05406ab79a7b3061e75c88b87ba98
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-16 11:47:30 +00:00
David Schulz
8accfddb17 AutoTest: Delegate reporting crashes to output reader
Let the output reader report crashes of the test
instead of just reporting crashes globally.
This allows to reflect the crash also inside summary items
to avoid having tests displayed as passed if no fail happened
until the crash.

Task-number: QTCREATORBUG-19565
Change-Id: Idd9fe28f7486cbb31b1aa6556530718a2278722f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-01-16 11:47:06 +00:00
hjk
d7147f9068 ProjectExplorer: Remove allDeployConfigurationFactories() accessor
It's only used once to check whether there exist at least one.

Since there's always the DefaultConfigurationFactory when the
ProjectExplorer is present, this check will always succeed.

Change-Id: Id457701bd6c8f68b91a0e225507181a878faac4a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-01-16 11:32:34 +00:00
Hannes Domani
eecc26f40e Valgrind: Add heob support
Change-Id: Ia5957058c59ae2a607620915c2c68f2cfd5ac5f1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2018-01-16 11:31:33 +00:00
Marco Bubke
e5d1fe6620 Sqlite: Add setter for last row id
Change-Id: I15dfb997b04e285a8dfa0e2979de8457817bce3e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 11:10:27 +00:00
Marco Bubke
f233f2d26d Clang: Add project parts table
Change-Id: Id2525b6664c6dc0e9d19f8d58cd26b515ae5640c
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 11:10:21 +00:00
Marco Bubke
41baafef0c Sqlite: Upgrade Sqlite
We will use the new JSON extension to save structured data in the symbol
database.

Change-Id: Ife4b36d99e550a9f19f293a221cf94d5e98d5286
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 11:10:14 +00:00
Eike Ziller
7872ddde4c Make executable name configurable
Change-Id: I6b5420ab2275c37e51f665005e31b80b6dfae8cb
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2018-01-16 10:53:59 +00:00
Eike Ziller
61b5bbc8e9 Qbs build: Fix that copyright was not adapted in Info.plist
Change-Id: Ie5670a4a420f34dbef6cbb204063e8921eafd82b
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2018-01-16 10:53:46 +00:00
David Schulz
d11a724047 AutoTest: generalize create default result
Add a pure virtual function to TestOutputReader returning
a pointer to a default constructed result.

Change-Id: Icd8090346f2c5115a7c548da7ba69ea54fe39fc4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-01-16 09:11:23 +00:00
Ulf Hermann
77e28efad6 Timeline: Use some better number types
The scale parameters are converted to single precision float anyway as
soon as we do something with them. We might as well change all the
methods to be single precision, too.

The min/max row values should really be 64bit as 32bit values are not
enough to express memory usage.

Change-Id: I2b058b112286eabb1c077f7e746c48b6b99cb416
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-01-16 09:02:57 +00:00
Nikolai Kosjar
d7409e01a7 CppTools: Fix showing main help sentence in tooltip
Mouse hover on e.g. "QString" is supposed to show

   QString
   The QString class provides...

The sentence was removed unintentionally by

  commit a7e8406ced
  TextEditor: Remove unneeded functions in BaseHoverHandler

Change-Id: I356e66c0c21c528822c0f2e37f8058fa7b7d89bf
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-16 08:31:19 +00:00
Nikolai Kosjar
5e861d2be6 CppTools: Move CppHoverHandler to CppTools
This is in preparation for clang code model to provide its own hover
handler.

Change-Id: Ifbdd96f427989bd5d1fbc4badb9c38108485c2f2
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 08:31:11 +00:00
Nikolai Kosjar
53a744a6df CppTools: Improve a function name
Change-Id: I30f9048aff18440d8cc6a6247f5fd5bcdba5058d
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-01-16 08:20:22 +00:00
Christian Stenger
a4c318d5e1 AutoTest: Fix wrong behavior when rescan is triggered
If the code parsers perform a full scan then do not use
cached information.

Change-Id: Ib9635c9715841ab71b97edfe42c4fe9d9d20c23a
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-16 07:35:06 +00:00
Jochen Becher
9660c59550 ModelEditor: Improve performance of loading large models
Change-Id: Ic162d4805827cae9d34d7af9b6d56f3580b0f41d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-15 19:14:26 +00:00
Jochen Becher
753bf8a736 ModelEditor: Improve performance of component model creation
Change-Id: I93ca27fc14692979314be90c0230d2672de66f04
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-15 19:14:15 +00:00
Jochen Becher
67f14eb32d ModelEditor: Improve component model creation
Ignore include files that only includes one file with the same name.

Change-Id: I1cac46511b44fec2aa1b3f9b4a6ae644d4ed5e9a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-15 19:14:02 +00:00
Tobias Hunger
21e7e9ea3b Settingsaccessor: Extract file access and error reporting
Move file access and error reporting out of SettingsAccessor and into
BasicSettingsAccessor.

Change-Id: If6cc9157c1a532f117c48b929c05f55d89a339eb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-15 14:28:01 +00:00
David Schulz
f33ef0e80b Debugger: automatically add source path mapping for Qt packages
Change-Id: I1199629729e3996adb574089c5db69f1fcf0ccd0
Reviewed-by: hjk <hjk@qt.io>
2018-01-15 13:53:01 +00:00
David Schulz
09f43ade82 ProjectExplorer: add source location path to the qt version
Change-Id: I1826c0cbd8f50be91625b81aee04db4cd1310385
Reviewed-by: hjk <hjk@qt.io>
2018-01-15 13:52:47 +00:00
Christian Stenger
4eabcda3a1 AutoTest: Allow grouping of test cases
Grouping of test cases can now get enabled for each
registered framework.
For now grouping happens only folder based.

Task-number: QTCREATORBUG-17979
Change-Id: Ic0e5c0ecc76998a1aedea8aa0845f6d9b53fb179
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-15 13:21:44 +00:00
Christian Stenger
d226c84cca AutoTest: Omit tests that cannot get handled
We might find some test constructs that cannot get run
without further knowledge which should be provided by the
user (e.g. plugin unit tests of QC)
Omit these tests to avoid user irritation and useless
warnings.

Change-Id: Ia8f533b931a7c58bd768697c0915cbdd44225534
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-01-15 13:01:07 +00:00
Tim Jenssen
f1d57a835f QtSupport: remove latin1 calls
Change-Id: I34fa89f3755740396bd8892bce96e515b5afefa5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-01-15 11:29:26 +00:00
David Schulz
92ec21e5b5 Core: add menu bar locator filter
Adding the possibility to trigger menu actions from the locator

Change-Id: I70d595c167f5b43b02f8125eafbb83e5b45012c9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-01-15 09:57:45 +00:00
Eike Ziller
b3e24fbfd4 Merge remote-tracking branch 'origin/4.6'
Change-Id: I0feaa243e4f9e5d6b0ee0c8b86b0d8b3a4949567
2018-01-15 09:54:48 +01:00
Eike Ziller
0af3a2d29a Merge remote-tracking branch 'origin/4.5' into 4.6
Change-Id: I9277a92341ede8292978f2684eadcade04689983
2018-01-15 09:49:21 +01:00
Eike Ziller
389819f133 macOS: Fix that Info.plist was overwritten in in-source builds
$$PWD and $$OUT_PWD are the same for in-source builds, so rename the
source Info.plist to avoid overwriting it with the same name (which
could easily lead to an accidental git submit of the generated file).

Change-Id: Idc593d8e00dc52f11309eae3b913799fb9b8afdf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2018-01-15 08:02:31 +00:00
Orgad Shaneh
d09ce15f2e sdktool: Rename README.txt -> README.md
Content changes will follow

Change-Id: I9413c373afb43855eb208633ac67f5c8f45c3a0e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Gagneraud <chgans@gmail.com>
2018-01-13 22:48:20 +00:00
Orgad Shaneh
d1baa80a98 Git: Do not pop the VCS pane on every [Un]Stage
Task-number: QTCREATORBUG-19051
Change-Id: I8dcf95238dcbc396b2dfe6a7d6048bbbb8551921
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2018-01-13 17:05:02 +00:00
Thomas Hartmann
6112aa762b QmlDesigner: Start optimizing action notifications
We get more and more actions and notifying those slowly
becomes a bottleneck.
I guess we have to add an enum to the context
that tells the action which notifier on the view was called,
so that the action only react to relevant notifiers.

Change-Id: Ic05999b5855e4823659ff1520484242e0c957f1e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-01-13 15:12:04 +00:00
Ivan Donchevskii
924921ee3b Fix build
Fails on macos after 98fa7cbb3f

Change-Id: I554c716219f6461960c526ef3ed5d5d7c29efc37
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-01-12 20:00:36 +00:00