Commit Graph

80111 Commits

Author SHA1 Message Date
Marco Bubke
0e3c125505 Sqlite: Generalize error handling
Instead of having multiple error handling function just have one which
handles all error codes.

Change-Id: I6fc0484a335dcf582fc93159a9fdb0fea440daca
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:43 +00:00
Marco Bubke
471aa774c7 Sqlite: Add extended exceptions for can't open errors
Change-Id: Ib092b5fe721b8b063f8c503cc1a650447e393951
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:37 +00:00
Marco Bubke
48442b991f Sqlite: Add extended exceptions for connection lock errors
Change-Id: If6f6cd6ba67edc8716f3c43b832642244fc1e1c3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:28 +00:00
Marco Bubke
481c82b957 Sqlite: Add extended exceptions for readonly errors
Change-Id: I96a8f1c87ce116e99b7e6333166299b39fb9c27c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:19 +00:00
Marco Bubke
176ecdb1db Sqlite: Add extended exceptions for corruption errors
Change-Id: I705bffc54def12e914caf31cacf870ad2f9cbeea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:34:11 +00:00
Marco Bubke
4502a02fbb Sqlite: Add extended exceptions for contraint errors
Change-Id: I2e3030de7496703ba1e9fbd1a28ed55061e1b2b5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-15 11:34:01 +00:00
Marco Bubke
37563679cc Sqlite: Add extended exceptions for errors
Change-Id: I297bf7a82625198200b0e4ed260d81358d31c56c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:33:51 +00:00
Marco Bubke
093584a10c Sqlite: Add extended exceptions for busy errors
Change-Id: I812650401f4a5d5a099abc0183d2f7ed4e1d64c6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-15 11:33:43 +00:00
Marco Bubke
0a38ae7e78 Sqlite: Add extended exceptions for IO errors
Change-Id: I3862a91e3d9989c44c7c62171324c38b66a67ac0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-15 11:33:31 +00:00
hjk
13baedad82 Qnx: Fix passing nto-executable
Change-Id: I6c1749a74d153a8dbbbef891e8eee230226e452d
Reviewed-by: hjk <hjk@qt.io>
2023-03-15 11:04:56 +00:00
hjk
821dce1e9d Qnx: Drop support for QNX 6.5
Or, rather, assume that slog2info is available and handle a missting
slog2info more or less gracefully.

Change-Id: I739482ff0a3d88ee7ff735adf42809cc2ee3e510
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-15 11:04:43 +00:00
hjk
52a7205965 Qnx: Simplify QnxDeviceTester
Change-Id: I789c5ab4fa4a6f79f89db4159d889f67223b8619
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 11:04:29 +00:00
Cristian Adam
17100d4ca9 CMakePM: add ${pathSepList} from CMakePresets version 5
Task-number: QTCREATORBUG-24555
Change-Id: Ic0bf0d7029267c71352294de428921ff52fe4359
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-15 10:53:45 +00:00
Orgad Shaneh
0842f69888 Terminal: Fix MSVC "loss of data" warning
Change-Id: I856223c4830b5d78290d492b18cc2037e96fcc20
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 10:39:48 +00:00
hjk
ba39377edb Qnx: Simplify QnxDeviceWizard interface
Also provide a parent.

Change-Id: I8ca95d09af8126b9e822f891ef815bfcaa84a9d2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 09:57:37 +00:00
hjk
2704f8ff0b ProjectExplorer: Proliferate FilePath a bit
Change-Id: Ia671a1de17b9e58764375c5f64cc47b053b0725a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-15 09:57:02 +00:00
Thomas Hartmann
925b08d6e6 QmlDesigner: Fix crash when accessing optional
Change-Id: Ic80ea2558f6b41da127000441a75773d382f5a05
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-03-15 09:51:42 +00:00
Leena Miettinen
b0605f1095 Doc: Fix UI string in Build Settings docs
Change-Id: I1627dc59266767ec02ac80999931a8497e3be309
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-03-15 09:49:31 +00:00
Marco Bubke
68bceb92cf QmlDesigner: Improve readabilty of tests for project storage updater
Task-number: QDS-9382
Change-Id: I9aac10b7e7782847bae23b09e64fbe569ce2c40a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-15 09:37:57 +00:00
Cristian Adam
40a22963be CMakePM: Fix presets with macros in CMAKE_BUILD_TYPE
Fixes: QTCREATORBUG-28893
Change-Id: Ifc4927a31c6a30c3c8ab083d8724207202c75aa1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-15 09:15:16 +00:00
hjk
4d325522e0 Qnx: DeviceTester code cosmetics
Change-Id: I77463ecde1c64333de35b33773f3eacf275f983f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-15 08:38:22 +00:00
David Schulz
7a2dbace9b Copilot: add command to explicitly request copilot suggestions
Change-Id: I3bf321fc2ebc6d44819c1a799be9207aa3ca59f1
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-15 05:07:04 +00:00
David Schulz
7cb585af87 TextEditor: support inline suggestions
Change-Id: I70924a37f9078c5b33c1703e099fc9ddc0b1ae9a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-15 05:06:28 +00:00
Cristian Adam
60e03d4805 CMakePM: Do not pass QTC_KIT_DEFAULT_CONFIG_HASH to configure
QTC_KIT_DEFAULT_CONFIG_HASH is used to match CMake presets kits and
should not pass to the CMake configuration.

Change-Id: I27caedf03f94c1e864f16d1f735e2edbabbfe871
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
v10.0.0-rc1
2023-03-14 18:03:53 +00:00
Thomas Hartmann
d26e35b221 QmlDesigner: Improve speed of undo
Undo works strickly on the text editor and we wait 600ms
until we propagte changes from text editor to the model, to not
interrupt typing. In this case we should force the update immediately.

Change-Id: I5c854e7b4c6936e02c57d4cc7433a6e0ede50af4
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-14 16:28:16 +00:00
Thomas Hartmann
0a34c41b18 QmlDesigner: Speedup copy and paste
Checking the possible imports can be slow and is not required
for copy and paste. Doing the same optimization for the style merger.

Change-Id: I7485a8f897db3d0fa595695bef10d315e93ff73e
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-03-14 16:27:41 +00:00
Thomas Hartmann
6665ddf335 QmlDesigner: Fix pontential crash on shutdown
Change-Id: I6971f092ba1106c108bab8a9264e1e0dc84310e5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-03-14 16:27:24 +00:00
Sivert Krøvel
f4d72ebd79 McuSupport: Use settings before env var when setting package paths
If an environment variable corresponding to a package dependency
was set, this took precedence over the path set in the settings
file, making it impossible to change in the UI. With this change,
the environment variable is only used when no matching settings
entry is found.

Task-number: QTCREATORBUG-28488
Change-Id: Iee2e0bec402a4dce2f9590cd86ca3854e1e5ae90
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-14 16:00:29 +00:00
hjk
15a39259e9 Debugger: Use FilePath for Modules
Change-Id: Ib3c8cf0de3560fdc77775460aa6282d69dbfef9e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-14 15:14:24 +00:00
Marcus Tillmanns
7f1e6d0e9b Debugger: Fix QString=>FilePath
Change-Id: I32128c7a47ab8bdd06237251c572be3d6a5df1d1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-14 14:51:41 +00:00
Cristian Adam
15e1a64764 CMakePM: Add include presets support
Fixes: QTCREATORBUG-28894
Change-Id: I9359cb85c230f2db02f08427af9832f168a32c41
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-03-14 14:47:28 +00:00
Marcus Tillmanns
e093c39727 Utils: Better error reporting for copyFile
Change-Id: Id76280e83e9dae92bff2db5722f1e582867e1566
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-14 14:40:53 +00:00
Marcus Tillmanns
8f1cbd2e52 Utils: Improve and test CommandLine::fromUserInput
Change-Id: Ia18f5b01d91200e6ad65735496395215c6393533
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-03-14 14:40:35 +00:00
Marcus Tillmanns
2d15be91bf ProjectExplorer: Consolidate ProcessList
* Combined local and ssh process list retrieval into LocalProcessList
* Combined QnxProcessList into LocalProcessList
* Renamed LocalProcessList to ProcessList

Change-Id: I230c575375e306c638e4ca3034fa2d7ed243a44c
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-03-14 14:40:19 +00:00
hjk
b6a593e4f9 ProjectExplorer: Add a generic copy step
Change-Id: I6b4a70e3f71776f7009c0419c8d2f41dfd1c704d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-03-14 14:31:54 +00:00
Christian Kandeler
dd4235eb35 CppEditor: Verify proper highlighting of the concept keyword
Change-Id: I1c814da472f10539f87640a52822b188b9b7a2cd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-14 14:09:21 +00:00
hjk
c08322900f Debugger: Use more FilePaths in module handling interface
Change-Id: Ie058b928900015d0f71776151547bf7ba32a62bf
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-03-14 14:03:39 +00:00
Eike Ziller
8778eaaaa0 FileIconProvider: Improve performance of icon(FilePath)
By re-using the caching QFileInfo variant for icon(FilePath).
QFileInfo/FSEngine caches the result of isDir etc for a while, which
improves performance for slower devices in case that is called for the
same file paths over and over again, like it is the case for locator.

The cache might be out of date for some time when things change on disk,
but for a cosmetic property like an icon that is not a big deal. (And it
would be a file that transforms into a directory or vice versa, which is
not very common either.)

Change-Id: I663ac7e81f8f2996b87591dad17c5483e3f4ad3c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-14 13:47:02 +00:00
Christian Kandeler
25f1a4804a ClangCodeModel: Consider concepts in semantic highlighting
We highlight concepts as types for now, as it's a pretty good fit. We can
always introduce a dedicated concept highlighting type later if there is
demand.

Task-number: QTCREATORBUG-28887
Change-Id: I405db5ca4351efd565b968e765fe8bca976a2800
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-14 13:03:02 +00:00
Marcus Tillmanns
c43ff702f7 CMake: Fix WITH_SANITIZE
Change-Id: Ic0ad66f08b29416ddb1a546e84f9ed574b9ac6fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-03-14 11:00:59 +00:00
David Schulz
0b92ba92b2 Python: Remove dead code
Change-Id: I31aa1610b548b37f30f3daa353627f9c6418c3c8
Reviewed-by: hjk <hjk@qt.io>
2023-03-14 10:19:01 +00:00
hjk
b077a105fa GdbEngine: Allow remote symbol files
They may be needed when running gdb itself remotely.

Change-Id: I57242e3111ab23701d197d26f1c3b12a9b3e96bd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-14 09:46:47 +00:00
hjk
392cc524db Copilot/Terminal: Use Qtc::... as translation contexts
lupdate doesn't like toplevel ::, so we changed globally to Qtc::*

Change-Id: Id6f27989653dd16974d0c12ea4832c4e1abe3ca3
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-03-14 09:37:40 +00:00
Jarek Kobus
4a121833b1 Ios: Use QtConcurrent invocation for async run
Change-Id: I1d02a7a0467864a702bed8f73793f8f21832762b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-14 09:10:46 +00:00
Mahmoud Badri
a7a4c9773b QmlDesigner: Add a default validator to ItemFilterComboBox
Change-Id: Iba8f3f42d7028bc5da5b5abd6d3581f67184376b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-03-14 08:58:18 +00:00
Jarek Kobus
8709ab5ee5 QmlJSEditor/QmlDesigner: Use QtConcurrent invocation for async run
Change-Id: Ic3ad1bb4e2d473f6d5134d7e1eebef020bffee0d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-03-14 08:47:39 +00:00
Jarek Kobus
0bec769b69 QmlJS: Use QtConcurrent invocation for async run
Add ModelManagerInterface::importScan() overload to avoid
instantiating dummy QPromise arg on caller side.

Change-Id: Idf836d30b2167d8840cc4e7ac6f95377c9d5622a
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-03-14 08:47:26 +00:00
Eike Ziller
9eb218aee7 Examples: Use "install" path as fallback
If neither relative nor install path of the example files exist.
This makes the error message that the file is not found more sensible.

Change-Id: I1a7d2acdb4017cdaac97af35d9d35b70c06323a6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-03-14 08:22:21 +00:00
Leena Miettinen
81bc007ddd Doc: Describe version control system preferences
Task-number: QTCREATORBUG-28721
Change-Id: Ib4d1899885012af5eac176fd53e5536f69a2689b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-03-14 07:29:06 +00:00
David Schulz
1811c31490 Python: add interpreter selector to the python project wizard
Change-Id: I7ea1df34fa0096a84a0d611b401f991508c826c1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-03-14 05:44:46 +00:00