Commit Graph

61421 Commits

Author SHA1 Message Date
Richard Weickelt
313d16bba4 Update Qbs module
[ChangeLog] Updated Qbs to version 1.15.0.

Change-Id: I542fe7a7eb5e60fe6138213e04b69356c02d7a0c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-23 09:14:34 +00:00
Christian Kandeler
a4863bd238 "Add Library" wizard: Fix display glitch
Fixes: QTCREATORBUG-23049
Change-Id: Ic7e694707e6e0565866b86838f1302719a933854
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-23 08:29:21 +00:00
Miikka Heikkinen
30b37a989a Ignore asset file suffix case when importing 3D assets
Change-Id: Ic742f5c6bec82718d99d472a26271cf500594e63
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-23 07:35:36 +00:00
Miikka Heikkinen
4eb51a66ac Fix light type in edit view
Light component was split into three different light types in Quick3D.

Change-Id: I409dc4888b389bcb9b8e842f3a6bfeac34f3aaa0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-10-23 07:35:22 +00:00
Miikka Heikkinen
94ce6853c1 Fix widget order in import dialog so spinboxes can receive mouse focus
The label needs to be created before the spinbox or the label will
block the spinbox mouse events, as the tail end of the labels overlaps
the non-checkbox control column to avoid unnecessary cutoff of the
labels that do not have any non-checkbox controls.

Change-Id: If7a7fd671b0dbb3f4c1ab5570217455e4978765e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-10-23 07:35:12 +00:00
Thomas Hartmann
60bb13efbf QmlDesigner: Use DesignerWindowManager when reading stream
Without the DesignerWindowManager QtQuick3D items will crash.

Change-Id: Ib4057d581143aed860fa120ab189e11076d1f531
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-10-23 07:16:51 +00:00
Eike Ziller
1a6e441f1b Locator: Ask before creating files
With the option to not ask again.

It's too easy to create unwanted files when mistyping names in Locator.

Fixes: QTCREATORBUG-23078
Change-Id: I082d3e112db404813c7d8f46edb7a16836a98a92
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-23 06:11:24 +00:00
Christian Stenger
f68588a585 RemoteLinux: Correct clean shutdown when debugging
If the inferior stops by itself and the debugger
tries to shutdown it had ended up waiting forever for
the additional workers (e.g. ports gatherer, channel
provider,...) to stop.
The debugger appeared as finished but the runworker was
still in a running state until the user would hit the stop
button of the application output pane.
Make the gdbserver essential to initiate a clean finish.

Change-Id: I16b2ebe5feadc88bb76ce34b49ac5d3456d0867c
Reviewed-by: hjk <hjk@qt.io>
2019-10-23 06:07:50 +00:00
Christian Stenger
1b655f76ad AutoTest: Fix gathering Boost test cases
When multiple test executables are defined inside a
single project file all or selected tests did just use
the first defined target which in turn led to execute
only the test cases of one of the executables or none
at all.
Take all targets into account and make Run All and
Run Selected work correctly for this scenario.

Fixes: QTCREATORBUG-23091
Change-Id: Idf0dd99f9a8782072cbc5792c937232673fee445
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-23 05:37:26 +00:00
Christian Stenger
6df9e8f8be McuSupport: Fix missing include
Amends 6bdc6c1584.

Change-Id: I13a927c872aac3b7e76d8d2604dbe7a0a8dfadcf
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-10-23 04:48:37 +00:00
hjk
8d03546d6b Mcu: Compile fix
Change-Id: I45134ffc02adfe770127bd6648ed378fdd616264
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-22 14:52:51 +00:00
Alessandro Portale
6bdc6c1584 McuSupport: Split up McuSupportOptionsPage
Move the non-OptionsPage code into a new file for comprehensibility.

Change-Id: I306ae669ec9fdd941f777426420859ee2eb89e95
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-22 14:35:34 +00:00
Orgad Shaneh
82859399e6 QtSupport: Simplify detection of qmake executable in PATH on Windows
Instead of enumerating the directory, search directly for the executable
first, like it is done on UNIX.

Change-Id: I6465d85efa20d97622afc227eaadcbc14b3e22f5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-22 13:27:46 +00:00
Orgad Shaneh
d73632c6f3 Main: Remove unused include
Change-Id: Ifeef80bfc6465c5544118a74e774a5442c4f8374
Reviewed-by: hjk <hjk@qt.io>
2019-10-22 13:27:27 +00:00
hjk
67c74fbe29 ProjectExplorer: Do not return early on parsingFinished assert
This is a hack, not a proper solution. In theory, this here should
serve as a lock.

We currently get start - start - finish - finish sequences when
switching qmake targets quickly, keeping the run button disabled.

The whole setup here is unfortunate. Parsing inherently depend on
more than the project alone, it's roughly per-Target. So keeping
track of it in the Project complicates it.

Change-Id: I57d361ce21088d8e1ec53ce75f83ff3bd04851e1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-22 13:20:38 +00:00
Cristian Adam
6463a686f6 Build Fix: Workaround symbols inclusion from PCH headers
Broken in b128d498b2

Tested with MinGW 8.1
Tested with VisualStudio 2017

Change-Id: I8f43efe43016ea95866ee018ac9a47373a37373b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-10-22 12:18:09 +00:00
Nikolai Kosjar
90982bf2e2 Clang: Remove duplicated targets arguments
We always set the target explicitly (in a certain way), so exclude the
target arguments coming from the build system and the (possibly manually
specified) platform codegen flags of the toolchain.

Change-Id: I74bbec67f5960f05b50cf9c5aa11875c71a5161f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-22 11:46:56 +00:00
Nikolai Kosjar
8f6eb41cad Clang: Ensure that platform codegen flags get also filtered
Leave the function addExtraCodeModelFlags() around as it's used by
ClangPchManager::ProjectUpdater::toolChainArguments().

This allows us to filter out excess target arguments in a follow-up
change.

Change-Id: I742d713dd1ca6c391ba77c52555dcf4e94cc2ff9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-22 11:46:42 +00:00
David Schulz
6e3de85b33 Debugger: always hex encode the value of assignments in cdbext
Fixes assigning negative values to locals

Change-Id: Ief6e7f47e8e6f0a5d38458396164dfcd24e408a5
Fixes: QTCREATORBUG-17269
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-22 11:46:04 +00:00
Ulf Hermann
1a2bac60ed PerfProfilerFlameGraphModel: Make Payload::m_numSamples mutable
This is necessary to make the class movable.

Change-Id: I85decaa9f5c520aa3272a018ceca3aba642e1565
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-22 11:42:19 +00:00
Orgad Shaneh
734b6a5fdd QtSupport: Use QLoggingCategory for Qt version manager
Change-Id: I27b98ff853d7b5d437cab0df61243146220dadc8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-22 09:54:20 +00:00
Cristian Adam
8ee22dd597 CMakeProjectManager: Fix clang code model when CMake PCHs are used
CMake gives the path to the cmake_pch.h[xx] file as relative path
to build directory. Making it absolute fixes the code model.

Fixes: QTCREATORBUG-22888
Change-Id: I2fdc080be779f22b737788be2074254290994aaa
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-10-22 08:12:26 +00:00
Eike Ziller
78e5a8a80a Fix crash in QtVersionManager
Introduced in 9c2568b8e8
Range-based for loops that modify the original container must
work on a copy.

Change-Id: Ib917014ab259c20b282cdc85e7ca6583f7844de5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-10-22 08:03:09 +00:00
Eike Ziller
b3b813c13c QmlDesigner: Fix cmake build
Amends ac84f8a457.

Change-Id: I0bac2e5ed5328396bbe75c2b7013d81afdcc1bd3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-21 13:18:35 +00:00
Christian Stenger
091f0f1a04 QmlDesigner: Fix compile
Amends ac84f8a457.

Change-Id: Iccca5a31dd852bc95c9095a2c8b1c6f1f5eab8d8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-21 13:06:33 +00:00
Thomas Hartmann
49379bfda7 QmlDesigner: Add and dispatch ValuesModifiedCommand
We already have valuesChanged() which notifies that a
property of the C++ QObject has changed.

This patch adds valuesModified() which notifies that values
in the data model should be changed.

While valuesChanged() only changes the so called instance value,
valuesModified() does change the internal data model and as
a result the QML code.
This is done in NodeInstanceView::valuesModified().

This enabled the qml2puppet to acutally change values,
like a property editor would.

Change-Id: I2493b9e626c4b194e332a7a096de3dbf2195514a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 12:47:28 +00:00
Ulf Hermann
b4bc204a7d CtfVisualizer: Avoid compile warning
Column::COUNT should not show up as actual column, but the compiler
doesn't know.

Change-Id: I68eea5c73a95bd45378f88c505f0cefed62ce8ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-21 12:26:56 +00:00
Christian Kandeler
33e24ac83e QmlDesigner: Fix warnings about unused variables
Change-Id: I659cc1246632b91ace8d025e5d02cf5c20f8d1b9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-21 12:21:07 +00:00
Christian Kandeler
79aedfbb7a McuSupport: Fix warning about unused variable
Change-Id: If0905e2937b02806cf000d9f9d270d87f0a0a370
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 12:20:43 +00:00
Thomas Hartmann
5e225f85eb QmlDesigner: Fix Coverity scan defects
Change-Id: I07a61fe4498ae0b28baaa969f0decfa5689b4443
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 12:13:13 +00:00
Thomas Hartmann
ac84f8a457 QmlDesigner: Implement Quick3DNodeInstance wrapper
We use Quick3DNodeInstance as a proxy class to wrap QQuick3DNode.
The access to private API like QQuick3DNodePrivate::setIsHiddenInEditor()
is restriced by such proxy classes.

Change-Id: If5191c3b730359000cf983c3af206dcffa07be74
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-21 11:30:19 +00:00
Tobias Hunger
b128d498b2 CMake Buildsystem: Enable visibility settings for binaries
This should not matter, but makes the add_qtc_executable targets
match up with the PCH, so that they should build a bit faster.

Change-Id: Ibecaaf7fd98d5b927d52e4956b1bea4a5775afba
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-10-21 11:20:14 +00:00
Thomas Hartmann
fab360d83d QmlDesigner: Start and end transaction for spin box dragging
Using the spin box focus is not safe enough, but using
transactions on the dragging works nicely.

Change-Id: Iffc15b4ca44cb473b257f58e548ff86ebd56bbf2
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-10-21 09:39:28 +00:00
Thomas Hartmann
b64f5a3fe5 QmlDesigner: Position point light at camera
Since the camera is movable the light should follow the camera.

Change-Id: Ia9925f98288ff19a81086e52f3a31fe72b32ee99
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-10-21 09:39:10 +00:00
Robert Loehning
35fe01c6e9 Squish: Update expected label text
Change-Id: If17465530ca06f5d4d1ae06db1f8175ecdd92fd1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-21 09:34:53 +00:00
Christian Stenger
cc67ad8736 Squish: Adapt handling for project creation
Some templates got an additional page for handling translations.

Change-Id: I420e4f1bd8be5a30056220abd73b3f9da44d5047
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-10-21 09:34:20 +00:00
Christian Kandeler
6fd29da2cb Target setup page: Un-queue connection to kit manager
If we have a project with two enabled targets and we remove both of the
associated kits, one of the targets temporarily becomes the active one.
If the activeTargetChanged() signal gets queued, then the receiver will
be called with an invalid target pointer, as the target has been removed
in the meantime.
It is unclear why the signal was queued in the first place. Presumably
the original reasoning is no longer applicable after various
refactorings.
This amends (and effectively reverts) commit c13b20f160.

Task-number: QTCREATORBUG-23075
Change-Id: I3c63c763319734a4d52b3bb221919b20fd123dbe
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-21 09:19:01 +00:00
Alessandro Portale
1646c266d6 qml2puppet: Fix CMake build
Change-Id: If14e60e5a12526f68561bf9b54c5a181fb7b4534
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 09:12:29 +00:00
Eike Ziller
163faba8ff Bump version -> 4.11 beta2
Change-Id: Iea7b87cc19309eb4c3a921fa29d1b40170aaacc8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-21 08:45:26 +00:00
Alessandro Portale
f6d2315824 WebAssembly: Add registered MinGW path to toolchain environment
The build system of Qt for WebAssembly on Windows requires MinGW in the
path. If a MinGW toolchain is registeded (e.g. via Sdk installer),
append it to the path.

Change-Id: I5c33cb5c4df636be99f815e307806efc07e18a11
Reviewed-by: hjk <hjk@qt.io>
2019-10-21 08:32:20 +00:00
Pasi Keränen
c2c8b9a5d6 Add edit camera controls for 3D edit view
Add edit camera controls and grid helper to 3D edit view.

Task-number: QDS-1127
Change-Id: Ice5ea0fcca18d59dc8a2907710e16c6688b90628
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-10-21 08:27:16 +00:00
Eike Ziller
189ab38641 macOS: Remove workaround for bug that was fixed in Qt 5.9.2
Removing the dummy OpenGL widget gets rid of flicker and scaling issues
when moving between monitors with different DPI.

Fixes: QTCREATORBUG-23064
Change-Id: I2373862244353b545e8756afe294f9beeefda422
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-10-21 07:32:34 +00:00
Thomas Hartmann
3ee870a3d8 QmlJS: Fix regression caused by parser update
We have to keep the semicolonToken into account.

Change-Id: Ie599d141d21f09f1d0036c0382f6a3098fde6ca5
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-10-21 07:21:08 +00:00
Thomas Hartmann
640044c8f8 QmlDesigner: Implement command for synchronising the selection
This patch implements the command and dispatchers for
synchronising the selection between Qt Creator and the qml2puppet.

Qt5InformationNodeInstanceServer::changeSelection() is called whenever the selection
is changed in Qt Creator.

Qt5InformationNodeInstanceServer::changeSelection() allows to change the
selection from the qml2puppet.

Change-Id: I73a64d8dc2a3f330433f966b42a10229cbbff649
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 05:52:13 +00:00
Alexis Murzeau
708179285d MsvcToolchain: Fix "detection" of supported ABIs for msvc2010
Always ensure that supportedAbis includes targetAbi so toolchains that
don't have any vcvars32.bat or the like (like msvc2010) are restored
correctly at startup.

The cache-miss case is just shifted inside a else clause so the added
code is executed both in case of cache hit or miss.

The targetAbi is added to m_supportedAbis but is not cached in abiCache
as the abiCache has only vcVarsBat as the key, which is the same for
all toolchains of the same compiler but different architecture.

This way, even if the common supportedAbis is retrieved from the cache,
the presence of targetAbi is always checked and added if needed.

With this modification to detectInstalledAbis(), setSupportedAbi is not
needed anymore as it is redundant. Now msvc2015 build tools case is
handled the same way as msvc2010 in detectInstalledAbis().
This effectively reverts 2896e5f5e2.

Also, the existing QTC_ASSERT(m_supportedAbis.isEmpty(), return); in
detectInstalledAbis() is removed as when vcVars is changed, it can
have a new uncached vcVarsBase while having supportedAbis set already
(via a call to changeVcVarsCall).
This happens for clang-cl toolchains that inherit MsvcToolchain but
change vcVarsBat in ClangClToolChain::resetMsvcToolChain later (in
ClangClToolChain::detectClangClToolChainInPath).

Task-number: QTCREATORBUG-22960
Change-Id: Iaad5ea1dc649393037a3d32faa9075153974b5cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-18 19:02:25 +00:00
Christian Kandeler
e7b481bdee Qnx: Suppress warnings about missing stat
These warnings are only relevant for incremental deployment, which is
not used here.

Change-Id: I52636b0c3f7ba89131c27fc5e66c23e8a6ea9990
Reviewed-by: hjk <hjk@qt.io>
2019-10-18 15:16:13 +00:00
Leena Miettinen
b6d071c246 Doc: Describe developing apps for Qt for MCUs
Fixes: QTCREATORBUG-22926
Change-Id: I6c494858bcd637e4ae11ab0e8ea2687fb1eb26ef
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-18 12:27:00 +00:00
Christian Kandeler
7bbfa2de16 QmakeProjectManager: Do not start parsing without a target
This "feature" generated misleading output when opening a project
initially.

Change-Id: I86c541266ffbf576899004f4e6401feea6f38173
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-10-18 12:20:26 +00:00
Nikolai Kosjar
8c7dd57645 Clang: Build against LLVM/Clang 9
Task-numer: QTCREATORBUG-23038
Change-Id: I3608bca6541614bb55e67d35c87334957cd02761
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
(cherry picked from commit 6ec8017bc6)
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-10-18 12:19:46 +00:00
Laurent Montel
55acde61c3 Cppcheck: remove unused forward declaration
Change-Id: I99f8afd16f98b9d7b2719aa95dfe07d0c5cd0054
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-10-18 12:12:57 +00:00