Commit Graph

50019 Commits

Author SHA1 Message Date
Miikka Heikkinen
77cb514a79 QmlDesigner: Implement better camera navigation in 3D edit view
Edit camera is now controlled as in Qt 3D Studio:
ALT + left button orbits camera.
ALT + middle button pans camera.
ALT + right button zooms camera.
Wheel zooms camera.

Task-number: QDS-1206
Change-Id: Ia72644073d172b00483ceed8bcc5ffb8dce68741
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-22 10:47:42 +00:00
Nikolai Kosjar
668cd2091a ClangTools: Fix clazy plugin invocation with recent clazy
As the no-autowrite-fixits option was removed with

  c5d0a2d016

our clazy invocation is incorrect and results in the usage being
printed.

Change-Id: I104273da8722f00c3df0d69d2b57c68fc9d3c1e6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-11-22 09:35:28 +00:00
Nikolai Kosjar
818f2d0c5c CppTools: Fix race condition when opening projects for tests
The ClangTools plugin tests open a project and immediately trigger a
build afterwards. We checked whether CppModelManager got already data
from the project manager, but this alone was racy for the mentioned use
case as e.g. the QbsProjectManager might still be in parsing mode and
thus the build was not triggerable. Check for the parsing state, too.

While at it, simplify the code by using QTest::qWaitFor(), which also
takes care of posted events.

Change-Id: Id298695b2e67578def42275bac4ea31f4a39edf2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-22 06:50:42 +00:00
Alessandro Portale
e53e0a808b ProjectExplorer: Use Utils::ElidingLabel in EnvironmentKitAspectWidget
Utils: :ElidingLabel re-elides on resize.
Change-Id: I62709da60e7ab0156a33f373b236f71d1795d48f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-21 17:04:32 +00:00
Nikolai Kosjar
b6ed781c28 ClangTools: Simplify clazy test
...in order to not run into parse errors in qstring.h involving

  * C++17
  * >= Qt 5.14
  * stdlibc++ of gcc 5.3/5.4

Change-Id: I8c06f90a88a4dd18503a81b68433604eb3bc9556
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-21 14:17:21 +00:00
BogDan Vatra
7e8e6bcba1 Android/Qmake: Execute clean on architecture changes
Change-Id: Id0e1465e7ec7f6675cbf9d986352e811e6d31bec
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-21 13:42:22 +00:00
Cristian Adam
fac8a4179a CMake: Build fix for qlitehtml when submodule was used
Change-Id: If82d46a761b9c59a2d945d723df575e66bd9c5a8
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-21 11:22:18 +00:00
Alessandro Portale
f8f6f53960 McuSupport: Add optional color depth (bpp) property to McuTarget
...include that in kit names and add it as "QUL_COLOR_DEPTH" CMake
parameter.

Change-Id: I14ba7ce465c54d525683be2660d2e24b6ecfed6c
Reviewed-by: hjk <hjk@qt.io>
2019-11-21 07:49:10 +00:00
Alessandro Portale
b738a9d02d McuSupport: Reduce omnipotence of McuTarget's constructor
... add some setters for optional properties.

Change-Id: I4e1814c36f8294af86bf30d8538f450bc7f70b2b
Reviewed-by: hjk <hjk@qt.io>
2019-11-21 07:48:25 +00:00
Alessandro Portale
cd4fe07708 Android: Use numerical options for remote chmod call in uploadGdbServer
androiddeplyqt does not deploy gdbserver anymore, since Qt 5.14.
Therefore the gdbverver deployment of Qt Creator is triggered for all
devices, some of which do not support the symbolic chmod parameters
(e.g. +x).

Change-Id: I66e9fabeb0da4a1a3693c655a085d81c15f9d263
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-11-20 16:34:11 +00:00
hjk
5c64d59d8a Debugger: Fix copying stack content to clipboard
Change-Id: I41240e15235a4906439a514fcf56fa1f7ddc8a80
Fixes: QTCREATORBUG-23199
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-20 14:55:32 +00:00
Cristian Adam
da25ac6322 CMakeProjectManager: Add ability to specify path to ninja
Task-number: QTBUG-79885
Change-Id: If0c5efc534e2fc6f0041b9407e2ae24ed671ac8a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-20 11:37:00 +00:00
Eike Ziller
15b2765dff Update Qt validity in options when changing Android device settings
When changing the Android device settings and pressing "Apply", the
information in the "Qt Versions" tab is no longer correct.

The Abi information is parsed from the mkspec, and that depends on the
NDK setting in the environment.
When the NDK in the device settings changes, it updates the toolchains,
and that triggers a re-validation of the Qt info in
QtOptionsPageWidget::validInformation, but since the Android Qt version
already has tried parsing the mkspec, and got (possibly empty) Abi
information, it never is parsed and updated again.

We need a way to force BaseQtVersion to update these things again.

Fixes: QTCREATORBUG-23095
Change-Id: I9cb55ad1a73db942804637344e4c856c7e95afd3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-20 11:28:47 +00:00
Richard Weickelt
20f050303a Update Qbs submodule
Change-Id: I4a3fa1924b61fac55026cf0004c6e6468de57471
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-20 11:07:15 +00:00
Cristian Adam
b6ab85a440 Android: Fix debugging on Windows
The pid script was wrongly quoted on Windows resulting in not having
logcat ability, and no debugging.

Change-Id: Ica40d033b61b69bb2372f54f0eba19ae1d2e3c9f
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-11-20 11:00:15 +00:00
Christian Stenger
09b358cf72 CppTools: Fix compile for gcc 5.3
Change-Id: I4b0da43dc835de1bc523a52be53da05e2237318c
Reviewed-by: hjk <hjk@qt.io>
2019-11-19 14:55:56 +00:00
Christian Stenger
4797111a4d AutoTest: Fix detection of GTEST_TEST
Googletest allows specifying tests with the
GTEST_TEST macro which was ignored until now.

Fixes: QTCREATORBUG-23228
Change-Id: I7dffab890e002000b32f7cd5b7444dc06fabe35a
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-19 05:46:11 +00:00
Christian Stenger
26e2572852 AutoTest: Fix font for results pane
Use a correct font on macOS as well.
Beside this there had been strange observation made
when zooming the command line output.

Change-Id: I8b8cdd0d76e415da4bc792b0d646154cfc8fde9d
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-19 05:45:48 +00:00
Sergey Morozov
78012fcb66 Core: Fix wrong current view after session restore
Fixes: QTCREATORBUG-23233
Change-Id: I4e5a854769d6aa00f5601b8bd8282523681d0458
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-18 16:29:42 +00:00
David Schulz
02b7a529dd LanguageClient: request link from active server for the document
Instead of sending the link request to all reachable server send it only
to the server that is currently used to handle this document.

Change-Id: I27a8d0e4573f734baa2931a0af771e60665a4532
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-18 14:40:28 +00:00
Miikka Heikkinen
49f7cfb7a1 QmlDesigner: Implement proper helper grid for 3D edit view
Change-Id: I9e33218d4b1528610155c5fb9bf94a9597ee23df
Fixes: QDS-1204
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-18 08:40:00 +00:00
David Schulz
b2e1499782 Python: Use native separator in user visible path
Change-Id: I7ef46a2cae7744162a6f9da92a4736d74a029705
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-15 14:05:50 +00:00
David Schulz
40612bceee Python: Fix python run configuration
Add the WorkingDirectoryAspect to prevent running the
main script in an unpredictable location.

Change-Id: I1be206261b7983e933b53ccd57c93089154d8417
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
2019-11-15 14:05:38 +00:00
Alessandro Portale
a2355841f5 McuSupport: Rename internal types
"PackageOptions" -> "McuPackage"
"BoardOptions" -> "McuTarget"
"qul" -> "qtForMCUs"

Change-Id: I209cc82c7516fbf6a960b26c440159dbab02a4db
Reviewed-by: hjk <hjk@qt.io>
2019-11-15 08:07:37 +00:00
Tobias Hunger
cca33e2e26 CMake: Do not make the CMake tool invalid on timeout
Do no mark the CMake tool as invalid when it times out when fetching
auto-completion information. This happens the first time a CMakeLists.txt
file is edited in Creator.

Also increase the timeout so that there is less of a chance
to trigger have the information retrival time out -- which breaks
auto-completion of cmake variables, etc. in the CMakeLists.txt editor.

Closes: QTCREATORBUG-18530
Change-Id: I914377a6ece90c6f78ea5eb007da8fbe07785563
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-14 16:17:12 +00:00
Alessandro Portale
631efb8611 McuSupport: Use the official product name "Qt for MCUs" a bit more
... for the Kit names and the SDK path label

Change-Id: Idb87b20c944760e599df5edb4b1eafc7d28bde92
Reviewed-by: hjk <hjk@qt.io>
2019-11-14 11:30:22 +00:00
Alessandro Portale
4973af165e McuSupport: Unify and clean-up strings that end up in the settings
Change-Id: I65c10f6865f8f2a4670c5bc9a8c7269488dd937e
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-14 11:29:56 +00:00
Nikolai Kosjar
05ef46efdb BinEditor: Fix a dead store
Change-Id: I44d8a60037f02f4467ea085e4ad0d366c6c7aa86
Reviewed-by: hjk <hjk@qt.io>
2019-11-14 07:29:07 +00:00
Alessandro Portale
0d35690682 McuSupport: Assign "QtMCU Qt Desktop" kit the QtMCU icon
It is in fact more a QtMCU kit than a (Desktop) Qt kit.

Change-Id: If55699c13f76f75b8326074f9d7c1989f571dd7c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-13 22:43:57 +00:00
Alessandro Portale
a035635f1f McuSupport: Add compilers to CMake configuration
To get rid of the warning triangle on the kit icon, CMAKE_CXX_COMPILER
and CMAKE_C_COMPILER get defined.

Change-Id: I40ee47e4059e8986557609048f465972985e3d5b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-13 22:40:18 +00:00
Alessandro Portale
7f8576d49f McuSupport: Improve kit creation UX
Create a kit only for the currently selected target.
Kits are listed as auto-detected. Extisting, auto-detected kits with
same name get replaced with new ones.

Less text in the UI.

Change-Id: I89f952cc6ff694dc5c2750ebf9a7698d7839ec3a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-13 22:09:21 +00:00
Aleksei German
5bb0298f69 QmlDesigner Add Binding Editor support to States
Change-Id: I3ccce5e2bfbbfa0dfba1e438d527fa18348005b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-13 10:24:54 +00:00
Alessandro Portale
1d1dde0f9b McuSupport: Avoid mix of dir separator styles for CMake parameter
Qt Creator's CMake plugin would otherwise (since recently) open that
"sync" dialog if a configuration path contains back slashes.

Change-Id: I2e333604e22158bdb61c2ca8eb65911295383b52
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 18:27:54 +00:00
Alessandro Portale
9641de2007 McuSupport: Distinguish "Evaluation" and "Engineering" roles
"Evaluation" and "Engineering" kits need to be set up differently.

Change-Id: I649fed9cbdff248c5cbc69e65a095ced1f25326e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 18:14:46 +00:00
Alessandro Portale
ce83b2a93c McuSupport: Unify, simplify and improve kit name creation
Change-Id: I27ffa3d89226eedc8396c37249e124f846a630d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 17:51:05 +00:00
Thomas Hartmann
89732c361e QmlDesigner: Fix assert
We allow Window, Popup, Dialog etc. for root nodes.

Change-Id: I776c88ab8d276d48f275d842349796c8445259ad
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-12 17:06:51 +00:00
Thomas Hartmann
577c01ce00 QmlDesigner: Split property notifier
Change-Id: Ib8da8171ff740492ebfd81bd496a2eb7d9061926
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-12 14:30:46 +00:00
Tim Jenssen
0be200e44e improve code
Change-Id: I06c7274c39f7e369d4cd9bed0c1ef77e4bc08b35
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-12 12:22:15 +00:00
Thomas Hartmann
725432be04 QmlDesigner: Always show timeline settings panel mapping table
An empty table is confusing. Once a state is added we
enforce an id for the root node.

Task-number: QDS-1218
Change-Id: Ifc2c0317dfbed2c8d8b9dd540079e6879fe4f2a9
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2019-11-12 10:38:01 +00:00
Mahmoud Badri
5df7ad94ec Implement DnD 3D objects from the item library to the EditView3D
Proof of concept drag and drop implementation. Basic functionality
working but needs polish.

Task-number: QDS-1132
Change-Id: Ie3b9e80de9a414c4955d6e38daf338045bc1e614
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-12 10:00:34 +00:00
Andre Hartmann
1d357f6b33 TextEditor: Make TextEditorLinkLabel elideable
And use that in the Include and Type Hierarchy
panels to allow resizing the panels smaller.

Fixes: QTCREATORBUG-23197
Change-Id: Ia4b39e610c7a4be4df564dc69573f4748d7634a5
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-12 09:00:16 +00:00
Thomas Hartmann
22429728f1 QmlDesigner: Add 'float' support to curve editor
Change-Id: I7daf26a565b24c48b247021f0a21024524e479bc
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-11 15:07:33 +00:00
Christian Stenger
952f4d82e5 McuSupport: Add .gitignore handling to wizard
Change-Id: I8ae5570c3011b25b00ff432627d7b76daa0f361b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-11 11:48:09 +00:00
Thomas Hartmann
c6115771f9 QmlDesigner: Add createQmlVisualNode()
Change-Id: I7e1a739a58b740c2b5fc171e66ce7b6950bb1a26
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-11-11 10:35:47 +00:00
Christian Kandeler
d10ce822ca Run configurations: Let env widget reflect changes to lib search path
This broke in some refactoring.

Fixes: QTCREATORBUG-23165
Change-Id: Icb98234d83c6cb45a68562b88ee11fc9453bf6b3
Reviewed-by: hjk <hjk@qt.io>
2019-11-11 09:52:08 +00:00
Miikka Heikkinen
db7087225d QmlDesigner: Implement camera frustum visualization for edit 3D
Task-number: QDS-1208
Change-Id: I3241fcdc68d01666a2536df32f170cd898cbd7af
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-11 08:44:16 +00:00
Eike Ziller
f4d6609d91 Help/litehtml: Correcly escape search expression
Searching for anything with e.g. '(' in it would fail.

Change-Id: Ifdba978855a425f50b2fc80d01841a7d4c33dd11
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-11 07:34:45 +00:00
Thomas Hartmann
bfafbfc232 QmlDesigner: Add convenience functions
Those helpers make it easy to filter by types.

Change-Id: I36cedba043a1c89c68b98ef03a309ec0d8e67475
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-11-08 15:36:47 +00:00
Thomas Hartmann
9af46e5114 QmlDesigner: Allow setting 3D position in QmlVisualNode
We use the implicit constructor of QmlVisualNode::Position
to overload the position parameter.

As a result createQmlObjectNode() can be called with QPoint or
QVector3D.

Change-Id: I15b57810c0604c22172fa3a9ea7040e6977eaa00
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-08 15:36:11 +00:00
Henning Gruendl
53b95862ad QmlDesigner: Fix coding style
Change-Id: I597f906627ac690cb1e066c394f11ecaeced90d9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-08 14:43:15 +00:00