Commit Graph

61895 Commits

Author SHA1 Message Date
Christian Kandeler
18ecbb9b14 ProjectExplorer: Speed up FolderNode::addNestedNodes()
... by aggregating the look-up of parent folder nodes.
Also make use of this function in the GenericProjectManager.
As a test case, I added my whole ~/dev directory with ca 600,000 source
files to a generic project. With this patch, the time spent on adding
the new nodes to the tree went down from 15 seconds to two seconds.

Task-number: QTCREATORBUG-20652
Change-Id: If006bce55924feacc071c38ec7a0292d29c51be1
Reviewed-by: hjk <hjk@qt.io>
2019-11-14 12:33:10 +00:00
Alessandro Portale
b1ea9bad7f qml2puppet: Fix dependency in CMakeLists.txt
"Qt5::Quick3" -> "Qt5::Quick3"

Change-Id: I8961cc319816c8a1912d577d577c12e5bd51bd9a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-14 12:06:52 +00:00
Tobias Hunger
6e518e6b17 Qnx: Do not read CPU dir from mkspec
Generate it based on the detected ABI instead.

Change-Id: I979d02a8d97bd54575095eaa5100d3572d0ced2c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-11-14 12:02:41 +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
Christian Kandeler
ecf0105287 GenericProjectManager: Speed up adding lots of files
This operation was slowed down by a function that inserted a new element
into a sorted list without making use of the fact that the list is
already sorted.
As a test case, I added my whole ~/dev directory with ca 600,000 source
files to a generic project. With this patch, the time spent on building
up the new list went down from 90 minutes to one second.

Task-number: QTCREATORBUG-20652
Change-Id: If537e58a73cc5f09bb45d47f0beb2925048a2b14
Reviewed-by: hjk <hjk@qt.io>
2019-11-14 09:54:52 +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
Christian Stenger
48247182ae BareMetal: Fix compile for gcc 5.3
Amends ad754d93ca.

Change-Id: I302ac0796c4148d39d618dbeb2f4dd450601c63c
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-14 06:36:10 +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
Jochen Becher
fc6f9e07cb ModelEditor: Minor refactoring of ComponentViewController
Change-Id: I6c54c694e77b377b9c0d0d2a4abe41d6976ede09
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-11-13 20:49:13 +00:00
Tobias Hunger
b0fb6537f9 CMake: Do not require Qt LinguistTools
They are only used optionally for the translations, so there is
no need to require those.

Change-Id: I9f84e0d62f7075394e9f260c11746e4327e60995
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-13 16:08:41 +00:00
Dmitry Kovalev
ad754d93ca BareMetal: Add JLink support
Change-Id: Ic780a2905b934adf1f8276396012cdfbf2fbc560
Reviewed-by: hjk <hjk@qt.io>
2019-11-13 15:13:00 +00:00
Christian Stenger
333b8f9812 AutoTest: Allow colored commandline output
Some test frameworks allow to print their output colorful
to further indicate meanings of messages or test results.
Provide a highlighter for the textual output of the results
and enable this functionality for GTest and Boost UTF.
Keep at least a small backdoor for overwriting this by
the user.

Fixes: QTCREATORBUG-22297
Change-Id: Iddd2b734416de807635d90c6519553081f7372f2
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-13 13:09:00 +00:00
Christian Stenger
e58f376068 AutoTest: Tweak output handling
..to be able to distinguish between the output
channels. Some test frameworks use the stderr
stream for printing relevant output.
This is a preparation for coloring the output
correctly later on.

Change-Id: I3bfea9e552bde3621df99611a124b4f2d3b7d1da
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-13 13:07:35 +00:00
Christian Stenger
2c7e769e31 AutoTest: Clear up and generalize
Instead of transforming forth and back the output
try to handle the output once correctly and pass it
line-wise around.
This also ensures that we always get a single line
when appending the output which will be necessary
later on.

Change-Id: I3e9c6db5f81172997dfe566eee9a86bfe2f17a1f
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-11-13 13:07:25 +00:00
Henning Gruendl
a48497d663 QmlDesigner: Fix filename spelling in qrc
Change-Id: I90fb27156d51ad5160b57ea476017a17dc757043
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-11-13 10:50:49 +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
Henning Gruendl
d9981135c1 QmlDesigner: PropertyEditor TextSection cleanup
Change-Id: I042f38303aad016d939a39c7a638d330fca2ba58
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-13 10:14:42 +00:00
Mahmoud Badri
8722836b44 Implement EditView3D's toolbar
Move and scale shortcuts are temporarily set to (M) and (T) instead of
(W) and (R) to avoid interference with the WASD RF controller

Task-number: QDS-1201
Change-Id: Ia7ebb6c0d39880be6b87b12d0a4a1d16638fd141
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-13 10:12:33 +00:00
Thiago Macieira
5390607019 Add QDataStream operators for ValueModifiedCommand
Qt 6 does not accept implicit downcasts.

Change-Id: Iad959315ad374ef288f5fffd15d68b67304880cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-11-13 10:05:59 +00:00
Eike Ziller
75a8d0510d Fix BaseQtVersion::hasExamples et al
Set data before checking it for validity.

Broke with c765831d01

Change-Id: I232979c8bc8a1f91d7774ae70f4207288b5114db
Reviewed-by: hjk <hjk@qt.io>
2019-11-13 09:09:15 +00:00
Christian Stenger
bcde926257 Debugger: Stop cleanly after post mortem debugging
..instead of trying to start over. Starting over may work
but may also end up in strange issues which must get
handled on the user site otherwise.
Especially relevant for pyside projects that are using
QApplication and similar where the old application
instance has to be destroyed before another one can be
created.

Change-Id: I6af132da8499ef4ed983491cdc423fa73ea9ba32
Reviewed-by: hjk <hjk@qt.io>
2019-11-13 05:42:19 +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
Lucie Gérard
a6ad0cfff7 Correct generation of header file for translation
Change-Id: I5571b14dfb438c5caaa211308b9255c61959e5de
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-11-12 14:17:25 +00:00
Eike Ziller
990f52957d Fix mapReduce with QVector input
The iterator type of QVector is just (const) T *, so we cannot call
::reference on it directly. Access via std::iterator_traits instead.

This is especially interesting in the light of Qt 6 replacing QList with
QVector.

Change-Id: Ib4e84f61302822e51b8984e2a44fea874efce81d
Reviewed-by: hjk <hjk@qt.io>
2019-11-12 13:48:24 +00:00
Christian Stenger
49930aa5f9 Debugger: Improve pdb debugging
When a script used __file__ to refer to other
files by constructing relative paths it ended
up trying to use a file relative to the pdbbridge
instead the original python file.
Fix this by bringing the bridge closer to the
original pdb code.

Change-Id: I22dda440c78349bfd3dcf4ce748042cc77eb4bee
Reviewed-by: hjk <hjk@qt.io>
2019-11-12 12:36:45 +00:00
Christian Stenger
2f42e11ac6 Fix compile before current Qt dev
Amends 0120e462b2.

Change-Id: If9f443c03009bf8728497f10c8fb81f37fa1a63d
Reviewed-by: hjk <hjk@qt.io>
2019-11-12 12:36:08 +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
Christian Stenger
8866153c2a Squish: Fix test for welcome page
Amends cf3772ca77.

Change-Id: I3b98f4493db130f062982a5a8b39e334d5b6b49f
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-11-12 11:22:40 +00:00
Christian Stenger
cfd419cc0c Squish: Adapt to changed ui
Change-Id: Icf371af4de7aadbcab5cdf53a8095b26a7150aba
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-11-12 11:22:31 +00:00
hjk
0120e462b2 Partial compile fix for current Qt dev and/or Qt 6
This does not cover Utils::MapReduceOption with QVector, and code
that's not compiled on my machine.

Change-Id: Ib63923985c52b1bb74e5ec2068a2bb37469ac618
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-11-12 10:50:51 +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
Eike Ziller
817f81cbfd macOS: Force shell to a supported shell in Terminals opened from Qt Creator
The whole logic (setting up environment, run interactive or non-interactive shell)
is specific to the shell. So force Terminal to use one of the supported ones.
Currently that is zsh and bash.

Fixes: QTCREATORBUG-21712
Change-Id: I83057dd92c5c976f9f5d6f4faf0f596a75d58293
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-11-12 10:29:31 +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
Denis Shienkov
3da2ba530e BareMetal: Auto-detect IAR toolchain for Renesas RL78 architecture
This patch implements auto-detection for the RL78 toolchain,
provuded by IAR Systems:

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

Change-Id: Iaadaa06bf6b229d2704c9903a1e77674a5391bd7
Reviewed-by: hjk <hjk@qt.io>
2019-11-11 15:11:31 +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
The Qt Project
7c0ae9d478 Merge "Merge remote-tracking branch 'origin/4.11'" 2019-11-11 13:04:04 +00:00
Denis Shienkov
6e6cd04eb6 BareMetal: Add additional 'engine' column to debugger providers view
Now for each debugger provider is displayed its debugger engine name
and a tooltip with a brief description. It is the helper feature, that
will be useful in future for users at choosing of a debug provider
compatible with a configured debugger.

Change-Id: I7721479d0d52cf3d34479a5f5f58a2369d0d9e8c
Reviewed-by: hjk <hjk@qt.io>
2019-11-11 12:41:32 +00:00
Denis Shienkov
0f429d5ed7 ProjectExplorer: Auto-detect GNU toolchain for RL78 architecture on Windows
This patch implements auto-detection for the GCC Renesas RL78 toolchain:

* https://gcc-renesas.com/rl78/rl78-download-toolchains/

... which is delivered as an installer package.

Change-Id: Ibbeb28c7a307227b1bb55e37602835dfc01ec48f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-11-11 12:38:46 +00:00
Eike Ziller
646c7860cb Merge remote-tracking branch 'origin/4.11'
Conflicts:
	src/plugins/genericprojectmanager/genericprojectplugin.cpp
	src/plugins/projectexplorer/environmentaspect.cpp
	src/plugins/projectexplorer/environmentaspect.h
	src/plugins/projectexplorer/environmentaspectwidget.cpp

Change-Id: Id21d62cf14419febd1e06c9b429fcdf4501c0eaf
2019-11-11 12:58:11 +01: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
Filippo Cucchetto
a504472790 Nim: Add support for goto field under cursor
Change-Id: Ic0cce41d2c3d8dc9bcc9ccd07c3943fd0b2659f9
Reviewed-by: hjk <hjk@qt.io>
2019-11-11 11:15:57 +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