Commit Graph

89152 Commits

Author SHA1 Message Date
hjk
95cf4a46ff ProjectExplorer: Remove left over assert
Amends 07df45cdeb.

Change-Id: Ic4520020cd57eac72631efee05ca9b55e62e34e6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 09:42:22 +00:00
Eike Ziller
e9856ad138 Update change log
Change-Id: I055bfba24ea4610540dab930a30a998acba1b25e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-22 09:41:47 +00:00
hjk
00d26f4e8e Meson: Rename ToolKitAspectWidget -> MesonToolKitAspectImpl
Following the (changed) global naming scheme.

Change-Id: If98d644b52013af4f973540cd56d1186d3656e52
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-22 08:36:37 +00:00
Robert Löhning
ec735c3a2a SquishTests: Fix tst_rename_file for case ignoring file systems
On Linux, Creator only considers files with the exact extension ".qml"
QML files and places them under a "QML" node in the project tree. On
Mac and Windows, Creator also places files with extension ".QML" there.

Change-Id: Id81989e867fa946081ea7a350b208ddfe09e5460
Reviewed-by: Jukka Nokso <jukka.nokso@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 07:28:34 +00:00
Robert Löhning
0de1a6cdf7 SquishTests: Don't expect qmake in tst_default_settings
When qmake is not present in PATH or not usable, Creator does not add
a Qt version and does not write qtversion.xml. Expect this behavior
in the test.

Change-Id: I0890b9a22bdec47c0ac7206ba0a83d1e3ded2bb3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 07:10:15 +00:00
Marcus Tillmanns
231de93b26 Core: Add Open next/previous document actions
Fixes: QTCREATORBUG-1208
Change-Id: I27c84e2c4fb64751b0aa92042518e8351eed0034
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-22 06:51:33 +00:00
Jarek Kobus
de7f0e3a2a ModelIndexer: Dismantle the fake thread
Since no object was moved to the started IndexerThread thread,
all signals scheduled to this object were dispatched
in main thread. So, the thread was started, but no code
was ever executed in there.

Remove the IndexerThread class and do some cleanup by the way.

Change-Id: I9ae185b8e0c38557e5b0ba3dd87f3c70141227d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-22 06:32:53 +00:00
Jarek Kobus
dcaa3afd6d Various Plugins: Replace setPaused() with setSuspended()
Fix warnings about deprecated QFutureWatcherBase::setPaused().

Change-Id: I7c4637bcaf141bbda46e34da48306a25c68f039f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 06:09:07 +00:00
Marcus Tillmanns
2145023c8c Fix compile error
Change-Id: Ibd4593381df017c80129ac9d56a5031e46bd908f
Reviewed-by: hjk <hjk@qt.io>
2024-07-22 05:48:46 +00:00
Jarek Kobus
2a5c2765c4 ProjectExplorer: Introduce JsonWizardGeneratorTypedFactory
Limit code repetition by introducing convenient class template.

Change-Id: I90b45a305c5a6f28bf75a602c14ff055928cda48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-22 05:37:40 +00:00
Christian Stenger
0d2ae24580 Haskell: Add wizard files to qbs build
Change-Id: I5aa07fa430baa8b860e3ae540d8b0c1e1ce765c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-22 04:04:55 +00:00
Alessandro Portale
b534aac6ab ExtensionManager: Make links clickable
Change-Id: I9c98f9bf2e7e3baef42fa9d0d60012881418ef44
Reviewed-by: hjk <hjk@qt.io>
2024-07-20 10:38:15 +00:00
Robert Löhning
945f0462f8 SquishTests: Wait until exactly one proposal is being shown
...so we don't accidentally use a wrong one.

Change-Id: I4c08e11aab34b8649f40ba14385492b17e656385
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 15:23:58 +00:00
Christian Kandeler
9d0c144892 ProjectExplorer: Let toolchains be (de)registered in bulk
When some code adds or removes a bunch of toolchains at once, that
should be made explicit and also be reflected by the respective signal
emissions.
Fix some leaks and typos along the way.

Change-Id: I4a1f12a2378316c5faf70e85a88adc467f076caf
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:44:47 +00:00
Christian Kandeler
eb6c95b50d ProjectExplorer: Fix restoring toolchains
Amends ec5e055a90.

Fixes: QTCREATORBUG-31263
Change-Id: Ic86149d9916cdef6991fed4b9972f4d44dfe8b7c
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:43:48 +00:00
hjk
8830a38c7d ClangTools: Handle a Qt deprecation warning
Q_WEAK_OVERLOAD
    QT_DEPRECATED_VERSION_X_6_4("Use the 'qsizetype *suffixIndex' overload.")
    [[nodiscard]] static QVersionNumber fromString(QAnyStringView string, int *suffixIndex)

We are now well-prepared to handle Qt version strings with more than
two billion characters before the suffix.

Change-Id: I2aed2c3b8650ff6fba68a174b13d826dc9ab446e
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:42:23 +00:00
hjk
e9e793fb6a Autotools: Hide AutotoolsBuildSystem definition in .cpp
Change-Id: I7ef251452c522593da955a64024068682f7fdfb1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:41:57 +00:00
hjk
e7dcbb6b44 CompilationDatabaseProject: Simplify a bit
Change-Id: I83b6d2e77a4a5585af3c816aba1a7710d8d24ad6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:38:20 +00:00
Marcus Tillmanns
b0262115dd LuaLS: Add sendMessageForDocument
The original "sendMessage" function sends a message to each client.
To send a message to a specific Language client the sendMessageForDocument
and sendMessageForDocumentWithId functions are added.

As a fix the way that settings are copied into the Lua wrapper and the id used
to find clients was changed.

Change-Id: I577ee1f9da983c80e4ef00b8e86ccb2bfe369314
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 14:34:54 +00:00
hjk
68d00db242 Utils: Fix some Aspect::on*Changed names
Change-Id: Ic23cc6f5fe9cee6b7d54ea73fc2a35f6b3843269
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:19:29 +00:00
hjk
f2505ee90a CompilationDataBase: Hide build system definition in .cpp
Change-Id: I49fe7eae6bc323c4d618a463d701021591f4d15d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 14:08:51 +00:00
Eike Ziller
84cc7208de iOS: Improve error message when installation on Simulator fails
In case of error, post the output of the simctl command in compile
output and issues pane.

Fixes: QTCREATORBUG-25833
Change-Id: I62a0f7b10b5188a7c8b4e1db543b66d0661d4e6a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-19 14:05:12 +00:00
hjk
c895f67b6a Vcpkg: streamline vcpkgmanifesteditor.cpp a bit
Change-Id: Iabb1056f789b1e30f95d469ea18ccfb04e978b46
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 13:51:09 +00:00
Marcus Tillmanns
afa121778b Lua: Hide REPL by default
Change-Id: Ieeac4bd49cd39dc16cf9637b1a487faf024bf44a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 13:44:09 +00:00
Lukasz Papierkowski
f4d8eaca00 LUA: Client and Utils bindings update
Change-Id: Icad01906aa9f9405004ce342399fcb42354e77df
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
2024-07-19 13:33:29 +00:00
Christian Stenger
95ef7c8ff0 Lua: Fix MinGW build for qbs
Change-Id: Ia0afe744add081d8f255ad6328b6ae55ca07fc11
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 13:04:42 +00:00
Marcus Tillmanns
a858e305d5 Lua: Improve SelectionAspect binding
Change-Id: I4fa4bd2ae64078ca702637625975cf8fbfa7c116
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:17 +00:00
Marcus Tillmanns
a1da3afdc9 Lua: Add AspectContainer::onApplied
Change-Id: I2f53479b2b81b86fb90778dd495d8733bde2118e
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 12:49:11 +00:00
hjk
e230acbb23 Autotools: Use new setup scheme for build steps
Change-Id: I4c228a1324e5d426ea2c288f105df2c097a972c7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-19 12:32:57 +00:00
Jarek Kobus
715240257d Android: Detect preNougat inside AndroidRunnerWorker
Remove setIsPreNougat() setter.
Remove m_isPreNougat field and provide isPreNougat() getter
instead.

Change-Id: Ie906024840be78a0b17fbd3d4df00667b4812cfb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 12:18:11 +00:00
Marcus Tillmanns
2b1001eb24 Lua: Add TextEditor::currentEditor
Change-Id: I4a2e4703bca2b557aac4240d7bc2519f7b50217b
Reviewed-by: hjk <hjk@qt.io>
2024-07-19 11:25:55 +00:00
Christian Stenger
e6dc3fb008 QmlJS: Fix default command for qmlformat on Windows
Fixes: QTCREATORBUG-31257
Change-Id: I72797f3e67e0b71dac434fcd90777b0aa7334995
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-07-19 11:10:20 +00:00
Christian Stenger
410b275eca SquishTests: Attempt to stabilize designer test
The switch to cmake broke this test completely as qmake handles
changes to ui files differently.
Changing a ui file needs re-execution of moc which is not done
automatically for cmake except when building.
Beside this the cmake project manager seems to inform the code
model about respective changes significantly later, if at all.
So, we explicitly trigger a build now after changing the ui file
and explicitly ensure the code model treats the file correctly
by closing and re-opening it.

Change-Id: Icb9cfb572c1442eff1bebc9c29fdee55155ca287
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2024-07-19 11:10:08 +00:00
hjk
b06c205a5d CPlusPlus: Replace one FilePath::toString() with path()
The injected files check would be wrong with remote paths.

Change-Id: I729d9fa9b1399d4ef5337004153e62ca287948cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 10:52:24 +00:00
hjk
e8855f97d5 Utils: Expand FilePaths per part, not as a full string
Avoid the potential side effects from the toString/fromUserInput round
trip.

Fixes: QTCREATORBUG-31259
Change-Id: Id004d71079b4ef8ac26b927921c5cd7a23531110
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 10:04:21 +00:00
Christian Kandeler
af353119c0 Core: Allow users to open output window contents in scratch buffer
Task-number: QTCREATORBUG-31144
Change-Id: I474e60392281c5e3bd769d64719c3c6a31c57d2f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-19 10:02:30 +00:00
Christian Kandeler
69906c6525 Update qbs module to HEAD of 2.4 branch
Change-Id: If06b28c8b98c823e2020d3e3be0229605faf5913
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 10:01:33 +00:00
Eike Ziller
8a060b285a Fix in-wizard translation support
We in principle support a map of locale->string for keys starting with
"tr" like "trDisplayName". This didn't work everywhere.

We may not cast the value for these keys to QString before passing it to
`localizedString`, since that would result in an empty string if the
value is such a map.

Also fix the documentation since we remove all parts from '_' (to also
get rid of encoding parts).

Fixes: QTCREATORBUG-23575
Change-Id: I2be795053e645c8bf81417d0db69cd7e63eff022
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 09:36:52 +00:00
Jarek Kobus
90d3a41e6e Android: Remove remaining unused functions from AndroidAvdManager
Hide some recipes in cpp, as they are used only locally.

Change-Id: I8d6855c93e4a1264b217b9fb55219ab4f5cf56f1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 09:13:09 +00:00
Robert Löhning
a5b2c648bc SquishTests: Update expected page title in WELP04
Change-Id: Ib0a78b9b7aacbf5cf76d3a402e62239239592248
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 09:03:58 +00:00
Robert Löhning
2970b6c85e SquishTests: Use newest Kit in tst_designer_edit
The old MinGW can't compile the used project anymore.
Even configuring already fails. Testing compatibility
with old Qt versions and compilers isn't the purpose
of this test, so it can simply move to newer ones.

Change-Id: Ie21a5a726c33b4073f2aa4d955e2e5ea943bf9bc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 08:59:22 +00:00
Jarek Kobus
2b0b5d8824 Android: Refactor AndroidRunner
Refactor the case when running without deployment.

Reuse existing avd recipes and run a task tree instead.

Change-Id: If0b12d2779e64e218c8da6cd07c355d85afd2ec2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 08:06:17 +00:00
Jarek Kobus
3fb7008ac6 Android: Get rid of unused functions
They got replaced by the corresponding recipes.

Change-Id: I1b42a9fb230869fde3daf03feb33ca2d1e89bb01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 06:33:09 +00:00
Jarek Kobus
1525f64b9a Android: Fix asserts triggered on app startup
The QVariant values of Store map are apparently of QStringList
type, not QString.

This fixes the following asserts triggered on every startup:
"sd.first().typeId() == QMetaType::QString".

Change-Id: I84eb6a942503632d047939b138727c75e9e7037e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-19 06:05:51 +00:00
hjk
6ce086fcf0 BinEditor: Clean up a bit
Change-Id: Idc27f20ea8de5ac58b6e78efa6525a33e07e5e4f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 06:00:23 +00:00
hjk
605aace7d7 BinEditor: Remove BinEditor::modificationChanged() signal
Was only used to trigger IEditor::changed(). Do that directly instead.

Change-Id: I6cc659ac9be9496dbf8b463660754dd8779db94c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 06:00:13 +00:00
hjk
a1eaaadbe9 RemoteLinux: Prevent step factory sharing by inheritance
This was the preferred way for a while, but has been superseded by
creating the steps by ID.

Not exposing the factory classes in a header prevents following
the old approach in downstream plugins.

Change-Id: Iaa89458a87602006f1a05fa142a34cc1f9d63c64
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-19 05:59:49 +00:00
hjk
60206de94f BinEditor: Simplify address field updates
Change-Id: Ia57348b25a28164061bca4f7cf336a9e9a555abb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 05:56:42 +00:00
Christian Kandeler
484d63ffad Lua: Fix qbs build
Change-Id: Ia05a814838e98d5305dc6ddbffad2abc12aa75ad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-19 04:30:14 +00:00
Jarek Kobus
0051d273d3 Various plugins: Remove unused variables
Found by Axivion plugin.

Change-Id: I628b00e4525b004c702dd8753af31cb3fedf1739
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-18 15:08:48 +00:00