Commit Graph

80147 Commits

Author SHA1 Message Date
Christian Stenger
8900004b84 Squish: Redo querying server
Start a new approach for handling the different runner(s)
from inside the SquishTools class.
Necessary for easier maintenance and enhancement.

Change-Id: Ifed64ad3c4487c06165f931dd213295ad1096b68
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 13:26:38 +00:00
Jarek Kobus
1ef673cb2e DiffEditorPlugin: Remove unused includes
Some includes are not needed anymore after recent refactorings.
Inline simple constructors.

Change-Id: I1a4b192b8e6014a6af9ce9f87015fa10ee0ea33f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-01-12 12:38:11 +00:00
hjk
f561740a0b Utils: Guard against endless loop in PathChooser
Adding a slash to the text in the path chooser for a custom build
directory currently triggers an endless recursion.

This here does not fix the actual problem but at least prevents
the crash.

Task-number: QTCREATORBUG-28682
Change-Id: Ic7d70ccfaccc1fd9437ca41e8b40b027718af6cb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-12 12:12:23 +00:00
hjk
3f528de7db ProjectExplorer: Fix compilation with Qt 6.6
appoutputpane.cpp:272:12: error: cannot convert ‘const QList<ProjectExplorer::Internal::AppOutputPane::RunControlTab>::iterator’ to ‘ProjectExplorer::Internal::AppOutputPane::RunControlTab*’ in return

Caused by "QList: deprecate iterator<->pointer implicit conversions"
0220484329029fc7598dfe11ba35ea10c3126477
b6cbd9c43afc7e005c1f78e1d0f700524930ed71

Change-Id: I596ead9deafca1154b5a79495e707137b61a14d5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
(cherry picked from commit 8ee6b14f00)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-12 11:06:25 +00:00
hjk
5d7aaf28cb CPlusPlus: Work around Qt SiC breakage
Qt Base b6cbd9c43afc7e005c1f78e1d0f700524930ed71 introduced

    #if !defined(QT_STRICT_QLIST_ITERATORS) && (QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)) && !defined(Q_OS_WIN)
    #define QT_STRICT_QLIST_ITERATORS
    #endif

removing iterator-to-pointer conversion starting with Qt 6.6 as dev,
i.e. now.

Change-Id: I75f25623917d0e666fb267db70d9701a13b270f2
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
(cherry picked from commit be89f99ecc)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-12 10:52:07 +00:00
Orgad Shaneh
dbfdcbad0c ClangTools: Fix incompatible class/struct forward-declarations
Amends 5dec97ea41.

Change-Id: I87209ee35fd4f13654a34be57f5bb1e69c1b12b0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-01-12 10:51:03 +00:00
Christian Stenger
184fac8a27 QmlDesigner: Fix build with Qt6.2
Amends b2163f672f.

Change-Id: Ic3eed8fd632aeadeef214df19a33896e9b524499
Reviewed-by: hjk <hjk@qt.io>
2023-01-12 10:19:36 +00:00
David Schulz
baa1e3c2e1 Editor: Allow to hide annotations for a group of text marks
The hiding is not persistent, so on the next Qt Creator start all
annotations are visible again. This is meant to quickly get rid of
annotations if there are to many irrelevant of a specific kind.

Change-Id: I4862e56e0f5624f30aadda26efc9dea672ab1f57
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-12 10:19:10 +00:00
Jarek Kobus
6415eef6af DiagnosticMark: Replace source field with ClangToolType
Replace also the AnalyzeOutputData::toolName field with
ClangToolType toolType. Stop relying on comparing translatable
strings inside DocumentClangToolRunner::onDone().

Change-Id: I1b69619fe9283622ed478973ee3a5e9cf8f4c309
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 10:12:52 +00:00
Jarek Kobus
e7781e2a99 ClangTools: Reuse TaskTree
Reuse it in ClangToolRunControl and DocumentClangToolRunner.
Get rid of ClangToolRunner and provide clangToolTask() method
instead.

Change-Id: I677940b325850849c5f5a60f2d320c031a4f0da0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 10:11:44 +00:00
Jarek Kobus
1dad90ea45 RemoteLinux: Don't call mutable expressions inside QTC_ASSERT
In order to conform to the theory: "Removing all
QTC_ASSERTs and QTC_CHECKs should not change anything".

Change-Id: I3f544f8cdcede99d7efa3ba0ef456180203c45be
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-01-12 09:37:27 +00:00
Jarek Kobus
a9c675d88d ClangToolRunWorker: Move logging of started tools into runner creator
Runner creator is being called just before it's about to be run.
Get rid of unneeded ClangToolRunner::fileToAnalyze() now.

Change-Id: I51e49597f38919a7174495df3db6b2adc5109a21
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 09:24:56 +00:00
Jarek Kobus
64b9728a68 ClangToolsUtils: Add isVFSOverlaySupported()
Remove ClangToolRunner::supportsVFSOverlay().
Move check for modified document and vfsOverlay into
runner creator method, as it's called in the same cycle just
before the runner is about to be started.

Change-Id: I7a5df71bfa73c350862e4c7f9eae49773b6206b7
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 09:24:50 +00:00
Jarek Kobus
5dec97ea41 ClangToolRunner: Add done(const AnalyzeOutputData &) signal
Introduce AnalyzerOutputData structure that is passed inside
new done() signal. This signal replaces the finishedWithSuccess()
and finishedWithFailure() signals. The output structure contains
all the data required in clients' handlers.

Move AnalyzeUnit into clangtoolrunner.h in order to avoid
circular dependencies.

Get rid of outputFilePath(), as it's passed inside AnalyzeOutputData
now.

Inline ClangToolRunWorker::unitsToAnalyze() as it's used only once.

Change-Id: Icf9a52853c68e83f6ddfc4858dbcb830b96e1844
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 09:24:43 +00:00
Jarek Kobus
c181631de9 ClangToolRunner: Ensure the clang tool is executable file
Just checking that it's not empty is not enough.

Change-Id: I635c975d72a8c00983aa1f748c169b2d8f6e05f1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-12 09:24:31 +00:00
Jarek Kobus
60b23dca75 ClangToolRunner: Remove unused executable()
Change-Id: I4e426db949ce64674c8e9e1954e621661002179a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-12 09:24:24 +00:00
Jarek Kobus
c350c87e9e ClangToolRunner: Get rid of ArgsCreator
Now we have all the data available so there is not need
to postpone the creation of arguments.

Change-Id: Iec10f5715d6f572c9a8fde63c8c6d3f96f894b47
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-12 09:24:18 +00:00
hjk
516f1f12b6 Utils: Show hidden directories in non-native file dialog by default
Selecting .ssh/*.pub is tricky otherwise.

Change-Id: Icd26ec7e4bb6fbb348d62fe6f4a629ea2e723706
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-01-12 09:14:40 +00:00
Miikka Heikkinen
91f5cadd5d QmlDesigner: Don't resolve position for non-node 3D items on creation
When dragging items from component view to 3D view, there are some
valid non-node items that can be dragged, such as SpriteParticle.
Skip resoving the target position for these items and just create
them at the root of the 3D scene.

Fixes: QDS-8653
Change-Id: Ice8c0d32169fa0421adc312b72c2692f245b9f5f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-01-12 08:47:37 +00:00
Eike Ziller
211d6507c3 Merge remote-tracking branch 'origin/qds/dev'
Conflicts:
	src/plugins/updateinfo/updateinfoplugin.cpp

Change-Id: Ie1bf2ad434f0224fb91caf91b443daae3d5b5ec0
2023-01-12 09:07:27 +01:00
Eike Ziller
1d2c8c213d German translation: Some individual items
That complete translations of various contexts

Change-Id: I0b2236efdb63f6ec9280ef5406410afd196a986a
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-12 07:57:06 +00:00
Marcus Tillmanns
69a79010d6 ADS: Remove usage of FilePath::toString
Change-Id: I88b9c4d9bc0614bed23df6f229e4ae49ccdc565f
Reviewed-by: hjk <hjk@qt.io>
2023-01-12 07:39:08 +00:00
Thiago Macieira
a61f8b02d3 Fix build with Qt 6's QList under QT_STRICT_QLIST_ITERATORS
modelnode.cpp:1395:91: error: no matching function for call to ‘Utils::span<const QmlDesigner::ModelNode>::span(QList<QmlDesigner::ModelNode>::const_iterator, QList<QmlDesigner::ModelNode>::const_iterator)’

Change-Id: Ide4dbd0777a44ed0870efffd173905d7eb32fa26
Reviewed-by: hjk <hjk@qt.io>
2023-01-12 07:33:37 +00:00
Marcus Tillmanns
a0d7b51cf5 Utils: Remove FilePath::toString from QtcProcess
Change-Id: I59df98547255bb5c282b190e0195323e0044214d
Reviewed-by: hjk <hjk@qt.io>
2023-01-12 07:14:42 +00:00
Alessandro Portale
f7bcd4f574 CppEditor: Convert to Tr::tr
Change-Id: Ic4025e06e17c45eb6dc2162fb7f21f5b8aebe84d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-12 06:46:45 +00:00
Ali Kianian
b2163f672f QmlDesigner: Add designer icons to the context menu
New Icon-Font is available in this patch.
Designer Icons are visible in the context menu.
Icon settings would be loaded from a json file.

Task-number: QDS-8502
Change-Id: Ia5fb570317507e6f50a79231d5b6831df079ed8b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-12 06:08:31 +00:00
hjk
85d067af91 CppEditor: Inline cppcodemodelinspectordialog.ui
The last one in the plugin.

Change-Id: I86d5ff6e0a3a6bb55342f780e85f6544ad50f90b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-11 17:19:46 +00:00
Jarek Kobus
1e10161bf2 CppProjectUpdater: Reuse TaskTree
Change-Id: I7474e5a31d169bf435d94536cffd77d218320977
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-11 16:32:12 +00:00
Łukasz Wojniłowicz
76260f8038 Debugger: Port away from deprecated getargspec
https://docs.python.org/3/whatsnew/3.11.html suggests using
getfullargspec instead.

Fixes: QTCREATORBUG-28505
Change-Id: I27199f7e2c3a070c675dce3a152d201e22a16380
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 15:38:46 +00:00
Łukasz Wojniłowicz
0648cd49f9 Debugger: Don't split top-level name into letters
If names = ['foo.bar'] then toExpand = ['foo.bar', 'foo'] instead of
toExpand = ['foo.bar', 'foo', 'fo', 'f']

Change-Id: Ia6e021b1f32d9f1e5a78209e9a269725e298409e
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 15:37:39 +00:00
Jarek Kobus
f93ad9091f ExtraCompiler: Get rid of setCompileIssues()
This basically reverts 8643877c33.
The setCompileIssues() introduced there wasn't used anywhere.
Since the "issues" field is always empty, the updateIssues()
is no-op.

Change-Id: I7e7e5fc9778343fbaafc717b80188a65ba7adc39
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-11 15:23:10 +00:00
Jarek Kobus
c99ce1f455 ExtraCompiler: Expose TaskItem for compile task
This is an intermediate state before employing one common TaskTree
inside CppProjectUpdater. Use multiple one-task TaskTrees for now.

Refactor ExtraCompiler so that there is only one pure virtual method
to be implemented (taskItem()) instead of two (2 run() overloads).
Use TaskTree inside ExtraCompiler for running the compilation process.

Change-Id: I6884934508e043594589d117f6d3f0aed94b84c2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-11 15:22:56 +00:00
Jarek Kobus
c794194027 Locator: Reuse TaskTree and TaskProgress
Change-Id: Icafef3463ec8956e5a4cfdf61d5a9b9ba9da09ec
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-11 14:57:36 +00:00
hjk
3171064ee2 McuSupport: use a dedicated class to create flash run worker
Change-Id: I26a403755f2ae57a43bbac2439359831a8d59431
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-11 14:46:18 +00:00
Christian Kandeler
22da0f2fd6 ProjectExplorer: Try harder to find a project for a source file
While project files should ideally list all their source files, this is in
practice not always the case. In particular, a lot of cmake projects do
not bother to list their headers. Therefore, we amend
SessionManager::projectForFile() such that it also considers unlisted
files in a project source directory (but not in a build directory, i.e.
projects with in-source builds are not considered).
A user-visible effect is that when renaming C/C++ symbols, occurrences in
unlisted headers are now pre-selected.

Change-Id: Id9f64f4836d2bb4dba80e111489f6c14ebb322ed
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-11 14:39:58 +00:00
Alessandro Portale
e78f0b5911 LayoutBuilder: Turn Splitter into a LayoutItem
Change-Id: I05bdadf7f79966e215b4999db9c2f96cd8f67f9f
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 14:05:46 +00:00
Christian Kandeler
11569852d4 CppEditor: Get rid of an unneeded use of std::tolower()
Task-number: QTCREATORBUG-28612
Change-Id: I48a912b202ef0f0687c39600a14653d75df28215
Reviewed-by: hjk <hjk@qt.io>
2023-01-11 13:32:55 +00:00
Eike Ziller
394caa1fee Allow combo box scroll wheel when pressing Ctrl
Wheel scrolling was disabled for combo boxes in Qt Creator 9, because it
created more issues than it solved. Instead of completely disabling it,
allow wheel scrolling when simultaneously holding Ctrl.

Fixes: QTCREATORBUG-28578
Change-Id: I08bccf039b60035bf425fac95b6af6fad349f43a
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-01-11 13:11:27 +00:00
Jarek Kobus
14a70e1514 Clang: Use multi-arg for strings
Change-Id: Ia0cd1abdb59cd35f1ff276811386a57bcfeefa5f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 11:43:55 +00:00
Jarek Kobus
398b5656b4 Utils: Use multi-arg for strings
Change-Id: I57d87b8f0435c7b304c484ad4d728b59780f212d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 11:03:23 +00:00
Henning Gruendl
65567b4717 QmlDesigner: Fix value types in property editor
Currently the value types of e.g. layer.textureSize and layer.sourceRect
are only resolved for QML Item, but not QML Control. This patch
increases the recursion depth while collecting the attributes of values
types in order to be able to set layer.textureSize.width or
layer.sourceRect.x.
It also adds those attributes to be able to read the values.

Change-Id: I61ba1468d1443953f0a5b6ab2241114dc441bb79
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-01-11 11:01:38 +00:00
Henning Gruendl
6fba34f5a7 QmlDesigner: Fix reflection in ColorEditor
Change-Id: I0d4cced42dd2b1d98f46c9870ca206e83b3aa4db
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:57:16 +00:00
Jarek Kobus
ed3d75b044 Fix missing include
Amends 887db6b419

Change-Id: Iaea15ce222f07306b48f2fde5e1526689a9d9aff
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 10:38:46 +00:00
David Schulz
fce9583fd3 Autotest: adjust actions tooltip case
Change-Id: Icc788866dc85cc780482d7a08df56b6d762ccad5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-01-11 10:18:42 +00:00
Jarek Kobus
711584bb3c Make AnalyzeUnit a member of AnalyzeInputData
Get rid of run() arguments.

Change-Id: I744da2a043136e579284eb2697b9b71f476b58a9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-01-11 10:16:04 +00:00
Henning Gruendl
4a897e0395 QmlDesigner: Enable sourceRect property
Enable sourceRect property to Item layer specifics

Change-Id: If2f47c2ad47a083d5c4a30c9154a7631616ea257
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:15:56 +00:00
Henning Gruendl
f7ef0c31e8 QmlDesigner: Add QRect to node meta value types
Change-Id: I205d30a362dce4df5834dfa99974e63b3b9bf608
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:15:09 +00:00
Henning Gruendl
9df7a6bdad QmlDesigner: Fix SpinBox dragging
Change-Id: I9d6ef0fa03e7d9a26dea9eb98602238d5dacd28c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-01-11 10:14:38 +00:00
Jarek Kobus
d4026287d4 DocumentClangToolRunner: Remove unused getDiagnosticConfig()
Change-Id: Ia5895692b806fa7009675f4a0077a97a56a31504
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-01-11 10:06:49 +00:00
hjk
b87f0519e3 CppEditor: Use FilePath for ProjectPath::m_sourceFiles
... and update using code.

Change-Id: I682727a4b2982dba388e7cc7b9488225748d591f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-01-11 09:54:25 +00:00