Commit Graph

67787 Commits

Author SHA1 Message Date
Leena Miettinen
93d5ed4073 Doc: Collect links to platform-specific topics in one place
Fixes: QTBUG-84223
Change-Id: I03eeb61f457ca624ade8591db2728962f4cc4021
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
2020-06-04 10:34:00 +00:00
Leena Miettinen
195cc8cd20 Doc: Describe global annotations in Design mode
Fixes: QDS-2182
Change-Id: I86d99d07eab3264ce408533847840a1044579fcc
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-04 10:30:58 +00:00
Leena Miettinen
891524d4c4 Doc: Hide advanced information from Qt Design Studio Manual
Replace references to "developers" and "designers" with "you"
where the difference is not important.

Hide some complexity by removing references to features designers
might not use very often, such as the locator and debugger.

Fixes: QDS-2159
Change-Id: Ifcda176c5c429a4d90f37138d861cb971932e626
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Soili Väinämö <soili.vainamo@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-04 10:30:08 +00:00
Christian Kandeler
39047fac5b CPlusPlus: Add missing type information for enum variables
Consider these two variable declarations:
  enum EX { EX1, EX2};
  EX ex;
  emum EY { EY1, EY2} ey;
The ex variable would correctly get assigned type EX, but the ey
variable would not have any type.
This is now fixed.

Task-number: QTCREATORBUG-7487
Change-Id: I3e09c5766fdb9e6baf3a8d7bc6f2fc581f2d824b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-04 10:23:39 +00:00
Christian Kandeler
eaea03ba42 ClangFormat: Adapt to clang 11 API changes
Change-Id: Id5d977e56017a80138f2c033e145b67446eff3ab
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 10:23:19 +00:00
Cristian Adam
f392d13419 CMake: Fix for installation
With CMake 3.17-dev the install step is failing because of the symlink.

Change-Id: I012ce95f5cc61f4b5b9d6a4c48ded0f738b581f1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-04 09:16:44 +00:00
Eike Ziller
fcc0c5628d Remove wrong use of ICore::mainWindow
Do not set an unneeded and wrong parent on the annotation link label,
that is changed when it is added into the tool tip layout anyhow.

Change-Id: I171665a72e66c545b5881a524c462e53d1d5d13a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-04 08:24:46 +00:00
Volodymyr Zibarov
3ad203b56e C++: Fix variable template parsing in expression
Fix parser to not fail on TemplateId without parentheses, for example:
int i = foo<int> + foo<char>;

This fixes std::pair structure parsing in MSVC headers and find Usages
to work with pair->first and pair->second.

Change-Id: Ic300ea99d44a749705430d5eb47b2744715af995
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-04 08:18:40 +00:00
David Schulz
1291eb975b LSP: export PrepareRenameResult
Change-Id: I636560612f1e33010f155efd67161dd1ebda769b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 07:26:15 +00:00
Christian Kandeler
02f2841a41 CppTools: Fix formatting for new-style function declaration
Fixes: QTCREATORBUG-23502
Change-Id: Ie80fe9aa77ffbf0b9ecc531841e78f2bd80de37e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-04 07:21:39 +00:00
Christian Kandeler
9e08ecb816 CppEditor: Fix access to dangling pointer
Found by coverity.

Change-Id: I4b73af9b22b80953b4ba6c1004884862c9bdd3b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-04 07:20:50 +00:00
Christian Kandeler
f899c49dca qbs build: Add autotest dependency to QtcAutotest
So we can easily mark tests as flaky via build properties.

Change-Id: Ib1ad8e212980c9eb5622534fb9b20ad31128b91e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 07:19:53 +00:00
Christian Kandeler
330b1bcbb5 Debugger: Fix misleading indentation
Change-Id: I20188acb2d00c255984a05f522bfca7938639a6b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 07:18:34 +00:00
Christian Kandeler
7930b87051 Fix deprecation warning
Change-Id: I5860ff884b7c8aed829bc0c120108aab84a64c3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 07:17:36 +00:00
Christian Kandeler
0d60ee3906 Fix clang warnings about unwanted copies in range loops
Change-Id: I11ae3317fd251a463809ee48917d2daf0f8b43d1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-04 07:16:57 +00:00
Alessandro Portale
81e0d9da11 McuSupport: Fix a bug in the writing of settings
The plugin wants to only store settings if they differ from the defaults
(e.g. a path was edited by the user).
The original attempt failed. If the user changed the path, stored it,
and then changed the path back to the default, the last change was not
stored.

Therefore, this change actually removes the settings entry if it equals
either the default or the install settings value.

Task-number: QTCREATORBUG-24048
Change-Id: I6ab11f276ae270bb8bbf50ad6d2bc7ea3dba2d7b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-04 06:59:57 +00:00
Christian Stenger
e2ae2ad41d QmlJSEditor: Support dragging of functions
Currently you can drag around items and properties.
Extend this by JS functions.

Fixes: QTCREATORBUG-21993
Change-Id: I2934450cbaf8646620b43ce33fdb523b5d2803ab
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-06-04 06:35:49 +00:00
Michael Brüning
083b02377d Add option to apply style sheet coordinates
Enables the user to have pixel positions in the style sheet even if the
template does not use pixel positioning.

Also adds some more ordered properties to make the test case
deterministic.

Task-number: QDS-2208
Change-Id: I79b6af0c24539d1b9eb03dcf0fb52bb078d74afe
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-04 05:42:07 +00:00
hjk
777ae8b87b Debugger: Adapt offset tests to changed QDateTime structure layout
Chandge with 5f1f0fe0b71c in qtbase.

Change-Id: Ifceac5125f974a1ebd2ab2e358ba906188d451a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-04 03:14:25 +00:00
Thomas Hartmann
c6b06152c0 QmlDesigner: Fix transition selection
* We have to use adjustedWidth, because that one ignores
  the pen width changes for selection.

* In case we render to an image we have to take care of the scaleFactor
  manually. Otherwise this is done by the cosmetic pen.

Change-Id: I29877ebfabb1629a9eea756725f6dc3d8ec41247
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-03 16:51:31 +00:00
Henning Gruendl
d30081ba39 QmlDesigner: Add 1-to-n / n-to-1 transitions
* Add one-to-many / many-to-one transitions visualization
* Fix bounding rect of flow items
* Cleanup flow view draw code

Task-number: QDS-2178
Task-number: QDS-2211
Change-Id: I5bf6ec04c6ca730dd1fac6226e5d694963e761b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-03 16:32:56 +00:00
Leena Miettinen
b176a24091 Doc: Add example code for specifying QML import paths
... when converting Qt Quick UI projects to applications.

Fixes: QTCREATORBUG-24081
Change-Id: I00989a84d096c6e989e050d7d3b0724249946b6c
Reviewed-by: Tino Pyssysalo <tino.pyssysalo@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-03 12:54:55 +00:00
Volodymyr Zibarov
586ce5b472 C++: Print numeric template arguments in NamePrettyPrinter
Improve type printed for template specializations with numeric
or bool values.

Code example:
template<bool B, class T> struct enable_if{};
template<class T> struct enable_if<true, T>{ typedef T type; };

In outline: "enable_if<_Tp1, T> <T>" becomes "enable_if<true, T> <T>"

TemplateArgument class holds pointer to numeric literal owned
by CppDocument, so remove Control::squeeze() to not release
numericLiterals in CppDocument::releaseSourceAndAST()

This based on TemplateArgument class introduced in commit
9ee693ee22

Change-Id: Ib787a5e402c3e8d8467b520347a26afa6087d4bd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-03 12:11:15 +00:00
Eike Ziller
d1a2de747e Debugger: Use dialogParent instead of mainWindow
Slipped through in 5b364de168

Change-Id: If316f7310b3861630b58ef9f8fb152cc30de8ef1
Reviewed-by: hjk <hjk@qt.io>
2020-06-03 11:45:48 +00:00
Eike Ziller
c9d357fdac Fix unittest build if Clang refactoring is turned off (now the default)
Change-Id: Ib129d2872a4550e14a888c1d98c4b78012a08982
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-03 10:31:17 +00:00
Eike Ziller
aa2aa9bf2a Merge remote-tracking branch 'origin/4.12'
Change-Id: Id1c063ae716c3acf5e6201c15663637040aa9a35
2020-06-03 12:22:18 +02:00
Tobias Hunger
28c22ff57e CMake: Inject special build targets into list of extracted targets
Inject special targets like all, test and install into the list of
targets that get reported by CMake. This makes those available in
the locator again.

Task-number: QTCREATORBUG-24064
Change-Id: I08f1232d243afbe0800c1dc308a00917c98ccf8a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-06-03 09:46:45 +00:00
Assam Boudjelthia
19154bf0e7 Android: shorten the kit and debugger names
The multi-abi kit names are too long since they contain the full list of
ABIs, this might cause build issues at least on windows host.

Task-number: QTBUG-83875
Change-Id: I137fa9a177eb2143be1421129b9dbd12515a3da9
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-03 09:33:07 +00:00
Henning Gruendl
b851b71128 Fix compilation under linux
Change-Id: I3070876f0549a9fb7c3a52c5bc99638bad2d2894
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-03 09:09:38 +00:00
Eike Ziller
1d3d2b5311 Add some documentation about distributing plugins
Change-Id: I02eff822105a4c98575f745bb0f4d222afb0bb73
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-03 08:39:26 +00:00
Tobias Hunger
2fea24fe6a CMake: Support building several targets with cmake --build
CMake supports this for a while now.

As a side effect this fixes QTCREATORBUG-23738, which was caused by the
radio button hack used to show that only one item could be selected at
a time.

Change-Id: I18cbe6c5ee3872edaf74b9d828bde1ac5bf63563
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-06-03 08:04:50 +00:00
Tobias Hunger
10b63683fc CMake: Add a way to provide options to CMake --build
Add a way to provide options to cmake --build in addition to the
already existing option to the build tool (separated by -- from the
cmake arguments).

I decided to have these two separate to ease upgrading from older
Creator versions.

Task-number: QTCREATORBUG-24088
Change-Id: If989f9942498055312ba0e11e7d80c2b5ece269d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-06-03 08:04:33 +00:00
Tobias Hunger
bd4c9ea250 Add build* to .gitignore
Common CMake practices tend to build into those directories.

Change-Id: Ib35df5fadb1dc00bfaca38f84fdff41e3a621632
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-03 07:40:59 +00:00
Eike Ziller
9031ad19c4 StudioWelcome: Remove unused code and fix return value
The connection to visibleChanged of the main window doesn't do anything,
since its visibility doesn't change as long as the splash screen is
showing.

Also return false from delayedInitialize() if it doesn't do anything.
Returning true requests that the next plugin's delayedInitialize() is
actually delayed, which doesn't make sense it didn't do anything.

Change-Id: I96793ce6df517bf37b3b060e80daf8cc74d71247
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-03 05:59:59 +00:00
Michael Brüning
6419059362 Correct text alignment preservation and add basic options parsing
Also add a test case and Remove some dead code along the way.

Task-number: QDS-2071
Change-Id: If34d4e152860ec9ab098f07e36e3a5dc4368c67f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 20:25:51 +00:00
Michael Brüning
c2bba223e6 Add some exception handling to the style merger
Catches some of the model exceptions that may occur when processing
the merge and just prints out some debug information.

Task-number: QDS-2071
Change-Id: I6303c2ac1b9373f7d594aaf811e99cb4badf36ad
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 20:25:33 +00:00
Michael Brüning
38eaada47d Filter properties that do not exist in the new node type
Task-number: QDS-2071
Change-Id: Iedc7f65e3cebfed8410dda80707910a633c6670f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 20:25:21 +00:00
Thomas Hartmann
e5d892c74a QmlDesigner: Fix test data for StyleMerger
* This seems be the correct expected outcome.
* Minor fix in SwitchTemplate

Change-Id: I5de04d943d3522a37ac1664157f384594ddddcde
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 20:23:24 +00:00
Michael Brüning
96a511c979 Add some more tests for automatic stylesheet preprocessing
Currently, the tests fail, but the output is by and large correct.
There are some issues that still need to be analyzed.

Task-number: QDS-2071
Change-Id: Idb4618171a7256ec527368d6079c756eb734db82
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 20:23:12 +00:00
Michael Brüning
b7155a6a04 Adjust test case data for complex test and reactivate it
Change-Id: I5e61971ff420f3193bca1f63040044833e26cca8
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
2020-06-02 20:22:56 +00:00
Tobias Hunger
b07909d9fd Process_stub: Make sure strings are \0 terminated
Change-Id: Id59663cd9d7546f5baef713ca4de264cc625d016
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-02 18:05:20 +00:00
Eike Ziller
8dff37f0d3 Disable ClangRefactoring by default
It is too unstable even for experimental status.

Change-Id: I38e483eaece00aec0211a81414c6c5a000bf283f
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-02 13:32:14 +00:00
hjk
63655081c3 Debugger: Mark a few more sub items as expandable
... and remove some of the now implicit putNumChild() calls.
Also, adapt docs.

Change-Id: I1ab1dafada95a1703cd6a9ba5b9e7e4166b48cd9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-02 13:02:25 +00:00
Michael Brüning
3a1d759b1f Add some more property ordering
Task-number: QDS-2071
Change-Id: Iadd9d8d8ec417614c3c6da130f1570c25443f0ae
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 12:59:10 +00:00
hjk
090110e1d8 Debugger: Fix passexception_s_ for GDB CLI
The intention was to always show errors, as this is likely an error
in the dumpers themselves. The case of operating on uninitialized
data is rather rare in the manual use case here.

Change-Id: I08874e302b402be94f760f744e82e127855dd16f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-02 12:34:21 +00:00
hjk
e87c301787 Debugger: Fix gdb command line use of dumpers
Fixes: QTCREATORBUG-24103
Change-Id: I4a771e3694879755c46623c8f089857437eb0fb5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-02 12:04:23 +00:00
Christian Stenger
304a417de0 Utils: Fix compile with gcc 5.3
Amends 26c26c0dad.

Change-Id: I019759179626df45a31492846e05b1dca55f4fea
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-02 11:45:31 +00:00
Eike Ziller
5b364de168 Use dialogParent() instead of mainWindow()
There are very few reasons to use mainWindow() directly.
Especially for modal dialogs, using dialogParent() is important, since
that guarantees the stacking order in case of other dialogs currently
being open.

Change-Id: I7ad2c23c5034b43195eb35cfe405932a7ea003e6
Reviewed-by: hjk <hjk@qt.io>
2020-06-02 11:44:53 +00:00
Christian Kandeler
26d46fc19d ProWriter: Do not insert a backslash when adding new files
... if the previous line already has a trailing backslash.

Fixes: QTCREATORBUG-24083
Change-Id: Ieabce541da2ef55bcbf3bd14d139b14f3a7575c7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-06-02 11:20:16 +00:00
Aleksei German
95c4da7dd0 QmlDesigner: Dynamic properties in Bindind Editor
Change-Id: Iaf0b78546905cacbc7e1a5524aaf918f253e0131
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-06-02 09:28:39 +00:00