Commit Graph

67787 Commits

Author SHA1 Message Date
Topi Reinio
73d45a994b Doc: Ensure QDoc finds Qt Design Studio examples
The name of the example project directory must match with
the project file name and the \example command argument.
This is case sensitive on platforms other than Windows.

Change-Id: Ie6fa6934ee444b42f024ebf00d6a9b20dfd6abce
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-18 10:15:03 +00:00
Eike Ziller
ec6782016e Update change log for 4.12.1
Change-Id: I25cce97a5a0a871e24c8898f3bb37e09199a9872
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-18 09:11:26 +00:00
Assam Boudjelthia
9e31378b50 Android: use latest ndk version instead of ndk-bundle
Fixes: QTCREATORBUG-23903
Change-Id: Iae3561818d86952dad9209d55984c82498d07575
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2020-05-18 07:46:45 +00:00
hjk
c6007f5a2c Debugger: Funnel some LLDB message to the AppOutputPane
This could be extended to the other bridges, not done in this patch.

Change-Id: I620290049b7c95f8e3fb7584d4ca99a42fd343d4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-18 06:47:10 +00:00
David Schulz
b8cce1bd5b Find: emit signal after replace text changed
We need to rerequest replacements for every replacement candidate in the
Language Client.

Task-number: QTCREATORBUG-21578
Change-Id: Ie221064ff21ade58291d2605f7c60660134723e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-18 06:25:53 +00:00
Andre Hartmann
d1b0966996 Git: Fix filling commit selection combobox for log
Broken by commit cbb70513bf, which changed the
format for the normal log to override the highlighter.

We still need the hightlighter for the log with diff.

Therefore, a separation between highlighting
and parsing the log is needed to populate the
combobox for commit selection again.

Change-Id: I902ce548fc25875f2cd67b165283ff1236329afa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-05-16 19:47:46 +00:00
Andre Hartmann
9c71e41ad1 VcsOutputWindow: Modernize password obfuscation
Use QRegularExpression and the QString::replace()
function with capturing groups to replace the
existing loop.

Change-Id: Ia9c0587dcdae40cff2b09379ac3ba84db4d30ce8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-05-16 19:09:43 +00:00
Andre Hartmann
02d216fa13 VcsBaseEditor: Reduce scope of local variable
As suggested by cppcheck. While at it, make it const.

Change-Id: I7800291545f8f14f4d939152d9a184da6eadc1f5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-05-16 19:03:16 +00:00
Tim Jenssen
aa79d30b83 Merge remote-tracking branch 'origin/4.12' into qds-1.50
Change-Id: Ia70d4b47f578021f29197a22b3e07e792342d05c
qds/v1.5.0
2020-05-15 17:20:20 +02:00
Denis Shienkov
b86375ad5d BareMetal: Add support for RISC-V architecture in GCC toolchain
This commit adds support for the RISC-V atchitecture:

 * https://riscv.org/

using GCC toolchains.

Tested auto-detection on Windows using the GCC v7.7.1 toolchain
provided from the following URL:

 * https://gnutoolchains.com/risc-v/

Change-Id: Ice10469ebda8af9cf7bf32299bb38e548b30b315
Reviewed-by: hjk <hjk@qt.io>
2020-05-15 15:17:31 +00:00
Denis Shienkov
41b78dd962 BareMetal: Auto-detect IAR toolchain for RISC-V architecture
This patch implements auto-detection for the RISC-V toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=RISC-V

Change-Id: Idd5950287e687e767899cc33ad80809f1d284065
Reviewed-by: hjk <hjk@qt.io>
2020-05-15 15:17:14 +00:00
Denis Shienkov
005b943ad5 ProjectExplorer: Add support for new RISC-V architecture
This commit adds new ProjectExplorer::Abi::RiscVArchitecture
entry for the RISC-V architecture:

 * https://riscv.org/

Change-Id: I0cd73cca22a2852203372efbccc51d74581d8f50
Reviewed-by: hjk <hjk@qt.io>
2020-05-15 15:17:03 +00:00
Denis Shienkov
4ff5249b11 BareMetal: Auto-detect IAR toolchain for Renesas SH architecture
This patch implements auto-detection for the SH toolchain,
provided by IAR Systems:

 * https://www.iar.com/iar-embedded-workbench/#!?architecture=SuperH

Change-Id: Id754113dd953987a5c2d20e4230e7ef0c8ccb752
Reviewed-by: hjk <hjk@qt.io>
2020-05-15 15:16:50 +00:00
Denis Shienkov
c21f2b4286 BareMetal: Add support for V850 architecture in GCC toolchain
This commit adds support for the Renesas V850 atchitecture:

* https://www.renesas.com/us/en/products/microcontrollers-microprocessors/v850.html

using GCC toolchains.

Change-Id: I2224b3241040c02196b39ff013659d2b8c692208
Reviewed-by: hjk <hjk@qt.io>
2020-05-15 15:16:37 +00:00
Thomas Hartmann
765d3a6bc0 StudioWelcome: Add summit videos
Change-Id: Iaccd8be7e6551a61b68bd215b9f049472ae81f68
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-15 14:49:58 +00:00
Leena Miettinen
37421b342f Doc: Add missing punctuation
Change-Id: If0af93ec6f64fc5c48c33df87cf37b4189dfc72e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-15 14:06:13 +00:00
Aleksei German
23cdbc1ef9 QmlDesigner: Copyright date updated on splash
Task: QDS-2099

Change-Id: I232ff5fb5fa6ae89bb1d64be3b676b101efff55f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-15 13:47:49 +00:00
Thomas Hartmann
18e5d9187a QmlDesigner: Fix clipping regression
Change-Id: Iee56c9934042f5bf08ad2059a5f4a4be5ae96c35
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-15 13:30:53 +00:00
Leena Miettinen
564bace1ec Doc: Describe SpotLight Qt Quick 3D type
Update screenshots of all light types in 3D Editor.

Task-number: QDS-2056
Change-Id: I5f4fbacd01850c7cedcbd187969b9f310507649c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Johanna Vanhatapio <johanna.vanhatapio@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-05-15 13:27:03 +00:00
Eike Ziller
7051ba8498 Build script: Add option for passing arguments to build command
So one can pass e.g. -j3 when locally testing while still doing other things

Change-Id: I7a528884f19698290e49c372eb31030afe609d23
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-15 12:50:24 +00:00
The Qt Project
8f1be3f343 Merge "Merge remote-tracking branch 'origin/4.12'" 2020-05-15 12:49:43 +00:00
Eike Ziller
52b7ec058b Merge remote-tracking branch 'origin/4.12'
Conflicts:
	src/plugins/mcusupport/mcusupportsdk.cpp

Change-Id: I1583fa81adc0218ad4657baa347c08e9e29f88e6
2020-05-15 14:49:11 +02:00
Christian Stenger
eac5bc2a06 Marketplace: Do not use dynamic_cast
Amends c3946529ca.

Change-Id: If66ce3169dd1c61334a26f5532866dda9b0338a9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-15 12:09:31 +00:00
Andre Hartmann
c2c5731d50 VcsOutputWindow: Fix creating links from command output
After the refactoring of the output parsers in
1c6e4fbd32, NormalMessageFormat and
ErrorMessageFormat are no longer parsed.

To allow parsing and therefore generating links,
the command output has to be declared as stdout
or stderr, depending on the severity.

Our own log and command messages are now
(in contrast to Creator 4.12) no longer parsed for
commit hashes and links, but this is acceptable.
Parsing the command output is often more interesting.

Change-Id: I7e7a96f4ff98edd88f5d9b8abddf94363768c0a6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-15 12:05:05 +00:00
hjk
73865034c6 Android: Use adb:// in ConnectRemote
This is apparently the right thing to do anyway and also helps to
select the right emulator or device when multiple ones are connected.

In that situation otherwise an error

  "Expected a single connected device, got instead 2 -
    try setting 'ANDROID_SERIAL'"

would occur.

Change-Id: I650a221d1a321d4dd9035411f85c7a68244c20e2
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2020-05-15 11:37:35 +00:00
Eike Ziller
7414a47825 C++: Add tool button in editor for "Analyze File"
Adds a button for analyze file to all text editors that have a C++
source file open.

Task-number: QTCREATORBUG-23348
Change-Id: If08f2969304ee0817f00c9ee5ff8c0d4f96f7f72
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2020-05-15 11:20:38 +00:00
Andre Hartmann
89c071f2bf PublicKeyDeploymentDialog: Make theme-aware
Change-Id: Id7af63d4bfafeb22fe266c88555a54a04135de86
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-15 10:34:23 +00:00
Johanna Vanhatapio
921b56cd46 Doc: Update information about views for editing 3D assets
Task-number: QDS-2056
Change-Id: Iee6aab42c4cd6d97d99eafc3599e55828f0d9657
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-15 09:01:24 +00:00
Tobias Hunger
7c985c14ad CMake: Move notification on outside cmake runs into FileApiReader
Move the detection of outside cmake runs into FileApiReader and
make the FileApiParser non-interactive.

Change-Id: I70afc1df35fcfe90e88822569579154aabbdb1cd
Fixes: QTCREATORBUG-24015
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-15 08:36:50 +00:00
Tobias Hunger
517cb05db0 CMake: Clean up API of FileApiParser
Clean up the API of FileApiParser in preparation of moving
the FileSystemWatcher out of that class and into FileApiReader.

Change-Id: I5618252dd98a39f6a70f56b50fb50327e8b43e84
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-15 08:36:37 +00:00
Leena Miettinen
3819b766a4 Doc: Update information about project wizards
Qt Quick 3D, Flow Item and Flow view wizards have been added,
the Qt for MCUs wizard is now included in Qt Design Studio,
and the font loader wizard has been removed.

Task-number: QDS-2056
Change-Id: Ie5d42320661977d57767c3bf58fd480e7d6c3c8d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-15 08:04:05 +00:00
Johanna Vanhatapio
1d257e60d1 Doc: Update information about 3D Editor
Change-Id: I047b96e1db411ccbbe73a94f701cc7e632bc98c9
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-05-15 06:06:26 +00:00
Christian Stenger
0767107c55 McuSupport: Fix compile for gcc 5.3
Change-Id: I389330addba4b4516eb5da8f72b41b56f612888a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-15 05:20:01 +00:00
Nikolai Kosjar
09353d927b ClangTools: Fix ReadExportedDiagnostics.* tests
These fail

 [  FAILED  ] ReadExportedDiagnostics.Tidy
 [  FAILED  ] ReadExportedDiagnostics.Tidy_Clang
 [  FAILED  ] ReadExportedDiagnostics.Tidy_ClangAnalyzer
 [  FAILED  ] ReadExportedDiagnostics.Clazy

as 07ec6de8d9 introduced Diagnostic::name
but did not adapt tests and printing.

Change-Id: Icadace9c23ad1ad03eee7ad394bbc0211aea31f3
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-05-15 05:10:11 +00:00
Nikolai Kosjar
9edf0056ae ClangTools: Fix crash when starting the analyzer again
Address a nullptr dereference of m_runWorker in
ClangTool::updateForCurrentState() for the case described as (C2) below,
reproducible with "./qtcreator -test ClangTools".

Two use cases are connected to this:

 (C1) Run the analyzer twice with clearing app output pane in-between
 (C2) Run the analyzer twice without clearing app output pane in-between

Relevant observations in this context are:

 (O1) Closing the app output pane destroys the RunControl/RunWorker.
 (O2) Running the analyzer a second time will first create a new
 RunControl/RunWorker, then destroy the old one.

Now, the change

    ClangTools: Avoid accessing deleted run worker
    This reverts commit d02f5664e5.

fixed a use-after-free-crash for (C1), but introduced a
nullptr-deref-crash for (C2) as it resets m_runWorker to nullptr on
RunControl destruction, which conflicts with the order mentioned in
(O2).

To fix both use cases, revert the mentioned change and access
m_runWorker only when we know that it exists for sure - right after
signal emission.

Change-Id: I034f0905d635b15c0c6bbe499648b62d5a058c04
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-15 05:09:45 +00:00
Thomas Hartmann
583b861389 QmlDesigner: Allow adding custom effects
Change-Id: I76a6bf035f1a9f2735e25c4c5f80ec9e677ca7f6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-14 18:22:44 +00:00
Thomas Hartmann
1d4c833d03 QmlDesigner: Allow Item to Item transitions
Change-Id: Icf23d8485bee0ea90240488af95282faa2513848
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-14 18:22:15 +00:00
Marco Bubke
ebbb88b11a Sqlite: Derive Sqlite::Exception from std::exception
Change-Id: I11a1162e5b450f71b8c2c4068ace6ef08825d7bb
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-14 18:02:54 +00:00
Marco Bubke
33a833d187 Sqlite: Add null value
So we can distingish between a null value and zero or an empty string.

Change-Id: I9122fdafdf85cf04dcf8bca7bf294be9b28ee251
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-14 18:02:18 +00:00
Marco Bubke
d2fe9da7e7 Fix \
Change-Id: I1834bb36443417212e4836c3353ee6c8f040b617
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-05-14 15:21:52 +00:00
Leena Miettinen
c59e8ce651 Doc: Update information about Scene Environment properties
"Blend mode" field seems to have been removed.
The Skybox option has been added to "Background mode" field.

Task-number: QDS-2056
Change-Id: Ie5c5b5fae4aba83bd8b9b50357bb83d58fbb69c2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-14 14:39:03 +00:00
Christian Stenger
135f2cf7cf Marketplace: Fix missing include
Amends c3946529ca.

Change-Id: If296e108315f7120b34895bf5d9aabdf173b54ef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-05-14 14:05:36 +00:00
Alessandro Portale
f08fe165ab McuSupport: Read supported targets from SDK .json files
... Replace the current hard-coded list of supported (non-Desktop)
targets.

Task-number: UL-2012
Change-Id: I65851d11eea9f62635d56c42788caeae8a77a4f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-14 13:37:46 +00:00
Christian Stenger
5104798b8c Check for selection support of clipboard
Setting the data on a non-supported MIME data will fail
and get deleted.
Checking beforehand gets rid of a warning printed by
QClipboard.

Change-Id: I5b5a371ce5b904f61a1aed5ea21a98908155357b
Reviewed-by: hjk <hjk@qt.io>
2020-05-14 13:19:18 +00:00
Christian Stenger
c3946529ca Marketplace: Use sections to display products
Fixes: QTCREATORBUG-23808
Change-Id: I2f69697c6ab2133ccf4567bf8f5185bac34a86c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-05-14 13:16:49 +00:00
Christian Stenger
dd9bed93f0 Dumper: Fix Python 3 support
Change-Id: I3b981a0418b2a407adfbdbab5f6b73176aeb588f
Reviewed-by: hjk <hjk@qt.io>
2020-05-14 13:16:13 +00:00
Eike Ziller
4aca7a0bff Add documentation for Core::Context
Change-Id: I375e26c07828c2f933511b51015385326464f575
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-05-14 10:54:54 +00:00
hjk
7a63a47ef0 Debugger: Work around for gdb reporting zero array sizes in some cases
Task-number: QTCREATORBUG-23998
Change-Id: I101d032705b66faf50260067f6aa604214f09298
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-14 10:52:18 +00:00
David Schulz
755de9f86a Editor: delete processor after canceling
Set a null proposal has the potential to restart the processor
in combination with the invalidateCurrentRequestData from this
cancelCurrentRequest will result in a restarted processor that is not
tracked via m_asyncProcessor.

Change-Id: Ia0e0d49564170a1e705994933d07e00c23f24f5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-14 10:44:57 +00:00
David Schulz
738726d656 Editor: delete the processor that proposes a result
Not the currently active one.

Change-Id: Ia0e146e61c07564107ca5a3ec6b5b2d65967f572
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-05-14 10:44:45 +00:00