Commit Graph

62421 Commits

Author SHA1 Message Date
Eike Ziller
1d600101ee CMake: Apply build directory change on editingFinished
Otherwise every time a character is typed, a dialog pops up, and that
dialog is closed without triggering a cmake run, the value is reset.

Add that behavior optionally to StringAspect.

Change-Id: I6831d1622f08acae6df43d4ceb2bf7367c96a747
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-23 12:05:45 +00:00
David Schulz
e13c2b7403 MimeDatabase: add FilePath convenience function
Change-Id: I59c825490b3b5c49f3c177584ea4cc885c4f920b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 12:03:28 +00:00
David Schulz
b6367b6359 Core: use FilePaths to notify files changed internally
Change-Id: I2fce65ad340f18292fc0286233e78aaf769a130d
Reviewed-by: hjk <hjk@qt.io>
2021-06-23 12:03:10 +00:00
hjk
1955c82d5c Debugger: Register "Reload Debugging Helper" action
This allows assigning shortcuts via Tools->Options, Environment,
Keyboard Shortcuts

Fixes: QTCREATORBUG-25900
Change-Id: I6dfa6b0f3ff12ad971444b2d3adb427c8acf783c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 11:48:03 +00:00
hjk
10af72100d Core: Update contact from freenode to libera.chat
Change-Id: Ia5dff84029dd7011ddc370e1493d02bafd41b9e2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-06-23 11:45:07 +00:00
Knud Dollereder
a31261fa14 Fix license header of the eventlist plugin
Change-Id: Ib8f966557a69ded0f345478e2b003b90f76fb7d5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-06-23 10:11:49 +00:00
hjk
c12e48ea36 ProjectExplorer: Allow gcc autodetection on docker devices
This uses a separate branch for the remote detection and leaves the
local development host path untouched.

Ideally the code should be identical, but currently the environment
handling on remote devices is not on par with the local cases, yet
good enough to find normal gcc installations.

Change-Id: I6762299d8ddfdf2aceb0d57cc77ab71fcc83788b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-06-23 08:51:24 +00:00
Mahmoud Badri
95a3ce7e25 QmlDesigner: Add assets to navigator in 1 transaction
...so only 1 undo step is created when dragging multiple assets to
navigator.

Change-Id: Ifa812eada5ce56a51e164d80864c3826f9875caf
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-06-23 08:49:22 +00:00
Mahmoud Badri
95e82882ef QmlDesigner: Fix showing assets on first add to a project
Fixes: QDS-4599
Change-Id: Idf2ec32adc490d9dbfc8c3ddc3b43cbf965d3b76
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-06-23 08:43:18 +00:00
hjk
430e81facd All: Replace most SynchronousProcess by QtcProcess
Change-Id: I0bf22fef2cd4a7297ef5a1e9aa9c3e2b9348ba42
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 07:55:31 +00:00
hjk
8ac67dd1b7 QMake: Use local paths in interfacing ProFileReader
There are some internal hard asserts on that.

Change-Id: I93bbdff0c9625d42d5f9da3f12219ad90c478d5d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 06:52:34 +00:00
hjk
953ea730b8 Utils: Merge QtcProcess and SynchronousProcess
Keep SynchronousProcess as type alias for a transition period.

Change-Id: I2540b6cecc17eb46f40ed57d27589011693728f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 06:31:57 +00:00
David Schulz
6902ddc535 Utils: add FilePath::isWritableFile
Change-Id: Ic6ced87fcee92deadf5a117ea7e987f1c877f83a
Reviewed-by: hjk <hjk@qt.io>
2021-06-23 06:21:46 +00:00
hjk
8e40db5580 Python: Fix setting current interpreter
There was a vicious cycle started when loading a runconfig pointing
to an interpreter with an id that was not present in the combobox.

Amends 9decfcb151.

Change-Id: I77595795eb825bde55919c8d8dd632f3bf397578
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-23 05:59:59 +00:00
David Schulz
ddf323b136 LanguageClient: remove unused document check
Amends 439bb9c4ae

Change-Id: I783b5f099ffdce2a714f1007e7cc50cda6e211a0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-23 05:17:42 +00:00
Cristian Adam
a72494182b QNX: Do not set application arguments to pdebug
This way one can give application arguments to the application to be
debugged on QNX.

pdebug doesn't need the application arguments to be forwarded.

Change-Id: I76d1bf0dcd9c8fd085245142239e427d9dcb711e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 16:30:21 +00:00
Henning Gruendl
f29591aa4a QmlDesigner: Fix splashscreen dof effect
* Remove random character

Change-Id: I88a8046df6994b1db520e2da0ba89641b1b59365
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-06-22 14:12:32 +00:00
Henning Gruendl
66cd1a41c9 QmlDesigner: PropertyEditor redesign
* Add responsive resizing for property editor width
* Adapt custom component templates
* Fix custom component template generation if no properties defined
* Adapt Animation specifics and sections
* Adapt HelperWidgets specifics and sections
* Update ColorEditor and its components
* Remove SimpleColorPalette and its components
* Add ColorPaletteSingleton
* Implement eye dropper for ColorEditor
* Add TextExtrasSection and FontExtrasSection
* Move Component section to a new file
* Remove Advanced tab make its content a section
* Redesign TabBar and TabButton
* Make QtQuick.Controls 2 specifics part of QtCreator repository for now
* Update import versions
* Add new constants
* Update icon font
* Fix/update StudioControls and HelperWidgets
* Fix a few undefined warnings

Task-number: QDS-4582
Task-number: QDS-4562
Task-number: QDS-4555
Task-number: QDS-4554
Task-number: QDS-4553
Task-number: QDS-4299
Task-number: QDS-4296
Task-number: QDS-3769
Change-Id: Ia9677fd97f26e0e31a45da7a4136db1c9e1a5bf2
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2021-06-22 14:08:30 +00:00
hjk
32895873e4 Utils: Move remaining SynchrounousProcess functionality
To QtcProcess, as penultimate step to fully merge the two.

Change-Id: Iaab3bc3e50165f732838335bd185632f33a97900
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 13:12:04 +00:00
Jarek Kobus
5b0889777a Add a test for a crash in ModelManagerInterface
Task-number: QTCREATORBUG-25350
Change-Id: I4ea31e7936cc77dcd8f3fc494b5ecbd83858a766
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 12:42:53 +00:00
Christian Stenger
0e57baf784 Docker: Raise number of iterations when starting container
On Windows this call takes way longer to write to the cidfile.
Beside this, read only from file if it could be opened to
silence some Qt internal warnings.

Change-Id: Iec5f631aaf871995c1903289d7a0a24abc2f8e05
Reviewed-by: hjk <hjk@qt.io>
2021-06-22 12:07:20 +00:00
Alessandro Portale
a56ce4e450 Tracing: Add qml, register types via qt_add_qml_module
Use the CMake-based qml API to create the "QtCreator.Tracing" module.
This uses qt_add_qml_module, which was introduced with Qt 6.2.

For Qt 6.1 and below, everything compiles and runs like before this
change.

Change-Id: I4d63f9f724d0628cfaab9d1164c0d575f15d15aa
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-06-22 11:58:05 +00:00
David Schulz
693d54a069 Editor: check highlighter for comment chars before auto fold
The KSyntaxHighlighter Definitions provide single and multiline comment
markers. So check against those when trying to automatically fold the
first license header instead of assuming that '#' and "/*" are comment
markers.

Task-number: QTCREATORBUG-25882
Change-Id: I3a84cfc45445caad3b40feb996cfb781a5fb3190
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 11:52:52 +00:00
Knud Dollereder
1a402984da Make the eventlisplugin a part of the qmldesigner plugin
The eventlistplugin enables the user to create custom events (QDS-1760).
It provides a dialog to create and remove a custom event or modify its
properties (id, description, shortcut) and a dialog to connect an
event to one of the flowsignals in order to trigger a transition or
a state change.

Task-number: QDS-4300
Change-Id: Ifffa81650d4898b34a65d7901bcb0df95cc397af
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-06-22 11:36:32 +00:00
hjk
c721242be8 Docker: Automatically remove the container when it exits
Change-Id: I167dfadc79e892807f47332f79f2a5226ffdbe1a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 10:34:27 +00:00
Eike Ziller
4290c26414 CMake build: Force optimization of CPlusPlus lib
Even in the debug build, as done for the qmake build system. This is for
performance optimization of this critical part for C++ parsing even in
debug / developer builds.

Change-Id: I9552ba9fc44e213f2df1d2d2a64a126af3603fd1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 10:10:14 +00:00
hjk
98b9c36270 Autotest: Drop one use of Runnable::device
Change-Id: I9830af1a5a558d9df64aff2a9e12a803720f2ab7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 09:53:08 +00:00
Tuomo Pelkonen
69e18d7917 Qmldesigner : Fix crash when component is added while editing inline delegate
This is only fixing the crash but does not adding the import

Task-number: QDS-4602
Change-Id: Iacb449d5342fcfdd5daf21abcec668569380ddba
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2021-06-22 09:41:08 +00:00
The Qt Project
7dd3521d77 Merge "Merge remote-tracking branch 'origin/4.15'" 2021-06-22 09:23:00 +00:00
hjk
60ab92ec1b CMake: Use line based QtcProcess callbacks in CMakeProcess
This also fixes a potential issue where contents in the local
'rest' strings outlive the process and get part of the next run.

Change-Id: Ia9272bff80213084e430436d677183b4faabd250
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 08:57:42 +00:00
hjk
c0fe038f93 Utils: Simplify FilePath::toFileInfo().lastModified() calls
It's the same as FilePath::lastModified locally, and toFileInfo
doesn't work remotely. So it's overall at least not worse.

Change-Id: Ice8d80dcfd01dc38edc1dce2b53e1b5e6274380f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-06-22 08:57:28 +00:00
Miikka Heikkinen
193f485be2 QmlDesigner: Fix unused variable warnings
Change-Id: I1616452753685bbd57eec8fc6e1c9934c63fef0c
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-06-22 08:54:41 +00:00
Christian Kandeler
d6d2d18373 ClangdClient: Consolidate the job counter variables
We need only one of these.

Change-Id: Icb50890981fa1465e091abb42a52afc1b810fbf0
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-22 08:12:22 +00:00
hjk
76cf6ce983 Utils: Add a QtcProcess flag to keep stdin open
Needed to run e.g. gdb on-device.

Change-Id: I5a98df575478f18adf1540ced44f6808bdba0b76
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 07:48:36 +00:00
hjk
6acc10a8bd Debugger: Simplify one process error check
Change-Id: Icee7c6099cf958faf41abf4172752ff5cdc81fcf
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-22 07:43:42 +00:00
Eike Ziller
90018718b0 Merge remote-tracking branch 'origin/4.15'
Change-Id: I70bfc8c68794d27a97e58a174187762fba872142
2021-06-22 09:19:03 +02:00
hjk
1769dbc17f ProjectExplorer: Use QtcProcess inside DesktopDeviceProcess
Change-Id: I0cc4b01d073699f6a8422addc3aafa24cca888c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-22 07:18:15 +00:00
Eike Ziller
6261e9917f Add zoom buttons and use editor font in build system output
in Projects mode.

Change-Id: I4adee900651192c83de5b3a851c1766f3cb35200
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 07:12:27 +00:00
Eike Ziller
c70d4ae243 Add filter input to build system output
in Projects mode.

Change-Id: I69f40d38606b724ba07833141ce9f2f60239e0e7
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 07:12:17 +00:00
Eike Ziller
f3997c565e Add clear button to build system output
in Projects mode.

Change-Id: I7ab5b460228f6c8a2c68ece87ccfbdef3608bd9c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 07:11:56 +00:00
Eike Ziller
d42953160b Fix build in clangd tests
Amends 40181057cd

Complained that the Q_DECLARE_METATYPE comes too late.

Change-Id: Id5dd355fadcb4a6790d4c74dd1c637e0b1569aa4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-06-22 07:02:53 +00:00
hjk
325773b5f6 Debugger: Introduce a GdbEngine::usesOutputCollector helper
Change-Id: Ia148baeb602c8794d0b5075afd4259f1529d727f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 06:28:03 +00:00
hjk
3ead72787e Qmake: Use FilePath for QmakeMakeStep::m_makeFileToCheck
Change-Id: Ib876ad2068c477d1e482479ce5ce2af81ec79961
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-06-22 06:15:30 +00:00
David Schulz
6af287fa2d Docker: fix is<Writable/Readable>Directory
Change-Id: I63093a1aeb3bc2b87592f93900f26b44305b5e85
Reviewed-by: hjk <hjk@qt.io>
2021-06-22 04:54:30 +00:00
hjk
b7096f1935 VcsBase: Remove unused VcsBaseClientImpl::commandOutputFromLocal8Bit()
Change-Id: I5300934f12bd06648bcdab08af4cae6dd61c2e70
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-06-22 02:15:53 +00:00
hjk
6d688f3199 CMake: Display cmake version on the cmake settings page
Mostly for informational purposes. Helpful e.g. to check whether
an auto-detected cmake binary from a docker device matches
expectations.

Change-Id: I546b0ab6edc240cc779bbf0560e00165cb524fcb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-21 16:21:47 +00:00
Jarek Kobus
7762cc745c Make ModelManagerInterface::instance() a bit safer
Currently, in d'tor of ModelManagerInterface, when joinAllThreads()
has finished, we were setting the g_instance to nullptr. However,
just after the joinAllThreads() has finished and before setting
the g_instance to nullptr some other thread could still add a
new future and this thread could potentially still assume that
instance() will return valid pointer.

The fix is to make joinAllThreads() and setting the g_instance to
nullptr in an atomic way. We ensure, that when there are still
pending futures, we don't clear the instance, but call joinAllThreads()
again for them.

The implementation is similar to what we do in test_joinAllThreads().

Change-Id: I99dc341228aee710a958a0fbc6c5ec1fbe132e7f
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2021-06-21 15:11:06 +00:00
Michael Winkelmann
be33e67fc5 AnnotationEditor: Merge dialogs
Change-Id: Ibabd7d0d328af8cae8a4ced6747db52b33274bf0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2021-06-21 13:41:55 +00:00
Christian Stenger
019aac5164 PE: Silence soft assert of base class
Change-Id: Ia26845356fb8f7374ac6122c4089e460f026f434
Reviewed-by: hjk <hjk@qt.io>
2021-06-21 13:32:19 +00:00
Christian Kandeler
40181057cd ClangCodeModel: Use clangd for local renaming
Change-Id: I1536265a8d46c9840e722bdfcb8638906d3f45cf
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-06-21 13:00:40 +00:00