Commit Graph

61511 Commits

Author SHA1 Message Date
Alessandro Portale
af6ec7943e McuSupport: Tag "board" and Kit with vendor name
Needed for an upcoming hack, but also later when we "zero-config"
the boards.

Change-Id: I240cc252ebba458cab71db24740266756d0e8b37
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-04 17:47:57 +00:00
Alessandro Portale
ebc2628116 McuSupport: Adjust default path for SEGGER JLink
Change-Id: Iace2010f35bbaad3d1db749d6e05e2faa347c803
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-04 15:36:52 +00:00
Eike Ziller
34e8f58c47 Fix lupdate issues
Change-Id: Ib0cbb96a1a4857db5724f9d1e316b97bf2827dbd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-04 14:06:09 +00:00
Alessandro Portale
7d14132c8c McuSupport: Create a Qul-Desktop kit
First, hacky step towards supporting the "Qt" target. Such a target now
gets created with correct environment variables and CMake options.

Device type is for now Desktop, but portale thinks we will have a Qul/
Desktop target at some point.

Compiler and Qt version are randomly preselected and certainly need to
be adjusted by the user (for now).

Change-Id: Ie3f6a6e3ce1a46c35687e20a7550ff51b6b1b7c7
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-04 13:53:38 +00:00
David Schulz
2c112a51c3 Highlighter: update all editors after downloading additional definitions
Instead of just the editor with the info bar that was triggering the
download action or none editor if the action was triggered from the
settings dialog.

Change-Id: I4158eeb7fdb0a763d082c6d801b400e8635c7f38
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-04 13:45:19 +00:00
David Schulz
5ece12d4ea Highlighter: clarify 'Update Definitions' action
by renaming it to Download Definitions and adding a tooltip stating that it
collects all definitions that are missing or were updated after the release and
downloads it to the ksyntax highlighting user folder.
Also adding a separate reload definitions button in the settings behind
the user path.

Change-Id: I059cc98e33147cae910fa4fdb35631d1dca81448
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-04 13:23:58 +00:00
Nikolai Kosjar
9a567a48dd LanguageClient: Fix some bugprone-branch-clone
Change-Id: If1eb43168db65190983049f30bf217f0628e78e4
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-04 13:18:27 +00:00
Eike Ziller
715db5ada8 Bump version -> 4.11.0-rc1
Change-Id: I495bd3961c718a2090ac1999f56c195e95cd53b1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-04 11:59:19 +00:00
Eike Ziller
ba8b537851 Update litehtml
Change-Id: I110616a1272cf995880671532008c52a5c068a74
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2019-11-04 10:35:10 +00:00
Eike Ziller
53819123e7 Simplify RPATHs for qmake build
Use central rpath.pri for setting RPATHs and qttestrpath.pri for tests.
Simplify install names of plugins and libraries on macOS to be just
@rpath/libName, which follows convention better and makes setting up
RPATHs easier.

Preparation for moving tools one directory level down on macOS, to
be able to add a qt.conf for the tools generically.

Task-number: QTCREATORBUG-23120
Change-Id: I16625d48904abd3a7f4c2ad7bbba5916cdc400cd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-04 10:31:55 +00:00
Christian Stenger
5f8efe43f2 AutoTest: Correct states handling when parsing boost tests
Do not miss to reset the parser state after a macro for a test
case or suite has been handled. In case of an early return
(usually when having incomplete or incorrect code) the wrong
state may be taken into account otherwise.

Change-Id: I2a981db9166fc6a21c2590406768ecaeee2852f2
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-04 10:17:27 +00:00
hjk
ac37146e27 ProjectExplorer: Export findFileInSession()
Would be useful for https://github.com/JakeSays/QtCreatorTerminalPlugin/

Change-Id: I6629c95535b5ce7af8f9d486005f41598b8dff47
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-04 09:14:44 +00:00
Christian Stenger
e7144e4883 QtSupport: Do not pass empty file names to file system engine
Fixes the 'Empty filename passed to function' warnings when using
registered self-built Qt without built documentation or examples.

Change-Id: I401b56246b1db1ed397c6df11b0714cd90058f48
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-04 08:19:22 +00:00
David Schulz
3df6a29d4f Python: remove reference to out of scope variable
Change-Id: Idd4dbab5ee01fda331452fefd27de71625afa5af
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-04 08:03:17 +00:00
David Schulz
54f2ebf91d Python: cache the module path for executable
This reduces ui freezes when switching the interpreter for a python
project.

Change-Id: Iaa8ce8ed8d51666f8696eb96f504aaf8c4a11822
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-04 05:47:38 +00:00
Christian Stenger
37d378f479 QmlDesigner: Fix warning for unused variable
Amends e2e18ff625.

Change-Id: I4cae1131a8b7b46c3c11779df0926786debc4e0b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-04 05:45:35 +00:00
Christian Stenger
66e146314a PerfProfiler: Disable failing tests
Instead of rewriting the whole for each Qt version
temporarily disable them.

Change-Id: I33cf146a039c90d60f355ddf22274778255b9796
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-11-04 05:45:22 +00:00
Cristian Adam
db15da69dd CMake Build: Do not add test qrc file in normal plugin build
If you build without tests, you'll get an error.

Change-Id: Id4ce543da6f1a450f91c3f4fb2d862989339db7b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-01 16:55:09 +00:00
Leena Miettinen
162527c24f Doc: Update info about editing Qt resource files
Update the screenshots in the Creating Projects topic.

Change-Id: I59ecb0429f6931808eeb0090a85ef10b4c43d78a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 15:22:38 +00:00
Cristian Adam
a1d22fd2f7 CppTools: Fix code model for Clang builds
If you build Qt Creator with CMake version 3.16, you will have
precompile headers which will break code model.

Change-Id: I679936faed39ecfedb9ebb5fb553449a9f5ea29d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-01 12:38:29 +00:00
Leena Miettinen
10d58b7130 Doc: Remove links to example files
This does not seem to work anymore in QDoc since 5.13.

Change-Id: I4e99603a3e3fc9d1ef735fe1fa87526116a83b1e
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
2019-11-01 11:53:35 +00:00
Christian Stenger
c9086499f6 Debugger: Fix timeout handling
Task-number: QTCREATORBUG-21664
Change-Id: Ie6dec329443e9fa8e31e28f0fdd6d46a279804bb
Reviewed-by: hjk <hjk@qt.io>
2019-11-01 11:36:42 +00:00
Nikolai Kosjar
32fe77564e CppTools: Simplify
Change-Id: Id10cbcf541d8105265c531e63a64e2fd34e27379
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-01 09:53:45 +00:00
Christian Kandeler
5cd474522a Target setup page: Fix some glitches
- Make sure the "Manage" button is always enabled.
- Clear the list of possible build configs and collapse
  the details widget when a kit becomes unusable.
- Do not collapse the details widget when it gets selected.
- The "Details" button was sometimes grayed out when it shouldn't
  have been.

Change-Id: Ibc0f44213b633aebddfa7542d7dbdd0244df23f9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-01 09:44:49 +00:00
Nikolai Kosjar
6c1b11dd3e ProjectExplorer: Simplify
bugprone-branch-clone
readability-simplify-boolean-expr

Change-Id: Iaaac21e96a3e9db6b9819d77fdae623ede373e59
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 09:31:32 +00:00
Orgad Shaneh
c81e9a2406 CMake build: Fix false detection of mocable file
Q_OBJECT appears in a comment. It's not used in the code.

Change-Id: Ib3df3c4352fc07eddf8a626154b8fe8b753a9457
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-01 09:30:40 +00:00
Nikolai Kosjar
c48eedbc5a Debugger: Fix a bugprone-branch-clone
Change-Id: I7b9a3e416fa547de344dd5c4e111939200a7b824
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-11-01 09:26:34 +00:00
Nikolai Kosjar
d337d03ce1 CppEditor: Simplify
bugprone-branch-clone
readability-simplify-boolean-expr

Change-Id: Id30a155e224370713d23b4b534fb82f5e630f36c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-01 09:21:29 +00:00
Leena Miettinen
d1912784c8 Doc: Update info about Easing Curve Editor and Curve Editor
Check the terminology and update the screenshots.

Change-Id: I60427ac822065c10eac5133dab7530d4ad885bed
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-01 09:18:52 +00:00
Leena Miettinen
f59b74ebdf Doc: Describe changes in editing keyframes
The context menu item name is now just "Edit Keyframe"
and the dialog contains a Frame field for setting the
frame. A screenshot was added.

Task-number: QDS-1072
Change-Id: Idbcfcdf2c278c1635bfcbf755d530cb5b2d3021f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-01 09:17:30 +00:00
Nikolai Kosjar
02a81b89c4 CMake: Simplify
Change-Id: I3e5fd3aebf8b11037d99ff367826ff8f8f436045
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-11-01 09:11:06 +00:00
Nikolai Kosjar
16e61cdf82 Utils: Simplify
bugprone-branch-clone
readability-simplify-boolean-expr

Change-Id: I75ad6118275ad9231f21b578567c3c042414263b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-01 09:10:31 +00:00
Nikolai Kosjar
eabc5e2bdd Core: Simplify
bugprone-branch-clone
readability-simplify-boolean-expr

Change-Id: I294133af65f68c3b9fc1f4c6fb0b93b9ff179a6e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-01 09:09:47 +00:00
Nikolai Kosjar
d13f7331b8 Help: Fix a readability-simplify-boolean-expr
Change-Id: I06006091b0e3b1c6b38851907a9e69f1c3c2fc04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-01 09:09:23 +00:00
Alessandro Portale
43e40f21a7 McuSupport: Detect GNU Toolchain for Arm a bit better
If there is exactly one subdir in the GNU Tools installation dir, pre-
select it.

Change-Id: I14cb2e46863884724d4eef2ecac83513c515ebee
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-01 08:56:11 +00:00
hjk
67ba6a5b9a Debugger: Fix conditional operator with identical true and false expressions
Change-Id: I1f85eed5355cd01590bc8cc0082f154e215a9ac3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-01 08:49:39 +00:00
Miikka Heikkinen
97788c457e QmlDesigner: MoveGizmo improvements in 3D edit view
Mouse press and release are now properly handled by MouseArea3D.
This fixes various issues:

- No need to move the mouse after release for release to register.
- Drag is no longer limited to the 3D edit window, though it is still
  limited to the screen.
- Drag arrows no longer register start of drag if you click outside
  the arrow and then move the cursor over the arrow while holding the
  mouse button down.

Also added the missing center ball to the MoveGizmo to allow free
dragging along the camera plane.

Change-Id: Iab55ae79f8af024534510e5fd29379532ac74025
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-01 08:49:12 +00:00
Nikolai Kosjar
d4797587b1 ClassView: Fix a readability-simplify-boolean-expr
Change-Id: I6ad8009551f90dc2d2ab01698cc2d972cf47a79b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-01 08:41:11 +00:00
Thomas Hartmann
2e95916e7c QmlDesigner: Fix usage of transaction
We have to update the model _inside_ the transaction of course.
Without this patch the last changes were done after the
transaction was already closed.

Task-number: QDS-1194
Change-Id: I1061990f8b713ee5c25737b8eb173866fb495511
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-11-01 08:38:36 +00:00
Thomas Hartmann
c66e96a840 QmlDesigner: Define explicit values for enum class
Change-Id: Iba4dec251ac41c414c51757b2f3e6e94d1aa2ccd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-11-01 08:38:09 +00:00
Leena Miettinen
07945bb11d Doc: View autotest errors and warnings in Issues output pane
Change-Id: I4519f7bed6e1f4cc0b56677650565fde91c9975a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-01 07:46:00 +00:00
Nikolai Kosjar
986f08b225 ProjectExplorer: Fix a bugprone-argument-comment
gcctoolchain.cpp:667:35: warning: argument name 'target' in comment does
not match parameter name 'originalTargetTriple' [bugprone-argument-
comment]

Change-Id: Ia486759521b274102d52df9276507a0d72e10e89
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 07:16:20 +00:00
Nikolai Kosjar
5218a661a3 ProjectExplorer: Fix a bugprone-suspicious-missing-comma
Change-Id: I40f4eb235970ebb4aeb9ac004bd5ca1c5af7a4c3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-01 07:16:05 +00:00
Michael Winkelmann
9985d623a4 PluginManager is not moc'ed automatically
This leads to a linker error in ExtensionManager because symbols
generated by moc are missing. This caused by an issue with CMake 4.10 /
AutoMoc and Q_OBJECT in a documentation comment.
Instead, headers of PluginManager are moc'ed explicitly.

Change-Id: I2dd655c48d0bf90e178e46655eaa0f2dc1ed8b0a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.11.0-beta2
2019-10-31 15:44:46 +00:00
Alessandro Portale
e2f82cd57f McuSupport: Add path to shipped clang to build environment
Task-number: UL-1109
Change-Id: I0a79c597c3d4d0377fc6b3da9a8362d70dee85d5
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-31 15:17:35 +00:00
Alessandro Portale
907c35dc00 McuSupport: Enable and preselect usage of the shipped JOM (on Windows)
- Set CMake generator to "NMake Makefiles JOM"
- Add ICore::libexecPath to environment path
- Set the environment for the run configuration

Change-Id: Ie7b2dc1513b366911b429d77cc4a1954be531075
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-31 15:16:26 +00:00
Aleksei German
28d2134d46 QmlDesigner Ignore design mode switch
Added combo box in settings that allows user to
turn off automatic switch to design mode for .ui.qml.

Change-Id: I83007494c0e7861e1dd2987393815b1321880c5c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-10-31 14:31:29 +00:00
Christian Stenger
4d390bfce9 ProjectExplorer: Correct updating targets
A kit may get updated in a way that it now can be
used or has more capabilities than before.
(e.g. setting or changing the Qt version of a kit)

Change-Id: Id4c65fa2d8c334b0ef7d819a70a8df4b6a349a6d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-31 14:25:05 +00:00
Leena Miettinen
1cfc52f61c Doc: Describe creating Android App Bundles
Change-Id: I6c3e69511f2340753c9832e33e0e844e3690f7a5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2019-10-31 14:21:54 +00:00
Nikolai Kosjar
abb0babc58 ClangTools: Fix using correct run settings
Change-Id: Ibf545719bb67857c3ecaaedf2435caa15d592e03
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-31 14:07:53 +00:00