Commit Graph

72811 Commits

Author SHA1 Message Date
Jarek Kobus
0e3f62b5cc Utils: Simplify builderutils code
Use variadic template for Arg class.

Change-Id: I04fa001ac2b6e733d4f6c20d976c1658faad7904
Reviewed-by: hjk <hjk@qt.io>
2024-07-17 12:21:21 +00:00
hjk
ceef13538c BinEditor: Disentangle widget and document a bit further
Change-Id: I39b283645e6d4ac1e6f2f2d22d4befb16be18076
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-17 12:16:06 +00:00
hjk
d240cbb261 Marketplace: Move closer to current plugin setup pattern
Change-Id: I5c88fbe88240c826deb8aef2d1b5ee0f94f2e888
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-17 12:05:08 +00:00
hjk
3646b65f58 Debugger: Merge DebuggerToolTipHolder into DebuggerToolTipWidget
Change-Id: Ia561563782706320754e9fefa111a1896561de3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-17 11:55:18 +00:00
Eike Ziller
fddf5693ab Editors: Fix that releasing Ctrl sometimes does not close the chooser
On some platforms, after pressing Ctrl+Tab to switch files and then
releasing Ctrl, the chooser didn't close because the key event claimed
both that Ctrl was the released key but Ctrl was still pressed. Add a
workaround.

Fixes: QTCREATORBUG-31228
Task-number: QTCREATORBUG-27378
Change-Id: Ifd83e655f0d3dca7e15dfbd822ec1893045b304c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-17 11:46:16 +00:00
Marcus Tillmanns
264dce704f Core: Don't call currentEditorChanged twice
activateView / setCurrentView will already have send
currentEditorChanged(nullptr) and called updateActions

Change-Id: I72c2d3befe207f3ec4a9718ce52a31a967f698b0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 11:13:33 +00:00
Alessandro Portale
0fba429032 Core: Use better suited file dialog when saving OutputWindow content
QFileDialog::saveFileContent opens a non-modal file dialog which can
disappear in the backgtound. Also, on Windows, the dialog is non-native.

Use FileUtils::getSaveFilePath and FileSaver, instead.

Task-number: QTCREATORBUG-31099
Change-Id: I0c84e149183f632e325b2e62ee9b1c7d7726f207
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 10:55:40 +00:00
Marcus Tillmanns
2ab4d9064a Lua: Allow printing strings containing \0
Change-Id: Iefef53c5b2cbacb1ea0dd19a75850fbbafb7ef94
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-07-17 10:50:57 +00:00
Ali Kianian
3cf107f563 QmlDesigner: Add PrincipledMaterialEx to QDS
Task-number: QDS-13226
Change-Id: I9313df343a92c5c2d55c4eba75e994b639fe7bb2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-17 10:06:21 +00:00
hjk
1aef2e2591 ProjectExplorer: Fix after async path verification in JSON wizards
After 83111bb3, the path validity result was coming in later and
was not considered for the page completeness check any more.

Fix that by running the check again when the path result is ready.

Change-Id: I2aab6b2130896d63f7e0359ced39e758393a2644
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-17 10:03:26 +00:00
The Qt Project
f435584c72 Merge "Merge remote-tracking branch 'origin/14.0'" 2024-07-17 09:44:23 +00:00
Eike Ziller
18937fd44b Merge remote-tracking branch 'origin/14.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs
	src/plugins/qmljseditor/qmljseditordocument.cpp

Change-Id: Ibef70b4c0eba5ccd5da7b05ca2bd3a9e8ee1cc0c
2024-07-17 11:43:34 +02:00
Andre Hartmann
7ed44ac5a1 VCS: Language fixes for "files cannot be added dialog"
Amends 078f6df4d6

Change-Id: I4ad8074d2db1d7d8fcd3962af914c5687f6d6fce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-17 08:22:04 +00:00
Artem Sokolovskii
1705440fa3 ClangFormat: Fix empty warning message
Change-Id: Id08afdea266c018fe6b2756cf7d3bbe8677aaae9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-17 08:10:43 +00:00
Andre Hartmann
078f6df4d6 VCS: Improve dialog when files cannot be added
Avoid making the dialog larger than the screen.

Also remove the special handling for single files.

Fixes: QTCREATORBUG-31161
Change-Id: I5a85834505351493c51ee708c81527147d1a1270
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-07-16 15:48:20 +00:00
Marcus Tillmanns
9b7016f519 LuaLanguageClient: Dont store settings pointer
The settings can be deleted by the LanguageClientManager
so we just use the settings id instead.

Change-Id: I03f0d4184a12c69f6cd8c74705ab8e1d01b15ec6
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-16 13:46:14 +00:00
Marcus Tillmanns
cfbdd73e02 LanguageClient: Add clientsForSettingId
Change-Id: I41c99b410f74b2729a4f53f7162b0c9a32c0a4da
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-16 13:46:09 +00:00
hjk
8a3958df81 Debugger: Delay showing tooltip
Task-number: QTCREATORBUG-31250
Change-Id: If74100538a992b5bc7d71bdb2808f6d1e70571d1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-16 12:15:08 +00:00
David Schulz
5aa48c1518 Utils: Fix modifier filter for multi cursor events on mac
It seems the keypad modifier is almost always set, but the alt modifier
blocks usable shortcuts.

Change-Id: I09e5d3a07bdc7ca2f81c3822097c412db2e212bd
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-16 10:56:50 +00:00
hjk
a79d77e09a Vcpkg: Drop one use of Utils::ListWidget
This doesn't use any of the extra features.

Change-Id: I5533f567568755a04a9cf80dd32cdda475abf738
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-16 10:46:36 +00:00
Christian Kandeler
77f549272e ClangTools: Fix warning
GCC 14.1.1 claims a dangling reference when using make_pair(). Using the
constructor instead makes the warning go away.

Change-Id: I10b4af781c36a6ae4d5a525e875cd369d2a051b6
Reviewed-by: hjk <hjk@qt.io>
2024-07-16 10:40:17 +00:00
Jarek Kobus
cebaab596d ProjectManager: Simplify Project::setBuildSystemCreator()
Make it a template method.

Change-Id: I3f0510c89d7f0bfe2f814dadc4d8de01c0e1cc89
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-16 10:34:12 +00:00
Artem Sokolovskii
d4776e6401 ClangFormat: Add export and import features for ClangFormat
Due to the removal of the widget where users could generate settings
using BasedOnStyle and see all available properties, users now need
to have the ability to load their files or generated files.

- Implemented functionality to export internal .clang-format to an
  external file
- Added import capability to load ClangFormat style from an external
  file
- Added to the ICodeStylePreferencesFactory function
  createSelectorWidget for the possibility of reimplementing the
  functionality of export and import buttons

Change-Id: Ib5f00a0fb58a983d0e7c6dc55128e93d0205d3ca
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-16 09:56:50 +00:00
hjk
b5094f7da3 Gerrit: Make sure there's only one GerritParameters object
Later to be renamed to GerritSettings, and possibly using aspects.

Change-Id: Idd3d9d3de4f9827478129fe210abfa7b80cff84d
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-07-16 09:36:07 +00:00
hjk
d8ccc0479d Gerrit: Inline two functions that are used just once
Change-Id: Iad49a785353203585342b61016df34105bc3a22e
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2024-07-16 09:32:56 +00:00
hjk
4d9bb822af Git: Make Gerrit settings handling more similar to others
Use a singleton for the main settings, don't pass it around as
shared pointer.

Change-Id: I5c32679452ad631998a688afc9a6e2b154bf3a5d
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-16 08:25:10 +00:00
Christian Kandeler
2ddb7f66a8 PE: Add convenience function for retrieving a toolchain's factory
Change-Id: I76839ea04576b5a2c6252c09dea7955883e7ad9a
Reviewed-by: hjk <hjk@qt.io>
2024-07-16 08:11:47 +00:00
hjk
bf2f623b89 Use convenience BaseTextEditor::currentEditor a bit more
Less noise in user code.

Change-Id: I26b8084a1ba531871d61b41db3294c81c08f7536
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-16 07:21:18 +00:00
Alessandro Portale
a97dae449d Aggregate: Fix inconsistent linkage issue with MSVC
Amends: 94a562fd8c

Change-Id: Ib8ef45fd7dd7b27befec0d24493e183c964f7c24
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-15 16:01:53 +00:00
hjk
f6328e77c0 Fossil: Hide FossilEditorWidget definition
... and de-pimpl.

Change-Id: I360379350a696b2d465e869b47c6c02fbd4aa996
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-15 15:17:04 +00:00
Jarek Kobus
c70436fa3e BuildSystem: Make BuildSystem subclasses final
Change-Id: I15f6b40131e6a0452682ffad02ffce3b40d903b5
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:46:45 +00:00
Jarek Kobus
02c4d976c6 AutotoolsPM: Deobjectify MakefileParser
Change-Id: Idc7bfd785df1228120173e4ccf83fd2273c60ba5
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:34:33 +00:00
Jarek Kobus
a70cb04bdf AutotoolsPM: Hide MakefileParser in cpp
Provide parseMakefile() global function instead.

Change-Id: Id2eebfb491f57f43ea0c98cec63de491fdfb9ea0
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:34:26 +00:00
hjk
94a562fd8c Aggregation: Add a convenience function to create simple aggregates
Change-Id: I03300f1fcc20314d392012fd288ef0fc2501d403
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-15 14:29:18 +00:00
Jarek Kobus
20dfea7bea AutotoolsPM: Do some cleanup
Change-Id: Ic6bfc288a6bbecae788eb730c365e07e7ea687f4
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:20:31 +00:00
Jarek Kobus
e419b6be15 AutotoolsPM: Make QTextStream a local variable
Create QFile on stack.

Change-Id: I803da2be8f2dea7ace13e3bb2791082fe40ee892
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:12:42 +00:00
Jarek Kobus
1d3de2b5be AutotoolsPM: Make MakefileParser cancelable
Change-Id: Iccd3c54c401433b82f567cfef281a0043af2efff
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 14:12:36 +00:00
Jarek Kobus
d65bed648f AutotoolsPM: Remove unused getters
Change-Id: I7c700893d209670b563ee60230adf8d82111a06f
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 13:42:28 +00:00
Jarek Kobus
931cc6820a AutotoolsPM: Replace QThread with TaskTree
Don't create a permanent thread for just one parsing.
Use TaskTree with async recipe instead.

Change-Id: I8eef0082c5d39a45fb0d8751c632ba02a955faef
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 13:42:20 +00:00
Jarek Kobus
9616254534 AutotoolsPM: Inline updateCppCodeModel()
Change-Id: I68885dda050f7942165da74e8011a25bcc075530
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 12:55:47 +00:00
Jarek Kobus
4a6db9fd74 AutotoolsPM: Introduce MakefileParserOutputData
Change-Id: I47c277a1d3814c2de2f0b2c0a1e5894118821e1f
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 12:55:39 +00:00
hjk
6f6004a425 ResourceEditor: Compactify qrceditor implementation a bit
Combine files; remove pointers Q_ASSERT that effectively don't check anything
as they are dereferenced immediately; using namespace Utils, ...

Change-Id: Iefbc4c9e9de3ac6e499bf6caea04503b8c796e3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-15 12:44:42 +00:00
Jarek Kobus
b9c2f197ff AutotoolsPM: Get rid of unused signal
Change-Id: I0e82b1cc7be054f6be7b54c043e3b3a15fdb2a88
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 11:53:36 +00:00
Cristian Adam
6e79888943 CMakePM: Fix code model for cross-compiler CMake presets
CMake Project Manager is using a small CMake project as a compiler probe
when a CMake preset is being setup. Now this CMake project is saving
more variable as cache variables.

These CMake variables could be only visible inside the CMake preset
probe project via a CMake toolchain file.

CMAKE_SYSROOT was important to be set in the Kit. The CMAKE_C|
XX_COMPILER_TARGET variables are set to override the original triplet
for the code model.

Fixes: QTCREATORBUG-31249
Change-Id: I3c3294b839629c22ce760596b92b2b393eed6a8b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-15 11:45:22 +00:00
Christian Stenger
c3589ccfaa Debugger: Fix missing include
Amends 4367737012.

Change-Id: Ibed835d65b443a8f03ba98a8005cb1cf6fce2d35
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-15 11:27:16 +00:00
hjk
1bc385bd66 Debugger: Compile fix
Change-Id: If2b2286d9c5d444022b748f6c32319fb60d1c1aa
Reviewed-by: hjk <hjk@qt.io>
2024-07-15 10:30:49 +00:00
hjk
d8d36286b4 Debugger: Simplify DebuggerToolTipContext constructor
Change-Id: I3407a3f6e7d2ca7cdcd16256bc069933a42bfa8b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-15 09:51:18 +00:00
hjk
4367737012 Debugger: Remove dead code that persisted tooltips at some time
This was not in use since 2fe69b60 in  2015 without anyone complaining.

Change-Id: Iccc4a230a008b8dff5b08faa5cb1ae513c4c0360
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-15 09:51:10 +00:00
Christian Kandeler
94a44dfacf Update qbs submodule to HEAD of 2.4 branch
Change-Id: I2804ab27c73c946455762d0889209f94036f24e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-15 09:27:17 +00:00
Christian Kandeler
1c272072e5 ClangCodeModel: Fix displaying ifdef'ed regions
... that are started by an indented preprocessor directive.
clangd potentially sends regions not starting at line boundaries (in
this case erroneously, but potentially also on purpose), which
TextDocument::setIfdefedOutBlocks() does not expect.

Fixes: QTCREATORBUG-31204
Change-Id: I9126263b9501edbbab1fbc22cc59c5ee1ae814c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-15 09:26:51 +00:00