Set UseFullPath only for BP from the opened projects.
Fixes: QTCREATORBUG-3750
Change-Id: I343c68ca341f9bfb57e352b9b28df333eb1c16c3
Reviewed-by: David Schulz <david.schulz@qt.io>
Do not select qmlls executables from versions below 6.8 by default,
as those have less features than QtC's builtin codemodel. Add an
option to re-enable using qmlls versions from Qt 6.7 or below,
which is off by default.
Fixes: QTCREATORBUG-31088
Change-Id: I56bfd39bc980996a92232cbcb424252d755cdfc0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Provide some feedback regarding creation of subprojects outside
of their parent projects to give the user a last chance to
correct the choices done so far.
Change-Id: I4e02dfca7332ea53b61485673e07248e10e2113e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Otherwise our (intential) delay when updating the environment from the
text edit can lead to surprises for the user.
Fixes: QTCREATORBUG-31052
Change-Id: Iaba8c496094ad95d8c099c67c0805317f32a2936
Reviewed-by: hjk <hjk@qt.io>
On Windows where there are no RPATHs we need to pass the environment to
the "launch" event, otherwise applications can't be started.
Also only add "sourceMap" and "preRunCommands" if the arrays are not
empty.
Change-Id: If631d36db8e28d2c30962b4e9c6a3aa3162000a1
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This initial reparenting to root doesn't seem to have a purpose as any
valid instance will be reparented to its actual parent later anyway.
Since it does break composed effects parent handling, it was removed.
Fixes: QDS-12022
Change-Id: I08993424b5c3ece739809375c11d0a2cd0e3498c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Also a small rename (remove '3D' as it can work for 2D in the future)
Change-Id: I72332f8b46fae6bf8e8e70fc21329ec1e80df047
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
CMake supports the use of custom startup programs that are provided
in the IDE to simplify execution.
If the build system provides launchers, these are provided as an
additional selection field of the run configuration including an
entry without launcher.
As of cmake version 3.29, the start programs are extracted from
the API of the cmake file. For older cmake versions, a launcher
is initialized from the cmake variable CMAKE_CROSSCOMPILING_EMULATOR,
if available.
Fixes: QTCREATORBUG-29880
Change-Id: I4345b56c9ca5befb5876a361e7da4675590399ca
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Activating a bookmark via a double click resulted in both signals
getting emitted doubleClicked as well as activated, and both were
connected to BookmarkView::gotoBookmark. So the goto code was executed
twice resulting in adding the position to the navigation history twice.
Fix this by only connecting to activated since this is always emitted
alongside the doubleClicked signal as well as when the item is activated
by keyboard.
Fixes: QTCREATORBUG-30842
Change-Id: I48ea50afa105f81a2be8ac94096dd29164fce5fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
"the executable" versus "the file is executable"
Fix translations where both variants were available (i.e. that used the
adjective for the translation in Core, but the noun elsewhere).
Fixes: QTCREATORBUG-31059
Change-Id: Id140612f201cea1feca007557bbedf030cfdf504
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Also remove methods not used anymore and make addLibMaterial() as close
as possible to addLib3DItem() in preparation to unifying them.
Change-Id: I4b0bbf3667c8203fd71a5440aee02d62a67673ca
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Made list a bit wider so that there will be no horizontal scroll on the
list. Also shortened the size info label text a bit so it won't cut off
as easily on systems with larger default font.
Fixes: QDS-13015
Change-Id: I39c175be42e743b0700079ddd5543a9c54bb975b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
On Windows if the application being debugged has missing dlls it will
not be able to be started by the debugger.
Now the user will be informed that the application failed to start.
Change-Id: I0a76a8c6cd122970b00adec371b254adc60915c0
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
The way we resolve implicit imports creates random issues.
QtQuick3D.MaterialEditor implicitly imports QtQuick3D.
If QtQuick3D.MaterialEditor is scanned before QtQuick3D the types
of QtQuick3D are added to QtQuick3D.MaterialEditor and when later
QtQuick3D is scanned no type is added to QtQuick3D because of the cache
in ::createObjectsForImport.
The result is that QtQuick3D does not contain its types and prototypes
cannot be resolved. This does happen roughly 50% of the time and
is the reported issue.
In case QtQuick3D is scanned, first things work, but no "extra types" types are added to QtQuick3D.MaterialEditor.
To keep the patch minimal we simply skip this specific case.
QtQuick importing QtQml implicitly is not touched.
Task-number: QDS-11069
Change-Id: I74088b12a2e737a8a7467068c10a78c4be2a7bda
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Add AppStream data and desktop file for Design Studio.
Change-Id: Icc5cca03a3c0945a2f90b39fdd4c7dcecd0e8d6b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Copy the added item's QML file to a temp directory and generate from
there. Also, fix that generated icons not appearing immediately by
separating the model refresh from the addItem(), ensuring the
refresh occurs after the icon is generated.
Change-Id: Ic4f32677b3c2f3895b7825aef7727ac6dd6240b2
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
On macOS, files in Contents/PlugIns/ need to be codesigned individually.
Since Lua plugins are not really binaries, per Apple's documentation
that is to be avoided (and we currently only sign executables there).
Just move Lua plugins generally to the resources directory, like we do
for other scripts like the debugger Python scripts, and load them from
there.
Change-Id: Idabd6b7c0c7c6e842b1752488cb7073f00e7be49
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Not the intended final state, but more uniform.
Change-Id: I406d53032ff76631ddd542df8e3afa232d93a7fc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
The Lua state needs to stay alive as long as any references to it
may be alive. Therefore this patch leaves the destruction to the end.
Fixes: QTCREATORBUG-31087
Change-Id: Ic49723575f7d2fe474cba9546845b65d57d7dcd0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
from https://en.cppreference.com/w/cpp/compiler_support/20
ranges support:
The One Ranges Proposal: Clang 13 (partial) 15*
For snapshots we use still Clang 12 (will be changed in near future),
but also QtCreator still supports that old compilers.
The gitlab CI uses much newer compiler versions.
Maybe we also add a check, if the compiler is too old,
do not compile QmlDesigner plugin.
Change-Id: I4d3281739a957546237f47f53fe8f523f4768978
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
That's what the implementation does, and judging from the using code
wasn't quite clear.
Change-Id: I4ca776ba4da83a36162adad2dd595eb39eb0f43d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
If the user tries to add a sub project the decision for the
parent project must happen directly on the intro page
to avoid asking for build system or kit information later on.
Any of these information are provided by the parent project
and can therefore be skipped in case of having a sub project.
So, move this decision to the first page and on the last page
only let the user decide to which sub node of the chosen
project the new project will be added to.
The old approach set the IsSubproject marker quite too late
to handle this appropriate, so explicitly set this already
on the first page.
For now there should be only qmake based projects which are
capable of adding sub projects at all, but this patch should
be a generalized preparation for having similar functionality
in other build systems.
Fixes: QTCREATORBUG-30281
Change-Id: I8f1de4fa05f46d68ac2ddec788840d473adb015e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
It is possible to trigger the respective actions directly from
the project tree without having the respective project as
current active project.
Instead of always passing around the project which is currently
active use the one we get from the selected node if there is
any and fall back to the current active project if there is no
selected node.
Change-Id: Iccee63f1d75e88188b55f7307fcc46ba52e82a8a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This was needed to fix the handling of the project settings,
since 044c1f686c no more needed.
Change-Id: I960078b0ca39739ad566caeba46edf1a5050ebef
Reviewed-by: hjk <hjk@qt.io>
1. Make internal scanForFiles() static.
2. Make it a non-template method.
3. Pass const QFuture<void> & instead of non-const QPromise<Result>,
since we use it here just for isCanceled() checking.
4. Simplify setting a concurrent call data by eliminating the
intermediate lambda.
Amends c5564559cc
Change-Id: I4b7e3be6e8428c913920e66f2c00800055e83fde
Reviewed-by: David Schulz <david.schulz@qt.io>
This patch addresses the 38th point in the bugreport below.
Add tests for it.
Adapt docs and warning messages accordingly.
Task-number: QTCREATORBUG-28741
Change-Id: I276d2d4c3a514147f67252dc5073d79fed94b9ff
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>