Commit Graph

67787 Commits

Author SHA1 Message Date
Christian Stenger
0f502b0516 Core: Only act on left click on examples and the like
Change-Id: I4f676743851136d42ca87aa3f3bc49769ba86d56
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-07 05:04:38 +00:00
Christian Stenger
1cb8f525ea Marketplace: Disable videos from marketplace
They are no real products.

Change-Id: I534a1be922a9f0aa8e603ebbcb1bc01357c16bdd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-07 05:04:22 +00:00
Thomas Hartmann
369b020b4b QmlDesigner: Add allStatesForId
Change-Id: Ie04c58f50f2c9f5941afac2a3fba714ea9e61eb0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 20:17:20 +00:00
Thomas Hartmann
33c88a0ced QmlDesigner: Expose component url
Change-Id: I2b1708e6f87b00ad0b56c04f591ba24720a886ba
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 20:17:01 +00:00
Tim Jenssen
d5b83fc637 Merge remote-tracking branch 'origin/qds-1.50' into qds-1.59
Change-Id: Ic3ae0fd8c779c0bac8a0f01e87043251b3ce7fd4
2020-05-06 19:51:29 +02:00
Tim Jenssen
f5a85171dd Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: I831e9d65be0009d0fd98c19aa38fa6fb69eed421
2020-05-06 19:49:12 +02:00
Alessandro Portale
a5074ac987 McuSupport: Add FreeRTOS variations to hardcoded list of targets
Task-number: QTCREATORBUG-23938
Change-Id: I73ca401bd323bd001fa5e05c33783307c94f10be
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-06 16:36:53 +00:00
Alessandro Portale
eccf1269ac McuSupport: Add support for creating FreeRTOS kits
Besides Baremetal, Qt for MCUs also supports FreeRTOS for a few targets.
This change:

- shows the FreeRTOS source path chooser
- set the FreeRTOS source path as kit environment variable
- sets OS=FreeRTOS in the kit CMake configuration and kit meta data

Task-number: QTCREATORBUG-23938
Change-Id: I69cbd4f9b6b4a842788a8dad57905ef517b8b1d5
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-06 16:36:24 +00:00
Leena Miettinen
9179743464 Doc: Fix terms used for Design mode views
The "canvas"/"scene"/"stage"/"working area" is called "Form Editor view".
Library, Navigator, Projects, Properties, States, Text Editor,
and Timeline are also their own views that can be organized as
workspaces and open from the Windows menu.

There are "tabs" only within views, and "panes" refers to
output panes.

Change-Id: I55898eef99b87245e4ab9b0163943725a90615a3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 16:27:14 +00:00
Leena Miettinen
937d3d3a70 Doc: Add Qt Design Studio example documentation
From Qt Design Studio 1.4. Add .qdoc and .qmlproject files,
quoted .qml files, and .png files.

Edit the files as necessary to reflect changes in version 1.5
and to reduce image file size.

Task-number: QDS-1519
Change-Id: I3bbdec0d3b4acf904c0008d1566dad13707e9851
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 16:26:11 +00:00
Brook Cronin
559df59907 Theme: add new dark and light design themes
Change-Id: Ibc65528694d5b8e55e17a80ecd82497c4ab98499
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 16:15:43 +00:00
Thomas Hartmann
3c0cd3baca Update designer theme to new color roles
Change-Id: I39ece78e3961d6c2705abcdefcffc4b9cdd8e704
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-06 15:59:18 +00:00
Henning Gruendl
f2ca950d18 QmlDesigner: Add bezier curves to transition item
* Add support for bezier curves on transition item
* Rework connection drawing

Task-number: QDS-2055
Change-Id: Ifbe30df4965eee0f39681a2285cc664aaffda667
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 15:34:34 +00:00
Aleksei German
0d18aa0b2d QmlDesigner Global Annotation Status
- Added Global Annotation Status for files
 - Added Status into ModelNode
 - Slight rework for annotation dialog .ui classes
 - Workaround for QmlJsLexer changes with Comment::deescapedText

Task: QDS-2027, QDS-2057
Change-Id: I609076110589fbeca1d8c45d049da9d433085a35
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-06 15:27:28 +00:00
David Schulz
04da8f4178 Debugger: prevent calling functions on windows targets
This will result in a crashing gdb.

Fixes: QTCREATORBUG-23982
Change-Id: I59b65c5854bb4b7cbd59522a555388d1e833a560
Reviewed-by: hjk <hjk@qt.io>
2020-05-06 12:55:49 +00:00
Eike Ziller
fe1d758943 CppTools: Fix crash when loading pre 4.11 settings
If pre 4.11 settings are present, this might lead to updated settings
being written at startup.
The code that writes settings indirectly uses the CppToolsPluginPrivate
instance via the "d" member of CppToolsPlugin. So this code path crashes
if triggered in the constructor of CppToolsPluginPrivate, since at that
point "d" cannot be assigned yet. Separate construction and
initialization to avoid this.

Fixes: QTCREATORBUG-23916
Change-Id: I0cb8a08bd9aa051679b71b06f569c44d2faab5a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-06 12:44:10 +00:00
The Qt Project
984dedc3a2 Merge "Merge remote-tracking branch 'origin/4.12'" 2020-05-06 08:04:11 +00:00
Denis Shienkov
f1b1c76012 BareMetal: Use forward slashes in SDCC toolchain auto-detection algorithms
Change-Id: I909f676e8c41d30008ade5158f133a33772fa3bc
Reviewed-by: hjk <hjk@qt.io>
2020-05-06 07:45:01 +00:00
Denis Shienkov
89ac4e9ae3 BareMetal: Use forward slashes in IAR toolchain auto-detection algorithms
Change-Id: Ic427239c923f7dfeccb415bb0b16310c9b48ba2c
Reviewed-by: hjk <hjk@qt.io>
2020-05-06 07:44:36 +00:00
Denis Shienkov
85e3a8fc7a BareMetal: Use forward slashes in Keil toolchain auto-detection algorithms
Change-Id: I92a5bbb706554aa3ffe48657b16519e2e419acbb
Reviewed-by: hjk <hjk@qt.io>
2020-05-06 07:44:13 +00:00
Eike Ziller
bf490b62e0 Merge remote-tracking branch 'origin/4.12'
Change-Id: I11936ad9e4515c3c6c9df1d949cc8116aeccd4c4
2020-05-06 09:43:20 +02:00
Eike Ziller
d4164da52e CMake build: Fix copying of Clang headers to build
- "copy_directory dir target_dir" copies the contents of "dir" into "target_dir"
  so we need to specify "include" at the end of the target directory
- copy_directory creates directories as needed

Fixes code model and analyzer errors when running without previous deployment

Fixes: QTCREATORBUG-23910
Change-Id: Id63dd790f89f720593cd0508241f79dfaddac794
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-05-06 07:19:38 +00:00
Alessandro Portale
02efd43199 McuSupport: If kits are missing, provide an InfoBar that opens settings
When installing Qt for MCUs via the SDK installer, the user (in many
cases first-time evaluator) has to create the kits for Qt for MCUs. For
those who see Qt Creator for the first time, it is difficult to find out
where to search for the UI that generates those kits.

Let's help the user with an InfoBar entry that in case of ...

 * McuSupport plugin being enabled (by SDK installer)
 * Settings key [McuSupport]/Package_QtForMCUsSdk set (by SDK installer)
 * Absence of valid Qt for MCUs Kits

... helps to directly open the right page and tab of the Options dialog.

Task-number: QTCREATORBUG-23943
Change-Id: I7d4834633b1b94ef663d62cd395ee071bd123f1f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-06 06:43:24 +00:00
Tim Jenssen
f33dddaaec Merge remote-tracking branch 'origin/qds-1.50' into qds-1.59
Change-Id: Id492d324031d4d5fb919eca80ffae4baa50f247f
2020-05-05 21:01:17 +02:00
Tim Jenssen
c5157368bd Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: Ib971309305e4955a582f85de17e2e2c3365b0e92
2020-05-05 21:00:19 +02:00
Tim Jenssen
028d66f25a remove variant.hpp error
So this can be used with a Qt 5.15 build
outside of QtCreator.

Change-Id: I691687bf661be21d9c28f13a52ff5df58bb7412a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 18:57:49 +00:00
Thomas Hartmann
b3f3deccb0 QmlDesigner: Fix crash
Calling m_rewriterView->clearErrorAndWarnings() has side effects
that can call back to the model and meta info system.
As a consequence meta info data based on the old document is created.
This can lead to a crash when the new document is set and
the old document is released.

Change-Id: I47de904914c1daa8d4a76aa1889f90bd86a07af7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 18:08:40 +00:00
Brook Cronin
cd63459446 Theme: fix file navigation breadcrumb bar to use theme color
Change-Id: Ice727823e6081c02e492c7469ed2f305e81bcb5a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-05 17:51:01 +00:00
Thomas Hartmann
417c96828a QmlDesigner: Add easing property for animations
Task-number: QDS-2014
Change-Id: Ie9ea81dd52f3ca941afe77e39a4f5e3a2a428a68
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 16:08:09 +00:00
Assam Boudjelthia
a18c59faca Andriod: fix "always use this device" button not working
Fixes: QTCREATORBUG-23918
Change-Id: Ib9fa5bf0417f7fe028ec357b06d71577fa44c971
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-05 16:00:28 +00:00
Christian Kandeler
8bac57cd68 ProjectExplorer: Change the default value of TerminalAspect
... to "off".
The vast majority of people do not want to open their application in a
terminal just because it happens to be a console app.

Change-Id: I1372685f878349e7d16d9a06a75bcc4fd4f3c977
Reviewed-by: hjk <hjk@qt.io>
2020-05-05 15:48:42 +00:00
Denis Shienkov
84b7e693d4 BareMetal: Remove extra slash in auto-detected Keil toolchain path
Change-Id: I2de655155c7d84c2b74536ef89931a3e122da4cb
Reviewed-by: hjk <hjk@qt.io>
2020-05-05 15:43:49 +00:00
Christian Kandeler
bab97bf9b6 qbs build: Disable clang tooling plugins for llvm >= 10
They won't build with the new version.

Change-Id: I77c94817290418b0a97222465f0f8a8660053fae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-05 15:32:23 +00:00
Robert Loehning
20dc69c45d Squish: Try stabilizing CLI output
Change-Id: I0ff6aaaa62b9596487a279cdf5e597a3b7c83679
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-05 15:12:26 +00:00
Andre Hartmann
f486ff7dab Git: Add git bash to tools menu
Can be useful to perform tasks that don't have
a dedicated UI in Creator.

In my setup, git bash was directly in the git
installation folder %ProgramFiles%\Git and
therefore one level above git.exe itself.

Change-Id: I1ca0d3439690170d7fb840bca17e2c412effe0a4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-05-05 14:23:03 +00:00
Thomas Hartmann
8d9d1d983e QmlDesigner: Allow simple grouping of items
We already have the GroupItem.
This patch allows to automatically group items in a GroupItem.
The option is not visible if studio components are missing.

Task-number: QDS-1254
Change-Id: I64da7ec574426c9275fd29e131a1b1d761bf4299
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 13:41:02 +00:00
Thomas Hartmann
fab5e7290a QmlDesigner: Remove wrong checks
Those checks are simply wrong.

Change-Id: I4fbb9466444719cb61898376a257d41e52a13dc9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 13:40:19 +00:00
Thomas Hartmann
9c689d2bf6 QmlDesigner: Add file selector in design mode
Change-Id: I1367f8e7c72405c5e479b0a8c2f6a4d685df3db5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 13:38:24 +00:00
Thomas Hartmann
1549f5818c QmlDesigner: Move designer action to the center of the tool bar
Change-Id: I7d6b38ea31ebefe0c01acd9360271fc5ba062ffe
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 13:34:31 +00:00
Brook Cronin
ae5466f3b1 Theme: fix css to use theme colors
Change-Id: I82c278696e72d0a1ed08afef0e161fd83be0206f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-05 12:49:52 +00:00
Christian Kandeler
97165f0cb8 CodePaster: Expose privacy setting
Let the user decide whether their pasted content is public. Default is
non-public, for safety reasons.

Task-number: QTCREATORBUG-23972
Change-Id: I5be444807d3f2cb41c629825715f0eaaa50d34c7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-05 12:35:11 +00:00
Marco Bubke
2d0fab50c1 Sqlite: Locking the walCheckpointFull()
To call this function from a thread we have to lock it. There is no test
because there is no reasonable way to doing it. Anyway, this code is very
simple, so there no reason to see that there is an error in it.

Change-Id: Ibe57ddf421bc60929993afedecbde8c8486eb4db
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-05 11:26:26 +00:00
Eike Ziller
cc04c8d8e4 CMake build: Make translation function available to external plugins
And fix that the "ts_all" target did not get the custom target prefix.

Change-Id: Iff6a5e328456f3d949c31f2e41b48c400fad773c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-05-05 09:48:31 +00:00
Eike Ziller
43a0e9d2c5 Clean up API documentation of Core::ActionManager
Change-Id: I4509ec883a06996b7095ae65b85e2679dc1eda20
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-05 08:43:15 +00:00
Brook Cronin
8b16daf0ed Theme: add design studio controls theming to theme color list
I've chosen to add the controls themes colors to the main color list for couple of reasons.

1.) Adding the colors to the main color list allows them to be used from the QML constants
file that defines the controls color theme, in turn allowing us to customize the look and
feel of all controls on a per theme basis.

2.) I have added new colors instead of using the existing ones because of the ripple effects
of modifying existing colors in the themes, i.e that often when you want to change one particular
color in the UI modifying the value of existing colors in the theme has the unintended consequence
of changing other parts of the UI. Thus adding a specific set for the controls allows us to have a
fine grained approach to modifying the controls in any theme without disturbing the other elements
of the existing UI theme.


Change-Id: I16fb0458c870d01f68ed626676a665117628c917
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-05 08:33:35 +00:00
Eike Ziller
f574f478eb build_plugin.py: Add option to pass additional arguments to CMake
Change-Id: Ifab717fdca9b8c5d4585146e552a60fc66c08d74
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-05 08:03:41 +00:00
Christian Kandeler
37ce45c21e Core::OutputWindow: Prevent UI thread overload
... by splitting up huge amounts of output and feeding it to the
formatter in more digestable chunks, with event processing in between.
This prevents a UI freeze in the case that a single file emits a large
amount of diagnostics and the build tool buffers the output (as ninja
and qbs do), which therefore comes in all at once.
Apart from keeping the UI responsive, this also speeds up execution of
the build step itself, as the remaining output can now be displayed
after it has finished. If another build step is started and there is too
much output pending to flush all at once, we discard the pending output,
in order to prevent the delay to accumulate.

Fixes: QTCREATORBUG-23944
Task-number: QTCREATORBUG-22914
Change-Id: I7cfef939a85bbd13730f607b0f83c36473b0e550
Reviewed-by: hjk <hjk@qt.io>
2020-05-05 07:40:08 +00:00
Alessandro Portale
ff925d85e9 McuSupport: Remove outdated kits on KitManager::kitsLoaded
... instead while creating other kits.

Task-number: QTCREATORBUG-23891
Change-Id: I7ef3a6c92d94d8e6dd7499490a694be1d91ed35e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-05 07:09:40 +00:00
Alessandro Portale
67828b4fe5 QmlDesigner: Add a missing import to the PropertyEditor Theme
Change-Id: I4b6151b1e12311334a0c32e2fa6f7c30db150c92
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-05 07:03:32 +00:00
Thomas Hartmann
8a59bf19fe QmlDesigner: Update icon font
Change-Id: Ic1b59e1a026c4422b116bc3b5b262d077f1a9a1a
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-05 07:03:21 +00:00