Commit Graph

78724 Commits

Author SHA1 Message Date
Orgad Shaneh
a5e98b1fa0 CMake: Avoid redundant copy
Amends commit e8802d92e3.

Reported by Coverity.

Change-Id: Ibc0b1cdf1918d5bfed5104f14098096d158526e2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-21 10:48:58 +00:00
Leena Miettinen
55760cb5f7 Doc: Fix reference to an \image after image name and format changed
Change-Id: I581a0c3ad6be9cc435fc27069d95c72816948755
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-21 10:31:10 +00:00
Marcus Tillmanns
625f0ef726 Copilot: Add LSP plugin for Copilot
Fixes: QTCREATORBUG-27771
Change-Id: I1249b9a4492427208a70b3e21bf20ac668fc3c50
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 10:26:12 +00:00
Cristian Adam
10bbc7ce33 CMakePM: Add QTC_RUN environment variable for the CMake run
This way one can do certain things knowing that CMake is being run in Qt
Creator.

Change-Id: If3ac8a52f30f9fa73a756212199a25632c757dcd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 10:08:48 +00:00
David Schulz
b625e8bb9b Debugger: improve dumping Qt pointer types
Adding the data as pointers allow casting the data to the actual derived
class

Change-Id: Id1b421c2729c6da8bf17054e39b4f1e8d8ff2cfa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:59 +00:00
David Schulz
8f53231165 Debugger: fix debugger log entry
Separate command and argurments with a space in the log output.

Change-Id: Iaa486ce668ed268cb2a85e1267ca54aa42b07c20
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:54 +00:00
David Schulz
1a575cd2df Debugger: Fix printing of pointer to multiple inheritence base class
...for cdb when we have no nativeValue. This is the case whenever we
have a container like std::vector, QList or a c array to the base class.

Fixes: QTCREATORBUG-28337
Change-Id: I18c63dfbc207d76bf41d85d5da83f7f4603504f9
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:45:49 +00:00
Leena Miettinen
08e789851e Doc: Describe changing includes when renaming .ui files
Task-number: QTCREATORBUG-QTCREATORBUG-28721
Change-Id: I6508f57dd7f8634e0fb8412bc55845b24fb5af54
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-21 08:44:43 +00:00
Leena Miettinen
b1184509b5 Doc: Describe Preferences > C++ > Code Model > Ignore files
Task-number: QTCREATORBUG-28721
Change-Id: I18aa6a624038543fd7a2e9b78e4678dd617cffce
Reviewed-by: Philip Van Hoof <philip@codeminded.be>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-21 08:44:26 +00:00
Jarek Kobus
31fa792b5b TaskTree: Update inline comments
Change-Id: I8a34eb0757fc6d6bf7589ced7a714bb6e564fd09
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 08:37:36 +00:00
hjk
307f7f6075 QmlDesigner: Inline settingspage.ui
Change-Id: I4ff8511d2d4f229977ecdcc882c420e1cc058119
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 08:37:09 +00:00
Eike Ziller
351088d7bb Update qlitehtml to latest master
Updates litehtml to v0.6

Change-Id: Ic195844c466b288bccf1baaf3cd8a0b65aad3b3f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-21 08:36:39 +00:00
Alessandro Portale
a5d4187630 Squish: Use Tr::tr() where possible
It is more "type-safe"

Change-Id: If406de0e2c8896913ecc3b9b86cc603de7d22d3f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-21 07:56:03 +00:00
Jarek Kobus
69ec9c4361 TaskTree: Add TreeStorage::operator*()
Reuse it in some places.

Change-Id: I335f38fa0384ea17bd8e981d743f835c3f05b731
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 07:31:48 +00:00
Alessandro Portale
36c6a255b1 QmlDesigner: Add missing plugin dependency to QmakeProjectManager
Otherwise, launching with "-noload all -load QmlDesigner" fails.

Change-Id: Icae219fd90aad799257384bccc4bb4ab60cf5e2a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-21 07:31:07 +00:00
hjk
dce7025969 MarkdownView: Merge into TextEditor
Make it a bit more compact, too.

Change-Id: I448164371c5a1d6969a292feba17caa2826f58c3
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 07:17:29 +00:00
Christian Stenger
2d79718ad4 SquishTests: Adapt to changed wizard template
Change-Id: I7e487481ede88d186fb868d595eb96f25afc2fc5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:43 +00:00
Christian Stenger
4525d7baf9 SquishTests: Adapt to changed wizard template
Change-Id: Id50e16a790e63f7c99fbbe5213d9e25d20aaf29b
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:27 +00:00
Christian Stenger
5c7eb717ed SquishTests: Adapt to changed wizard
Change-Id: I07d3b468e6b5ec4055fa57efcddaa0cdb678966b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:23:14 +00:00
Christian Stenger
507e5f76fa SquishTests: Fix expectation for profiling
Wizard template has changed and we use Qt6.2 nowadays.

Change-Id: I63d0103ac324bcf83f0b07802f57a171589a2fb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-21 06:22:51 +00:00
Leena Miettinen
0cf83caa00 Doc: Add finding unused functions in Projects view context menu docs
Task-number: QTCREATORBUG-28721
Change-Id: I180028a09f51ec40d43ae99cfd474b05f5a2b69d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-20 16:44:17 +00:00
Leena Miettinen
ce2d773510 Doc: Remove obsolete \include commands
The information was moved to the Expressions view docs.

Change-Id: I8e98e9de57412792746727f521253e85ecff9930
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 15:50:39 +00:00
Artem Sokolovskii
25178ed8f4 Core: Speed up opendocumentsfilter
Do not rebuild the complete list of editors every time anything changes.
Handle the incremental update via the DocumentModel::model() signals
(while ignoring the "<no document>" item at the top).

Fix a bug that DocumentModel sent a dataChanged signal from
disambiguateDisplayNames for an index before the corresponding
rowsInserted signal was sent (by endInsertRows).

Change-Id: If9c02fef94e9c744b859db7a07c8464c4e06a73b
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-20 15:00:31 +00:00
Eike Ziller
c41b417748 Bump version to 10.0 beta2 and copyright year
Change-Id: I633df92077441d6eab1390259769488687803a9f
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-20 14:24:04 +00:00
Jarek Kobus
efc4a0f1af AsyncTask: Make it possible to run with promise
Using QtConcurrent API.
Adapt asynctask tests according to new API.
The old API in going to be removed, soon.

Change-Id: I3cf163e9492526f0b49bd162c27e6c55a98ace7a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-20 14:21:06 +00:00
Artem Sokolovskii
41aeb175b8 Android: Move tests from sdkmanager class to test class
Change-Id: I2e7be8f33b40d7c67e72efa88ca5528deb046ade
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 13:35:16 +00:00
Jarek Kobus
b9dca8f8fa ExtensionSystem: Use TestCreator in more places
Amends b59e632ac3

Change-Id: I11000c488c6a69b4c55b8ccb164fa6587abb8b5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 13:33:30 +00:00
Eike Ziller
133b78dafa Build: Sort contexts on translation updates
Change-Id: I484f42ff9e3d41f8830d5f531de9e4d8cdfa9c88
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 13:20:54 +00:00
Jarek Kobus
6c50298fa5 RunWorker: Remove watchdog functionality
Not used anymore.

Change-Id: Ib28287648dd15a31775a72c5a821ba33cae255fa
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 10:14:10 +00:00
Jarek Kobus
ce082b7bc4 RunWorker: Remove unused virtual function
Change-Id: I70788a0a17f5fcb214b63c812a6bb8a3547e7ebc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 10:11:59 +00:00
Alessandro Portale
50d2565c68 Translations: Fix occurrence of tr() call with randomn context
Change-Id: Iaba347e3611f894c9f76cffa7e8b7870d13d9920
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 10:03:14 +00:00
Christian Kandeler
7fe9363395 CPlusPlus: Use categorized logging in lexer
Not suprisingly, the #ifdef-based debugging produced uncompilable code
when enabled.

Change-Id: I4a6646bfa98a8500491be4892d464ec88512bec7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-20 09:03:55 +00:00
Alessandro Portale
e27f82b49e Translations: Merge "OpenWith::Editors" into "QtC::Core"
Change-Id: I241ccc53afa11fa3faa1f1ca9363421827081812
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 08:00:37 +00:00
Leena Miettinen
ff71290758 Doc: Describe Temporarily hide inline annotations in Edit mode
...for different types of annotations individually in the annotation
tooltip popup.

Update the screenshot.

Task-number: QTCREATORBUG-28721
Change-Id: Ic2f010e370109a5ea35aef5d9c8da5b74927f4ef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-20 08:00:20 +00:00
Andre Hartmann
b9af26adf3 Git: Fix soft asserts on failing instant blame
When git blame returns no output, silently avoid creating
annotations instead flooding soft asserts.

This situation can easily happen when navigating to a
header file that is not under version control.

Fixes: QTCREATORBUG-28768
Change-Id: I8d2f443dec98575221995a9016bd2f8442c682cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-19 14:56:14 +00:00
Orgad Shaneh
10dc4f93f4 VCS: Recover clearer actions when closing commit editor
Amends commit d63bfa4a29, and recovers the
actions that were introduced in 15b176e30c
(relates to QTCREATORBUG-18799).

I keep being confused by these Yes/No myself :)

Change-Id: I0429ef9c25231b96bd595a1bfb6808b621db54e5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:58:22 +00:00
Tasuku Suzuki
8b70e59cdb Add markdown viewer plugin
Fixes: QTCREATORBUG-27883
Change-Id: Ie4099b8a322797d300bc15a80333bcb361ecafc3
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:40:10 +00:00
Christian Stenger
1a4badb705 SyntaxHighlighting: Fix qbs build
Broke with 30c768badb.

Change-Id: Id8b56247acc9d2eb447ca85d1c5c7c5bc77f70bb
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-17 13:39:53 +00:00
David Schulz
487ea9cd99 Doc: add link to java language server packages
Change-Id: I9ccd1c6b09300685bbac4a85354f881293d394b9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-17 13:12:00 +00:00
Christian Kandeler
9098357471 Update qbs submodule to HEAD of 2.0 branch
Change-Id: I7451d19dfc52fc416ecb3e4594912480fb131549
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-17 11:54:58 +00:00
Alessandro Portale
0e4d618a2f Translations: Fix fix_value in the extraction scripts
The scope of fix_value function seems to be to just escape some
sequences. This, replace "\n" with "\\n".

Also fix three related translation sources in qtcreator_de.ts.

Change-Id: I1d4177d99a8f60757e5e17fb7f56960f522be728
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 11:52:25 +00:00
Marcus Tillmanns
8ed10639b6 Utils: Make getFileAccess static
Change-Id: I6af1ee8be88bf378bd1ddff8fee02005cc9ed6cb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 11:22:50 +00:00
Eike Ziller
1938926c69 Build: Add target for lupdate with obsolete, without locations
Which would be something that we can check into the repository.

Change-Id: I14e3a6d5e5a505b4ae0dc4b22046834ee645ef9c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-17 11:02:46 +00:00
Leena Miettinen
d899cfed38 Doc: Describe that the locator f filter expands variables
Task-number: QTCREATORBUG-242
Change-Id: I6066fc122bfbae50a1daee801ac4d94298dae25f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-17 10:59:52 +00:00
Leena Miettinen
f263dd9c16 Doc: Edit the change log
Make some entries more specific. Add articles to increase
readability and make the change log look more polished.

Change-Id: I0d24f1498af59ee47a9ff6442ca1f0627909f65d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:59:35 +00:00
Alessandro Portale
6e24d3eec8 Translations: Fix some Tr::tr() calls
Tr::Tr::tr("Foo") would introduce extra translation contexts.

Change-Id: I43903d53d7d65677bb6b7a8bfd85eb5013c1fe6b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:40 +00:00
Alessandro Portale
cd2aef9f50 Translations: Move extracted translations into QtC:: contexts
This change adapts the exctraction scripts. The contexts in the .ts files
were already merged in earlier changes.

Core::Internal::ExternalTool
 -> QtC::Core

ProjectExplorer::CustomWizard
 -> QtC::ProjectExplorer

ProjectExplorer::JsonWizard
 -> QtC::ProjectExplorer

TextEditor::Internal::Snippets
 -> QtC::TextEditor

Change-Id: I277707d259abcc13fac064a1d879aeedee1703e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:29 +00:00
hjk
9af5ebe856 ProjectExplorer: Use new plugin test object setup
Here a bit less mechanical due to the indirection.

Change-Id: Ia328a267ad0adc0ce1ea1ad56ffc67dc67666418
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 10:10:33 +00:00
Jarek Kobus
af03f49bf7 LlvmFileSystemAdapter: Don't use uninitialized memory
Create std::string explicitly using pointer to data and data size.
SmallVectorImpl<char> doesn't include terminating \0, so passing
data size is needed.

Fixes: QTCREATORBUG-28812
Change-Id: I63bd290e990ec8e4cd4fb609764a79e6feff92bc
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 09:37:46 +00:00
hjk
6ed246e5e2 Core: Use CommandLine for Spotlight locator filter
Change-Id: I2325ae2e55400ddf119bbc1ab2069dc54a79b687
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 09:32:11 +00:00