aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Python: prefer python3 from path as default interpreterDavid Schulz2021-12-101-1/+3
| | | | | | Change-Id: Ic53fc19f59da29d55c8f59385afc74a2524d6e49 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Don't squeeze device combobox too muchAlessandro Portale2021-12-091-1/+3
| | | | | | | | | | | | Respect the preferred width of DeviceKitAspectWidget's device combobox. That prevents the combobox to be squeexed together. However, reduce the preferred minimum content length to avoid too wide stretching of the combobox for the Kit Page. Fixes: QTCREATORBUG-26707 Change-Id: I87d32d3ebbc559351db782eb1a9b1f248616c688 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Sqlite: Introduce BindParameterCount template parameterMarco Bubke2021-12-0910-203/+177
| | | | | | | | | | | The BindParameterCount is checked at compile time and then again for the construction of the statement. So we provide an early error instead of an some error later or even stranger behavior. Change-Id: I860ca1f78645c222ae1accf5c7a469c77befc3bd 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>
* Sqlite: Cleanup exceptionsMarco Bubke2021-12-094-182/+87
| | | | | | | | | | There are now two base exceptions. Exception and ExceptionWithMessage. We very often don't use the extra message. So don't pay for what you don't use. Otherwise it is replacing code with using statements. Change-Id: I213cf1f02718f6d3b2aa0e2a64626c9fc5c7c917 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Synchronize without updating exportsMarco Bubke2021-12-091-13/+50
| | | | | | | | | | | | If we only update the qml file we don't have to update the exports from the qmldir file. So if ChangeLevel::ExcludeExportedTypes is set we don't touch the exports for that type. Task-number: QDS-5537 Change-Id: I247228076b3f7ac7f6334d10011b408d6406df07 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* TextEditor: correctly initialize automatic proposal timeoutDavid Schulz2021-12-091-1/+1
| | | | | Change-Id: I53db54b51361ce3389bb25c420880a117ede7c2d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* macOS: Fix requesting missing permissionsEike Ziller2021-12-091-0/+14
| | | | | | | | | | | The Bluetooth key changed. Keep the old one for compatibility. Keys for requesting access to various folders on disk were added in macOS 10.15. Fixes: QTCREATORBUG-26666 Change-Id: Ieb5686fe129f795319132a36269bc34bc07a13a4 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Enable smooth resizing of viewsMahmoud Badri2021-12-081-0/+1
| | | | | | | | | | | | Enable a docking widgets param that updates views sizes while dragging the splitters between views. Change-Id: If4fa0f8a3d4601758a2a3be0f81e306104379ecc Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: ConnectionEditor hide readonlyHenning Gruendl2021-12-083-18/+31
| | | | | | | | | | Hide readonly properties in the ConnectionEditors target item property ComboBox. Task-number: QDS-5718 Change-Id: Idee217714d460a0a59954faf3c51641648e0657b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Sqlite: Fix insertUpdateDeleteMarco Bubke2021-12-082-15/+61
| | | | | | | | | | | | Like you can read in https://www.sqlite.org/isolation.html after an update they same value can be show up for an iterator advancement. This would be lead to an delete. So the last value for update is saved and then compared in the delete method. If they are equal the delete is skipped. Change-Id: Ic0aa6619f6a4a520eac77be4e5a83cbe533d102d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Sqlite: Disable auto moc and uic because there are no QObjectsMarco Bubke2021-12-081-0/+1
| | | | | | | Change-Id: Ia96f99a38ceaffd233f5248db2e2b0911b1a4342 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* QmlDesigner: Make the member of BasicId privateMarco Bubke2021-12-082-8/+9
| | | | | | | | | | | | | | | This prevents that it is changed by accident. It should be anyway not accessed outside of tests and the storage. The reinterpret cast is defined behavior. It would be nice to make the constructor private too but it is used widely in the tests. Change-Id: Ib0e8393cc950a651138c1e87c1b6a7b3e5a836f2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Fix broken algorithm for table without rowidMarco Bubke2021-12-081-1/+0
| | | | | | | | | | It seem not to work for tables without rowids. We have to research if it a Sqlite bug or more propable a misuse of our side. Change-Id: Ie1e2fdba5f71595f24cad79125c37db0ec9715c3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Cleanup the id castingMarco Bubke2021-12-082-50/+40
| | | | | | | | | The ids were sometimes casted, sometimes copied to integer values. Now the cast is moved to an extra function. Change-Id: I3dcdbde05461f2fca700cc9020758738266d5fd2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Synchronize ProjectData to the StorageMarco Bubke2021-12-086-12/+165
| | | | | | | | Task-number: QDS-5644 Change-Id: Icede506974e88dd64fc866b65f4fa9d64a05aea0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlDesigner: Improve project storage updateMarco Bubke2021-12-085-74/+311
| | | | | | Task-number: QDS-4920 Change-Id: If5a839a6862bab50fe3a3e049cb1214f04eeca1a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix connection editor functionsHenning Gruendl2021-12-081-1/+4
| | | | | | | | | Fix the connection editor not picking up all the slots of a model node due to setting a wrong expression in the QmlJS::Document. Change-Id: I2d28e1e779c5293991397ebc2a061c35234d9cae Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* LanguageClient: fix crash on completion assist cancelDavid Schulz2021-12-081-2/+4
| | | | | | | | The Client might be already deleted when the text editor codeassist calls cancel on the processor. Change-Id: I6b0b484a086456ed9d0543f530aea0fae32c523a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Find: fix crash on search in current file without fileDavid Schulz2021-12-081-4/+2
| | | | | | | | The old document is already deleted after closing the last editor. Checking the document before updating the ui prevents it in that case. Change-Id: I7e65fd1203b6e843ae6dc93d2c304974d5b48a69 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlDesigner: Do not offer imports that end with '.impl'Thomas Hartmann2021-12-081-1/+2
| | | | | | | Task-number: QDS-5681 Change-Id: I8a836c47b4468684c4fe65c1f1691517a35e98e2 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Register image formats supported by QImageReader and hdrKnud Dollereder2021-12-081-1/+6
| | | | | | | | | | | | | The list of supported image file formats of the asset loader was missing an entry for the jpeg extension. This is now fixed by generating this list out from the result of QImageReader::supportedFormats with the addition of the .hdr format. Fixes: QDS-5713 Change-Id: I65ccbe4c02e1b4eb725b6bb14d154bbfddf8fa9c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: If widgetApp is specified for project, force it in puppetMiikka Heikkinen2021-12-081-1/+6
| | | | | | | | | Force QApplication use in puppet if widgetApp is set to true in the project. Task-number: QDS-5686 Change-Id: Id1be1f1e6b7239015c4c33f2e3866f78b0f878a7 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlProjectManager: Add widgetApp qml project propertyMiikka Heikkinen2021-12-085-0/+21
| | | | | | | | | | | | | | | | Widget was the default apptype in Qt5, but in Qt6 the default was changed to gui, so projects with qml modules that depend on widgets can no longer be launched. Notable example of this is QtCharts. Added "widgetApp" qml project property to allow users to specify if they want widget or gui based application. Task-number: QDS-5686 Change-Id: If0787421c79d4ba24a0f8513c8538126bcf29b4e Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QDS: shrink the right margin of the project view for small sized dialogSamuel Ghinet2021-12-082-2/+2
| | | | | | | | | | | | | This also allows a bit smaller minimum width for the dialog. Also, did a bit of cleanup. Task-number: QDS-5500 Change-Id: I3660190ac0a73dd1da1c7d6f8ee76660b1fba6be Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Change QLabel from StringAspect to ElidingLabelSergey Levin2021-12-083-3/+16
| | | | | | | | | ElidingLabel with elided mode set other than Qt::ElideNone will not show in case QFormLayout has QFormLayout::ExpandingFieldsGrow field growth policy Change-Id: I26db57fbeb2c921e054cf7dc18229ebddcb04530 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* LanguageClient: More verbose logging when clearing token dataChristian Kandeler2021-12-081-1/+14
| | | | | | Change-Id: I3f9883858fa2f23dff00cda9f556f0f4bbff127a Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* GTest: do not change arguments order of testRunnerPetar Perisin2021-12-081-4/+4
| | | | | | | | | transforming list of args to set can change order of arguments as well as count, which can make application unable to run Change-Id: Ib8164e0b7661511f738bdc3b21e74fbaaa6a5252 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* clangd: Assert on generating tooltip for deleted clientDavid Schulz2021-12-071-2/+6
| | | | | | | | | | Text marks for diagnostics should be deleted when the client dies. If they somehow survive assert when creating a tooltip for those text marks. Task-number: QTCREATORBUG-26585 Change-Id: Iaebf0d2aba66d2a6c250f8dad7856ef03b1dcacd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* McuSupport: fix cmake var mapping for cypress flash toolChristiaan Janssen2021-12-071-1/+1
| | | | | | | Task-number: UL-5094 Change-Id: Ib87eb39d54c1677ed4c130054d0a9f01ca6a8ec4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ClangCodeModel: Prevent duplicate "/Tx" optionsChristian Kandeler2021-12-071-1/+9
| | | | | | | | | Those trigger code model warnings. Fixes: QTCREATORBUG-26664 Change-Id: I0ed6b9edeeb94c8597b30c0be514d2b34dbedc49 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* DiffEditor: Assert that we are operating on non-null documentsJarek Kobus2021-12-071-0/+2
| | | | | | | Task-number: QTCREATORBUG-26594 Change-Id: I4331c457a6360682229dbbbfd8ac3d50b44b8ead Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QbsProjectManager: Consider "c++23" for cpp.cxxLanguageVersionChristian Kandeler2021-12-061-3/+8
| | | | | | Fixes: QTCREATORBUG-26663 Change-Id: Ie22ce49cb724c434121c3d4b62b4580139a4706b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: Fix compile with Qt 5Christian Stenger2021-12-062-11/+12
| | | | | | | | | Amends 8d08196a2118433. Change-Id: I8f67ee0549c621d168bacb57cd4ce0ad226cf852 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDesigner: Fix crashThomas Hartmann2021-12-061-4/+6
| | | | | | Task-number: QDS-5535 Change-Id: I7e568efb39637faf8cd17255440e06d98b768f1e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CppEditor: Run the built-in "local uses" code even with clangd enabledChristian Kandeler2021-12-062-11/+11
| | | | | | | | | | | | | The built-in code model treats the "local uses" result state as an indicator of whether to provide quickfix operations. It's unclear what kind of side effects would result from removing this condition, so we always run the built-in variant of the "local uses" code, and only refrain from actually updating the selections in the clangd case. Amends 0c53c2daef. Fixes: QTCREATORBUG-26649 Change-Id: I9e1a3e3ad08bf13bcb35efe996a61aa34302b166 Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix crash when removing built-in snippetsEike Ziller2021-12-062-21/+27
| | | | | | | | | | | | | | Snippets collection managed the snippets with persistent iterators to the "end" of the active snippets. Qt 5's QList was nicely updating iterators even on non-const operations, but that has changed in Qt 6. Don't use iterators, simply work with the count of active items. Fixes: QTCREATORBUG-26648 Task-number: QTCREATORBUG-24098 Change-Id: Icc13274daf0e87d0562d80d7bc763c863d5da075 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
* TextEditor: fix delete(Start/End)OfWord without camelcaseDavid Schulz2021-12-061-2/+2
| | | | | | Fixes: QTCREATORBUG-26646 Change-Id: I0f9a4ad56ef96632fbf5de490f089bf7ff3b12ee Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: raise the timeout for the msvc detectionDavid Schulz2021-12-061-1/+1
| | | | | | | | | | | Calling the msvc vars bat can take a considerable amount of time on a loaded system. Since we cache the environment modifications from previous runs it's okay to raise the bar here. Change-Id: Icda91d6682396e6f73946ccd379b88631590536c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* mcusupport: ASM_MASM language added to project in CMakeLists templateDawid Śliwa2021-12-051-1/+1
| | | | | | | | | | After modification of how fontcompiler is linking font binaries into executale CMake project needs to have Microsoft Assembler language option added (ASM_MASM). Fixes: UL-5059 Change-Id: I593ca6230e8fbaf70a4061a12b6606843ab9bd46 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CppEditor: Fix codemodel highlighting for QNXCristian Adam2021-12-033-3/+25
| | | | | | | | | The code model will get the necessary bits so that it can successfully parse the QNX code. Fixes: QTCREATORBUG-23483 Change-Id: Id9488f644ace23952edf7a7cb5da7ca138182134 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* LanguageClient: fix textDocument/didChangeJoni Poikelin2021-12-031-1/+1
| | | | | | | Fixes: QTCREATORBUG-26651 Change-Id: I640558bc321112f8dd568a4cefc306eb209af7b0 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: Fix states context menu not working in certain areasMahmoud Badri2021-12-031-6/+1
| | | | | | | | | | | | | | | | | | | | Fixed 2 issues with the context menu: - Left clicking the area to the right of the states doesn't close the context menu. The issues seems to be a bug in the ListView, solved by limiting the width of the ListView to the states area width. - Clicking (left or right) below the states area doesn't work. This is because the height of the states view was fixed to the height needed. Solved by not restricting the view height and do necessary changes. Also some cleanups and removing unnecessary stuff. Fixes: QDS-5324 Change-Id: Ic1e3f5d0776bb4770a3276c93ad1aee7a0049388 Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Android: Use native separators in installation step uiKai Köhne2021-12-031-1/+2
| | | | | | | Change-Id: I724f91d8387cfd3138faa847d06674707d4d0f10 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* QmlDesigner: Remove audio wrapperHenning Gruendl2021-12-026-61/+0
| | | | | | | | | | Remove the custom audio convenience type which should mimic the QML Video convenience type only for audio. The custom convenience wrapper is not working, because MediaPlayer is a QObject and can't have children. Change-Id: Ic8d06e6397d8b7bb3bc531d47c1cb0b92142a742 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Add VideoOutputHenning Gruendl2021-12-021-0/+20
| | | | | | | | | | * Add VideoOutput * Add ComboBoxes to MediaPlayer specifics for selecting audio and video output ids Change-Id: I52ea764b1301492754676a97d8d122275ba6dd81 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Add support for video assetsHenning Gruendl2021-12-0211-2/+27
| | | | | | | | | * Add *.mp3 as sound asset * Add *.mp4 as video asset Change-Id: If96bab257abf9d0264e374b5f1f92b807b5349a2 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Android: Fix use of keytool on WindowsKai Köhne2021-12-021-1/+1
| | | | | | Fixes: QTCREATORBUG-26647 Change-Id: I34fd2b4304480186d1a05e2c9101b2cfbd1e8e47 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* TextEditor: always replace cursorDavid Schulz2021-12-021-3/+3
| | | | | | | | | | Otherwise some internal data might be outdated. For example inserting text resets the QTextCursorPrivate::x which is used to calculate positions when moving the cursor up or down. Fixes: QTCREATORBUG-26635 Change-Id: I9fee7436a3648f9d3eab7b30f8a09a134c5be356 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Prevent litehtml from downloading googletest, take 2Eike Ziller2021-12-021-1/+1
| | | | | | | | | | Put BUILD_TESTING into the cache, so it doesn't get overridden by the default option in a clean build via policy CMP0077 Fixes: QTCREATORBUG-26626 Change-Id: I8b90286c82a60ba30eb9b036dac8fca3be82cc2e Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Youri Westerman <tetracon@gmail.com>
* QmlJsCheck: Allow new connection syntax in ConnectionsThomas Hartmann2021-12-021-1/+5
| | | | | | | Change-Id: Ibbef3f8e8230d727d3183fa1615e0f38373a3c7f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>