Commit Graph

74059 Commits

Author SHA1 Message Date
hjk
2eca1c0ffc Docker: Add history to "Search in Selected Directories"
Also set focus to the line edit when this item gets selected,
and remove the arbitrary /usr/bin;/opt default.

Slightly better UX.

Change-Id: Icdc4e81d6cebd7aed1dd4999c4007a60c8ea53a2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-14 12:05:27 +00:00
Leena Miettinen
71d858f2d2 Doc: Fix changed string
Change-Id: If429e6721bc5086d354579dbcd8638aed7dc2c50
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-14 10:17:35 +00:00
Jarek Kobus
67497e6bc4 Compile fix
Amends cfe8b7ad88

Change-Id: I4a570c481cf631ee6650a5c9d3b0f0540df88671
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-14 09:41:42 +00:00
Jarek Kobus
cfe8b7ad88 Fix handling of unfinished lines by QtcProcess callbacks
Don't detect a call to QtcProcess::kill() from inside the
QtcProcess callback while awaiting inside QtcProcess::waitFor...().
That's not needed, since a call to kill() sends a stop message
to the process launcher, so we wait for confirmation
from process launcher instead. This may bring e.g. new
read data from the running process.

Fix a runBlockingStdOut() test so that when we write to the stdOut
from the running process we flush the unfinished line so that
it's not buffered inside the process.

Change-Id: I7944ac214d8cb9e10a71715a7ef8bfacab6df7c9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-14 07:38:08 +00:00
David Schulz
8e16d45d4c ClangCodeModel: prevent crash on null project info
Change-Id: Iff0c0413aa52821dc883b7f42b04bc8ca5dd4a29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-14 06:06:39 +00:00
hjk
1de60ddeaf CMake: Don't be too eager to throw out SDK-registered cmakes
Change-Id: I6a35e7599b61068deaf34aeb86ba53bc4120c47c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-03-11 16:00:58 +00:00
Tim Jenssen
6973ee14c4 qds: use double click to create a new project
Change-Id: I77c1d8ed483d5971135469231657d5580617242d
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-11 14:29:46 +00:00
Christiaan Janssen
e293aab725 McuSupport: remove cmake mapper
Starting with Qt For MCUs 2.0, environment variables are not
used to track dependencies any more, but cmake variables are.
Due to time constraints, we implemented a env-to-cmake mapper
to cover that gap at the moment. This patch removes that hack
and implements tracking dependencies through cmake variables.

Task-number: QTCREATORBUG-26904
Change-Id: Id8553a764d212d9b12e4adc54fc56233bfeb9a5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-11 14:24:34 +00:00
Miikka Heikkinen
8b27281354 QmlDesigner: Show error message on import log for failed 3D import
The import is done on puppet side, so we use a log file to pass the
error message.

Also changed how import process is matched to the import, so that
exit code is no longer needed for this purpose. Crashes are also
now reported as import errors.

Task-number: QDS-6402
Change-Id: Ie14cd1df0bbba965d8e5f2aa7302a955e944379b
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-11 14:18:04 +00:00
Robert Löhning
38cdbd2bcd ManhattanStyle: Avoid crash when zooming invalid image
Task-number: QTBUG-101581
Change-Id: I4070efe266fbbd579b021cd9c03465c85313e042
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-11 11:48:02 +00:00
Eike Ziller
860d8548ec Bump version to 7.0.0
Change-Id: Ie403b97a027b15ddfbafa3ffbf46b8883951bb78
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 11:01:23 +00:00
Oswald Buddenhagen
1fcadf2cd2 fix wording regarding toolchains
Change-Id: I09c2d94af6791fab255d1a72a8484e78d6a239d2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 10:15:35 +00:00
Thomas Hartmann
bec41a7a55 QmlDesigner: Remove dependency of ModelNode on AbstractView
* Moved AbstractView::hasId() and AbstractView::generateNewId
  to Model. I kept a convenience function AbstractView::hasId(),
  so we do not have to change too much code.
* hasId() and generateNewId() do not mutate the model and therefore
  belong to the model.
* This also allows to remove the dependency on AbstractView in ModelNode
* Adjusting the usage of generateNewId() throughout the code base.

Change-Id: I0b8bab995c48fd52760b509cbe53f0854230b4c8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-03-11 09:45:43 +00:00
Oswald Buddenhagen
413c73b781 fix build without QmlPrivate
Change-Id: Ibc333a07137b7afb39676d4d3bc89d0c4dadb11d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-11 09:15:10 +00:00
Eike Ziller
cd8c4ced81 Merge remote-tracking branch 'origin/7.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri

Change-Id: Ic02df53b880d0861d9d9ea0df3e0d381ae99f350
2022-03-11 09:50:48 +01:00
Eike Ziller
2829412e15 macOS: Fix 'disclaim' in packages not passing on DYLD_... variables
Signed executables with hardened runtime need the entitlement
com.apple.security.cs.allow-dyld-environment-variables
to be able to pass on the DYLD_... variables to subprocesses.

Fixes: QTCREATORBUG-27175
Change-Id: Ibc203487be4d7111fc60b05749cae4e3ad750b3d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-03-11 08:43:59 +00:00
Alessandro Portale
a863958aa4 Utils: Silence MSVC deprecation warnings in tst_qtcprocess
warning: C4996: 'setmode': The POSIX name for this item is deprecated.
Instead, use the ISO C and C++ conformant name: _setmode. See online
help for details.

...same for 'fileno'

Change-Id: I85090b65532b17b535914b88de835d718f654f6a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-03-11 08:04:35 +00:00
Thomas Hartmann
18e57ba886 QmlDesigner: Count QDS startup and shutdown using telemetry
This allows tracking the number of supposed crashes.

Change-Id: I87e1c084238c5b3d556e22d25bddf8e58cdfb838
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-03-10 19:07:27 +00:00
Thomas Hartmann
22f65bfa07 QmlDesigner: Always enable timeline
Change-Id: I76aac4a0564c890a86416aef8fe20e87c269d372
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-03-10 19:06:50 +00:00
Christian Stenger
2a72daa0ef Add disclaim tool to qbs build
Change-Id: I998b7fd9f017b9b33b422c8149048437ebb3a5a2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 16:04:31 +00:00
Thomas Hartmann
84f86c677f QmlDesigner: Move initialization to delayedInitiliaze()
In extensionsInitialized not all views are registered.

Change-Id: I8b7da87af4fceb5aed63c15ad43b6b67b7ca97c0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 15:32:02 +00:00
Leena Miettinen
f8aed954bf Doc: Update screenshots and remove obsolete ones
Some screenshots are not linked from the docs anymore.

Task-number: QTCREATORBUG-26610
Change-Id: I76b31910bb8861debe53fdef877bfea32ae1069c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-03-10 14:34:43 +00:00
Miikka Heikkinen
eeddae0d2b QmlDesigner: Fix runtime JS warning
Particle emitter gizmos do not have locked property.

Change-Id: I4f11dbd52256b365402e647024d4d258351a3c60
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-03-10 13:44:58 +00:00
hjk
e1ebbbf480 Core: Drop unneeded include of porting.h
Change-Id: I7b2e8e31df668ce228562eb24d6ba06f14462953
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 12:59:59 +00:00
hjk
e5e740344d CMake: Be more graceful for device related bits
Also when reading settings. Check was there for writing already,
and possibly should not exist at all, other kit settings are not
purging at that stage.

Change-Id: Ia052efd5a791f4a86be3d26a61ebeb94d506b012
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-03-10 12:59:50 +00:00
hjk
51d00709a5 Utils: Drop [Qt::]SkipEmptyParts from porting.h
Not needed anymore after 7c942cfd18.

Change-Id: I5e6021cb64a399fa3bc3067b2fcd60ab48587daa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 12:59:39 +00:00
hjk
95510a842e CMake: Drop two use of HostOsInfo::isXXXHost
More friendly to docker.

Change-Id: I3eeb859cc880fa24c2b1c74caf5a06ec4f27cb2f
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-03-10 12:18:43 +00:00
Christian Stenger
17acd5b225 McuSupport: Fix build with Qt5.15
Amends a49c029056.

Change-Id: Id54c92e8f3515887b8c10d923674a6f932df2898
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 12:01:53 +00:00
Christian Stenger
9ec7e2bbb0 PE: Raise minimum level of logging category
Change-Id: I3dbdfeb35a616498cec1377b702131e0e80cec67
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-10 11:43:40 +00:00
David Schulz
b8caa4f26b Remove UWP support
The UWP support in Qt was removed with Qt 6 and the support in Qt
Creator is basically untested.

Change-Id: I3148efdb596ddd326f590c14c22cc77ded2582a7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 11:29:02 +00:00
Jarek Kobus
b2331dd5f6 Fix paths to subprocesses when test is run from other directory
Now it's possible to run the test outside of directory
where the test is located.

Change-Id: I2a2c693d382917ac7b84488c8ccf161538b58238
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 10:27:29 +00:00
Thomas Hartmann
234cdd1255 QmlDesigner: Fix design themes for alternating rows
We use the same color for base and alternativeBase, which has the
same effect as setting setAlternatingRowColors to false.

Task-number: QDS-6245
Change-Id: I1308b70790227327808d042f5b2626dd92db19ef
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 10:20:48 +00:00
Samuel Ghinet
ccc5cd04d3 New Project dialog fix: "Orientation" button doesn't work for equal sizes
If the width equaled the height, for the project, then the orientation
button didn't change visual state, when clicked.

Also, renamed some fields in qml from "project" to "preset", because
they actually refer to the preset, not to the project to be created.

Task-number: QDS-5925
Change-Id: Ia776b24e0bf29a4bdf0e2f9f6ff26e5c0137ba4f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 09:55:42 +00:00
Christiaan Janssen
75dd1c2251 McuSupport: fix issue with resolving relative paths
FilePath::resolvePath accepts a FilePath param, but treats
leading hashes as indication of an absolute path.
FilePath::pathAppended only accepts QString,
but understands that the param is always a relative path.
In our case we always want to treat the paths as relative.

Change-Id: Ib23c27e76500de8a89d9dd22cd7efb95a9bd4d6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 09:23:55 +00:00
Piotr Mućko
a49c029056 McuSupport: settings unit tests
Change-Id: I0fe1b8f9523f952e14a23c7ffa9ef7d3b6ff6ddf
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 08:44:20 +00:00
Piotr Mućko
9697e3407f McuSupport: extract target factory
Change-Id: I1ba16ecdc15bdad970b522bea8787b316e19ae58
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 08:43:59 +00:00
Miikka Heikkinen
be9b71af2f QmlDesigner: Fix runtime puppet compilation error
Change-Id: I6c3b1ce317305b6cbc088971beaa1700b5327682
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-10 08:43:01 +00:00
Jarek Kobus
e66bd6ed90 Simplify starting subCreator process even more
Use SUB_CREATOR_PROCESS macro for registering subprocess'
main() function.

Invoke registered subprocesses by a call to
invokeSubProcessIfRequired().

Substitute subTestCase env variables with TestCase subclasses.
This should make the code even more readable.

Amends bbb0270fb1

Change-Id: Id63b15841ea539f367dab4972a6ecbb298d277e7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-03-10 08:42:56 +00:00
Miikka Heikkinen
ccca8ccd1b QmlDesigner: Fix crumblebar recursion
If a file that already exist in crumblebar is pushed into crumblebar,
pop the bar until the first instance of the specified file is on
the top of the bar and skip the push.

Fixes: QDS-6307
Change-Id: I75f7d575db3fc6bb5b629ea1e6b61ea2905726b4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
2022-03-10 08:42:52 +00:00
Miikka Heikkinen
23487939bf QmlDesigner: Blacklist sprite and spriteSequence as valid ids
QDS can't handle binding a node with same id as the property name,
so "sprite" and "spriteSequence" are no longer considered a valid ids,
as they are property names in SpriteParticle3D.

Fixes: QDS-6178
Change-Id: I21d3af4787015f7a35e1388b381508cf0850589d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-03-10 08:42:16 +00:00
Jarek Kobus
82108e949a ProcessInterface: Rename interruptProcess() -> interrupt()
Both functionalities meant to do the same.

Change-Id: Idd9373cdb24b7b41f9e4befb09326c339263eeb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-03-10 08:41:05 +00:00
Eike Ziller
e8e4aada53 Bump version to 7.0-rc1
Change-Id: Ib643e8a7594fe12d0dab80963258cf7fc3b78d3c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v7.0.0-rc1
2022-03-10 07:54:45 +00:00
Christian Stenger
ced2b9c4c0 Tests: Fix build
Amends a7f867ab06.

Change-Id: I5854228fce2d4537305535c332a1a39b21619f62
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-10 07:38:30 +00:00
Christian Stenger
1e8b81da96 SdkTool: Fix build with Qt5.15
Avoid ambiguity of operator=.

Change-Id: Ifb67693919e02ab468e780198240af65df774ca6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-03-10 06:17:01 +00:00
Rafael Roquetto
b2920fb76a QNX: Fix debugger detection
The QNX gdb binary requires the QNX_TARGET env variable to be set even
for codepaths that do not make use of it, namely, when invoking gdb with
the --version or --configuration parameters to detect the ABI. Failure
to set this variable causes gdb to fail with "QNX environment not set!"
instead.

This patch works around that by setting a phony QNX_TARGET variable in
these occasions.

Change-Id: I9f2638c422eb56516b87dde049186579d238de5c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
(cherry picked from commit 88aec12075)
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-09 22:38:34 +00:00
Robert Löhning
7c942cfd18 Remove outdated code
Change-Id: I65e0ed79dabd987bc67d4082969835d52dd7cb8b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-03-09 18:53:36 +00:00
Leena Miettinen
34ecdc3008 UI text: Replace "pane" with "view" for "Output panes"
Some occurrences of [Output] pane were still found in
translatable strings.

Change-Id: I70c0b6562790b7eb835b2f6a1522fa34fb9c2b51
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-03-09 15:31:05 +00:00
Leena Miettinen
09804a65e4 Doc: Do not use the term "Output pane" in docs
When necessary, replace it with "view". When possible,
rephrase to omit the term. Link to descriptions of the
output views.

Update screenshots.

Change-Id: I80ccd12f5a10f221bbea6de994a15ddd07d20842
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-09 15:30:36 +00:00
Leena Miettinen
c667450fe2 Doc: Show screenshots of Editor settings in more places
The screenshots are already in the repository, so show them where
the options and settings are described.

Task-number: QTCREATORBUG-26610
Change-Id: I6d1d89f6b7a13cd9afbb839ba9c8f6f55daa50c0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-03-09 15:26:01 +00:00
Leena Miettinen
a00597533f Doc: Describe "Additional startup commands" in Run Settings
Update screenshots.

Task-number: QTCREATORBUG-26610
Change-Id: I9397edd4f050bf82da0cf2b49c8861bad4f00bab
Reviewed-by: hjk <hjk@qt.io>
2022-03-09 15:23:13 +00:00