Commit Graph

67787 Commits

Author SHA1 Message Date
Mahmoud Badri
f820164b1a QmlDesigner: Use a different color for unimported items section
Fixes: QDS-3873
Change-Id: Ic713353d8fe5c1bfb4ff11f1224294ecde182fa7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-16 09:16:21 +00:00
Thomas Hartmann
23477f633b QmlDesigner: Use theme colors for easing curve editor
Change-Id: I38969d88caf6ad536c19fbf0998e19230559ceb1
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-16 09:11:40 +00:00
Henning Gruendl
db6ad528bb QmlDesigner: Implement new control design
* Update creator theme files and related enum
* Remove unused ActionIndicator functionality
* Update all controls (Colors, Positions, Sizes)
* Add global hover state and cleanup all other states
* Add global hover functionality to ButtonRow
* Add missing states
* Add new MenuItemWithIcon
* Add checkers.png for StateDelegate preview background
* Update copyright headers
* Replace AnchorButtons spacing
* Make ADS title bar buttons and tab bar buttons themeable
* Fix replace CSS colors to allow specifing alpha
* Fix replace CSS overwritting consecutive variables
* Make navigator icons and other elements themeable
* Make connection view themeable
* Make item library themeable
* Fix item library import path
* Update all HelperWidgets
* Fix GradientDialogPopup

Task-number: QDS-3768
Change-Id: I28a5fed178c95d098db052b8c2eabaa083d37b81
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-16 09:11:38 +00:00
Eike Ziller
05701491a1 FakeVim: Fix compilation with Qt 6
By using recursive QHash instead of recursive QMap, which has issues
compiling under some circumstances with MSVC.

Change-Id: I545a5eb9002f247a5015e7ea5e59cf74895b1e21
Reviewed-by: hjk <hjk@qt.io>
2021-03-16 08:50:40 +00:00
Vikas Pachdha
35d7bc49f0 iOS: Add relay server to route gdb data via service connection
Communication using sockets can no longer be done for gdb server,
though a TCP socket opened using USB MUX still operates normally.
I.e the QML debug server communication remains as is but GDB
server data has to be routed via the secure service connection

Task-number: QTCREATORBUG-24672
Change-Id: I64631d66dc845dd2d7a20c771534ae17e183a9b8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 08:44:45 +00:00
Vikas Pachdha
b152a7287c iOS: Create single instance of mobile device library wrapper
Task-number: QTCREATORBUG-24672
Change-Id: I30f0022735409dbbd03b6bdadf7138ff6294b131
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 08:44:39 +00:00
Vikas Pachdha
4d1e3276fc iOS: Fix iOS 14 application launch
Use service connection to receive and send gdb commands. Communication
via socket can no longer be done. Apple introduced this change to plug
the security issue when debug session was done over wifi

Task-number: QTCREATORBUG-24672
Change-Id: I7ad08242c3b13a2707b6320ee5bc1e18b5f1173d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 08:44:33 +00:00
Vikas Pachdha
8400a3d6e3 iOS: Refactor the ios tool
Move classes into logical compilation units

Task-number: QTCREATORBUG-24672
Change-Id: Ia7c0866fa16dca0df05fc70418f8142ff74a5d59
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 08:44:23 +00:00
hjk
2756794b4f Utils: Drop deprecated Utils::FilePath::{setFilePath,filePath}
Change-Id: I730dfb716f744bbcb62dedf611e93c0d2d358247
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 08:12:34 +00:00
hjk
06a754cc74 Debugger: Add more information about the debugee when debugging
Fixes: QTCREATORBUG-25159
Change-Id: Ic462c8bb4d9f4f7163dbb9fcc13adce4c7172564
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2021-03-16 08:12:26 +00:00
Christian Stenger
da53e3f994 Squish: Allow automatically created kits
Linking to Qt makes the respective configured kits become
auto detected and these have a fixed Qt.
The Qt version combo box for these kits is disabled on the
Kits page, so be more relaxed when checking kits page.

Change-Id: Ieb7e22b47bd5e5c5603e85dc0ddf2421427e85d6
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2021-03-16 07:11:26 +00:00
Christian Stenger
412b661672 Squish: Correct hitting "Do Not Show Again"
Original implementation just made it work for the common use case.
If the order or the selected buttons differed from the common case
this failed.
Beside this it is later on more easily to extend.

Change-Id: I581b0af2579fa728a81b9946028ade5559f17fd8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2021-03-16 07:10:53 +00:00
hjk
ef25cfac59 Utils: Do not add extra space for user display of command lines
... that do not have parameters.

Change-Id: I2ea20267bc18826e4017a356f6bc13f4b0172f3c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-16 03:36:04 +00:00
Thomas Hartmann
92da864a86 QmlDesigner: Replace deprecated color roles in timeline and transition editor
The color roles qmlDesignerBackgroundColorDarkAlternate and
qmlDesignerBackgroundColorDarker are deprecated.

Change-Id: I0c7cabe0eacbcab57a037caa83c338791930420c
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-15 16:55:36 +00:00
Thomas Hartmann
38756f1c7a QmlDesigner: Use Theme::DScontrolBackground instead of BackgroundColorDarkAlternate
The color role qmlDesignerBackgroundColorDarkAlternate is deprecated.

Change-Id: Ic6ab5883c980b83c3d47830ab51b805936007547
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-15 16:55:25 +00:00
Jarek Kobus
3ab93592c3 CppLocatorData: Don't use recursive mutex
Don't use recursive mutex in CppLocatorData class,
as this is more expensive to construct than simple
QMutex. Refactor the code so that every call to
flushPendingDocument() is done with already locked
m_pendingDocumentsMutex. This eliminates the need
for recursive mutex.

Remove unused allIndexItems() method.

Change-Id: Ic7cb45bc3301d83768e69ee52f84ae159cb731a5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-15 16:37:40 +00:00
Eike Ziller
9d9ac537e8 Don't waste horizontal space in Open Documents view
Make sure that the column that we reserve for the X close button is
really just 16 pixels wide.

Fixes: QTCREATORBUG-23894
Change-Id: Idc2755debfc3a6fb898ea3abd2a882249f7820c1
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-03-15 13:57:16 +00:00
Christiaan Janssen
2aead8b3e4 McuSupport: detect fallback lib when desktop kit missing
The library filename has changed in recent versions of the
SDK, which was causing false negatives.

Fixes: QTCREATORBUG-25469
Change-Id: Ie98c75a57efc5384262dbfd17f729b34cdd5f577
Reviewed-by: Erik Verbruggen <erik.verbruggen@me.com>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
2021-03-15 12:10:45 +00:00
Alexandru Croitor
af184fdd4c CMake Wizards: Add Qt 6 specific static qml plugin importing
For Qml / Qt Quick projects to work with static Qt builds, the
application targets need to link to the static Qml plugins, which
is done by calling qt_import_qml_plugins.

Starting with Qt 6.1 and CMake 3.18+ that will be done automatically in
qt_add_application via qt_finalize_executable, as per
c71c48f5125c116f01f615f51f10e4f2877b2b1d

But for Qt 6.0 and lower CMake versions, we need to call
qt_import_qml_plugins manually, thus we include it in the
Qt Quick wizard template so that it works with all Qt 6 versions
and lower CMake versions.

Amends b72c1d11e6.

Task-number: QTCREATORBUG-23574
Change-Id: Id8db3352ecbb8441eda9f5c9638c7ea6ac1fee96
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.15.0-beta1
2021-03-15 08:45:12 +00:00
Mahmoud Badri
5fbef6c060 QmlDesigner: Add all Quick3DAssets under 1 import section
Fixes: QDS-3866
Change-Id: I3aad4aee0d6c388446b459e558d87f68b204de59
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-12 17:00:22 +00:00
Thomas Hartmann
ac24d4357c QmlDesigner: Fix puppet crash
Limit the depth of recursion. There can be cycles.

Task-number: QDS-3877
Change-Id: I10a1c7033b956244308e87aae6897f0040e0bc22
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-03-12 15:51:29 +00:00
Miikka Heikkinen
71c5f9e52b EditorManager: Do not switch mode in response to editor closing
Switching to design mode when in process of closing editor can result
in state where there is no active text editor for a document, which
is required to properly initialize design mode. This happens when
the next editor to be activated targets the same document as the
closed editor, i.e. when the last open document is used in split view.

To prevent design mode initialization crash, we block
changing to design mode in response to editor closing, if the
new editor targets the same document as the closed editor.

Fixes: QDS-3763
Change-Id: I2bd325b805d3e526778f8cdd8e583e87b8c93a24
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-12 14:38:33 +00:00
Johanna Vanhatapio
0d0eb5be24 Doc: Update Info about the 3D Editor view
Fixes: QDS-3844
Change-Id: Ib402fff7525fdf317b925ad55064a97453c254d1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-03-12 14:06:18 +00:00
Leena Miettinen
50b75d29e5 Doc: Fix navigation link target
Change-Id: Ia7dd91c72b81483f92ffdfacfa597847fc6b86f6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-03-12 13:48:23 +00:00
Marco Bubke
da7b83b238 QmlDesigner: Bump multi language database version
Change-Id: Icd9b379c4dfbc09a8f949c86e0354d28f6184bc7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2021-03-11 16:47:18 +00:00
Eike Ziller
e2b0547519 Merge remote-tracking branch 'origin/4.14' into 4.15
Conflicts:
	qtcreator_ide_branding.pri

Change-Id: I9d9beb7b842800ac37bc628695fb01dc91923eb9
2021-03-11 14:00:57 +01:00
Ivan Komissarov
e2112d6831 Update Qbs submodule to the top of 1.18 branch
Change-Id: Icc28aa5ac3c222a3a1bc3c018b59cb4ef73d1f6b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-11 11:20:23 +00:00
Leena Miettinen
8f68cb9e75 Doc: Fix broken navigation link
Change-Id: I188d989380d51d993e00dab3f5ca6fe790e33ef2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-03-11 10:31:16 +00:00
Christian Stenger
2b5f7316ac Tests: Work around problems in execution of dumper tests
On several machines the QDir test interferes in a not yet known
way and makes all following tests fail. Moving it to the end
makes the problem vanish.

Change-Id: Ic8e7fdaaf9581be0cdd5666c7d2f12a2e8ed80ee
Reviewed-by: hjk <hjk@qt.io>
2021-03-11 09:05:04 +00:00
Alessandro Portale
ac5bffc1e4 More bumping of the Copyright Year to 2021
Also for the qmake and qbs based build systems.
Amends: 0af4f5152e

Change-Id: Ifcf1730d7b2b28dd9582d5b3569f50e3b7c91e07
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-11 08:48:12 +00:00
Eike Ziller
8ac091abf8 CMake: Improve layout of "Apply configuration changes" dialog
Show the CMake parameters that would be passed in a mono space font, one
option per line.

Change-Id: I462792736960b33fea669b5b753c89d21cd087fd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-11 07:47:01 +00:00
Christian Stenger
f0004333b2 PE: Fix expectations of LinkSpecs test on Windows
The output parser detects Windows paths on Unix differently which
makes the format differ from the one that is generated on a
Windows host.
Beside this remove BOM from msvcparser again and do not perform
the format check if there is no expected format specified.
Amends 9e4e9924ad.

Change-Id: Icb0d292a8908cdd2f86b13fde6d2d287f3a96dd6
Reviewed-by: hjk <hjk@qt.io>
2021-03-11 07:09:26 +00:00
Eike Ziller
b6164e7b72 Merge remote-tracking branch 'origin/4.14' into 4.15
Conflicts:
	cmake/QtCreatorIDEBranding.cmake

Change-Id: I70c4cc83197f089e5d92303a6d434fe28d63a187
2021-03-10 17:41:34 +01:00
Alessandro Portale
0af4f5152e Bump IDE_COPYRIGHT_YEAR to 2021
Change-Id: Iadb0f2618b02cd9f36366d718d50be7efcb5f679
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-10 16:38:32 +00:00
Alessandro Portale
50c0f0952d QtSupport: Use native dir delimiter in "Link with Qt..." button tooltip
Change-Id: I5b8def5abb16c965e5bec4ddd7b71e11fe4d9e57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-10 13:17:02 +00:00
Eike Ziller
a3b537ad39 CMake build: Disable FakeVim and building with PCH with Qt 6
FakeVim does not compile on MSVC because Qt 6 doesn't like
meta types that are recursive maps with keys that have a custom
operator==.
Building with PCH has different issues on macOS and MSVC.

Change-Id: Id1b9580f7347f1c8facade67fd74532a023af41f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-03-10 10:40:04 +00:00
Cristian Adam
99dd3a0260 CMakeProjectManager: expand variables for Batch Edit
The Batch Edit dialog is offering the ability to use expanded
variables, but these variables were not expanded upon acceptance.

For the CMake command line they were expanded, but there was a
conflict between what the settings dialog as value had and what
CMake returned via file-api.

Change-Id: Ia4a64e99676c43f7b182e059f9051393aa184c19
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-10 10:30:03 +00:00
Cristian Adam
f7d729f0b5 CMakePM: Treat empty build as empty when importing CMake builds
Qt Creator 4.15 with the CMake multi-config support it parses the
correct CMAKE_BUILD_TYPE file-api json export.

With the empty build Qt Creator was giving it a name: Build, which
was not part of the file-api json export.

Fixes: QTCREATORBUG-25387
Change-Id: Id0b5f1077f6473fa5aef09397a8257b253557597
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-10 10:29:55 +00:00
Leena Miettinen
47b569afa6 Doc: Add a separate topic for the States view
Replace occurrences of "item", "object", or "type" with "component"

Task-number: QDS-3771
Change-Id: I92a78c0a714615cd51ada5459a9f4c1722103abd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-10 08:56:44 +00:00
Leena Miettinen
706b9ceedb Doc: Restructure information about Connections View
- Add a topic that summarizes the Connections View tabs
- Hide some technical detail in the instructions
- Make "Adding Connections" a collection topic
- Fix terminology to use "component" instead of "object".
  "item", or "QML type"

Task-number: QDS-3771
Change-Id: I0b0d66cb50d8ecc7dbc812ef57918ffafb64cd8c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-10 08:56:33 +00:00
David Schulz
4b1bb9c0fc CppTools: Fix highlighting angle brackets
Change-Id: Id7ee6a13d34799aba46bd9a8005a925f745cf53a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-03-10 05:10:51 +00:00
Bernhard Beschow
9e4e9924ad ProjectExplorer: Unit-test LinkSpecs of tasks
Change-Id: Idc86c8fcb9a915490e4a67beb7a057672096861f
Reviewed-by: hjk <hjk@qt.io>
2021-03-09 23:25:29 +00:00
Eike Ziller
f176a6f530 Wizards: Fix error message if project name is empty
It showed "The project already exists" instead of "Name is empty".

Probably broke with 8d1a592d16

Fixes: QTCREATORBUG-25398
Change-Id: I0cbe5753d80bc30c93408886668e39278d99c97f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-09 17:23:38 +00:00
Eike Ziller
ed3e2fb8a5 More changelog for 4.15
Change-Id: Ia10c90d6c5ee941087df3deb8cfc1c65b542132a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-03-09 16:52:14 +00:00
Thomas Hartmann
76be73b157 QmlDesigner: Trim state name
States should never have trailing white spaces.

Change-Id: I67dc08e12fa042a237ede3d2d0247e6ea2b55eff
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-09 15:29:25 +00:00
Thomas Hartmann
fd763dd60b QmlDesigner: Return action by id
Change-Id: Id1d15acf513786789c4ea4deaa84672f17fd889b
Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-09 13:34:19 +00:00
Miikka Heikkinen
6deac5593c QmlDesigner: Fix infinite loop on item library resize
If item library width goes to somewhere between 50-100 pixels
(around the width of a single item), QDS gets stuck in infinite loop.
It's unclear what exactly causes this loop, as it seems to be deep
inside QtDeclarative, so worked around it by enforcing 100 pixel
minimum width for item library.

Change-Id: Ib1193cce760098edd0df61177058f134f406101e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2021-03-09 12:33:24 +00:00
Leena Miettinen
857ffe457c Doc: Restructure information about Timeline view
- Add a new topic that describes the view, toolbar buttons,
  keyframe track icons, and context menu commands
- Add a link to a video about using the Timeline view
- Move Curve Editor info to a separate topic
- Move Easing Curve Editor info to a separate topic
- Update information about specifying Timeline Settings
- Update terminology to use "component" instead of "item" or "type"

Task-number: QDS-3771
Change-Id: I768aa171a6de962b65b1bdc7842cdd8d004b1e69
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-09 12:33:20 +00:00
Thomas Hartmann
84800e8113 QmlDesigner: Forward QT_IM_MODULE=qtvirtualkeyboard to puppet
If QT_IM_MODULE=qtvirtualkeyboard is used for the application,
when we should also set it for the puppet.

Task-number: QDS-3859
Change-Id: Id88132cebbb7aeddb3fbb8ff1e8aa5191cc89d15
Reviewed-by: Tuomo Pelkonen <tuomo.pelkonen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-03-09 12:11:37 +00:00
Eike Ziller
834b6c2da1 Merge remote-tracking branch 'origin/4.14' into 4.15
Change-Id: I9b4f24456b94381fb7427d60bd683069edf31360
2021-03-09 12:44:12 +01:00