Commit Graph

67787 Commits

Author SHA1 Message Date
Thomas Hartmann
7f5a67a927 QmlDesigner: Crash fix
Task-number: QDS-1590
Change-Id: Id0457d3eac667601f1e44ec521f9cf9fbe6223f4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-31 14:20:07 +00:00
Thomas Hartmann
0bcc5ea836 QmlDesigner: Crash fix
Task-number: QDS-1590
Change-Id: Ia24ba50864c1f02e3c1aae1168b187022b257d1d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-31 14:19:48 +00:00
Cristian Adam
c535c4dc5d CMake Build: Install qml module dependencies
Change-Id: Id6fd1d14efb6e7b68ffc3f4e3196387cc9417ba0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-31 14:06:54 +00:00
hjk
ac833e7691 Perforce: Move settingspage closer to new standard
Change-Id: Ia69b9f1006763c3c2eb04a3f6a3a9560e874b74e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 13:49:57 +00:00
Eike Ziller
e79d35228a CMake build: Fix sdktool location for standalone build
Avoid the path to libexec inside the Qt Creator bundle if
building sdktool standalone

Change-Id: Id893a523d262b846cbbed7d73fa28751e404102a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-31 13:44:21 +00:00
hjk
f29f219579 Subversion: Make settings page a value member in the plugin pimpl
No need for the indirection anymore.

Change-Id: Ib9ae5a28a02a93cb709be587f833ac2474e7d6cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 13:32:08 +00:00
Christian Stenger
798b2674af Debugger: Fix go to location on interrupt
Avoid checking an invalid QUrl - instead restore
old code of always creating one an verifying this
instead.
Remove the now unused FilePath::isLocal().

Change-Id: I037c43e6fbdb7dc1f8901fc70b581f3c94ab503a
Reviewed-by: hjk <hjk@qt.io>
2020-01-31 13:18:50 +00:00
Cristian Adam
1fac0d49a2 CMake Build: Add include guards for QtCreatorAPI
Commit e8fceb821e re-includes the file,
and things go bad.

Change-Id: Ifad79824f1a64459cd01337656b1a1300f49d06b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-31 12:59:07 +00:00
hjk
04e45d1bd9 Subversion: Move plugin pimpl to .cpp
Change-Id: I457747564bbe0bc71d009d08b27e2375dd4c073f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 12:56:00 +00:00
Thomas Hartmann
1023a1d474 QmlDesigner: Add more zoom levels
Task-number: QDS-1589
Change-Id: Id46be382d7eac600ac0a9843331ef60ec7c1f6f4
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-31 12:54:23 +00:00
hjk
d506a005ac Vcs: Remove some unneded indirections
Change-Id: Ie9d976c06ff424fb106cb344bedb789c9b99e657
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 12:43:06 +00:00
hjk
320958f2f5 Cvs: Remove unneeded indirection to access a settings value
Change-Id: I30d4d87e8ae646ce826e4ffb5081759700c49f36
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 12:37:01 +00:00
hjk
b8fe25db25 Vcs: Merge IVersionControl and VcsBasePlugin hierarchies
They were 1:1 in parallel, with quite a bit of function call
ping-pong inbetween, for code-sharing-by-inheritance. Merge
them by making VcsBasePlugin inherit IVersionControl and
merge the derived classes below.

Size of this patch is hard to avoid as all seven systems have to
move simultaneously. Non-necessary potential follow-up cleanup
have been left out on purpose.

Change-Id: Icb71e4182af3db21069cc637e7ae87ffa3829791
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 12:36:23 +00:00
Miikka Heikkinen
a35a2d6bf3 QmlDesigner: Fix far away gizmo scaling
Changed auto scaler math to use more double precision math to improve
scaling accuracy when camera is zoomed far or gizmo is far from origin.

Change-Id: Ic3020bbf159c0d5d090af9c9b8e8a4aa372d2406
Fixes: QDS-1528
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-01-31 11:48:14 +00:00
David Schulz
b9f4719571 LanguageClient: compress requests from the symbol cache
Change-Id: I58c6863fae6e275073c377558eaba18f7f32b4f2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-31 11:45:02 +00:00
Cristian Adam
820fa993a6 GitHub Workflow: Use github.run_id instead of github.sha
github.sha is the full sha, which is a bit too long.

Change-Id: I36982fc6705adf56358166445c8601e9aac85b6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-31 10:58:55 +00:00
Alessandro Portale
62e2f81caa CMake Build: Add more Qt and Qml components
Runtime dependencies for Qt Quick Designer

Change-Id: I10f652fee464d196cae180e0a322e4f4a96e03ff
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-31 10:51:19 +00:00
Eike Ziller
e8fceb821e CMake build: Make it possible to build sdktool separately
Change-Id: Iedd74be8fbd38b4409ca2a40b09ae03c761476a0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-01-31 09:18:55 +00:00
David Schulz
c032b302ad LanguageClient: outline combo box for editor toolbar
Fixes: QTCREATORBUG-21916
Change-Id: Ia4e1711f0f5e67222e4f5274792820917f4114db
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-31 08:41:26 +00:00
David Schulz
972e5b1668 Core: Warn user on shortcuts that are consumed by the editor
This is an amendment to 587dc52119. Since
this change certain shortcuts wont work in editmode anymore. Adding a
warning in the setting dialog to help find a new one.

Change-Id: I88db4986e5b3c61c88ba625d5fd827c7e5f20cc7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-31 08:41:05 +00:00
Thomas Hartmann
46235fe896 QmlDesigner: Fix crash
If no project is open there is no target.

Change-Id: Idd09348d04386796c8918d96794ca3380b1014ba
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-31 08:30:43 +00:00
hjk
ac9d05013e Core: IVersionControl: Introduce a setTopicCache
More flexible than passing in the constructor.

Change-Id: I7bb5b3fe02682e01ebbce246de547686ff871920
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-31 08:29:35 +00:00
Cristian Adam
f32605fa4a GitHub Actions: Use better naming for build artifacts
The format is now QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z

Change-Id: Ic74526caa767e1143f8c2533674899f6094287d7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 20:37:22 +00:00
Cristian Adam
317369e9dd CMake Build: Install Qt's plugin dependencies
This should fix any dependencies that the Qt plugins might have.

Change-Id: I0e0791d2e33ae1ad84666464f7626072623dee8d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 20:35:52 +00:00
Cristian Adam
b3caf501ce CMake Build: Add Dependencies install target
Change-Id: I17f8d26500a9a75bef64e23c3b64492c1bb929cc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 18:03:28 +00:00
hjk
c3f7ef5340 Several SettingsPages: Code cosmetics
De-Q_OBJECT-ify, remove unnecessary #includes, final-ize, etc.

Change-Id: I461d3e73400dacac90c22e7c84a40e3ea1718b6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-30 15:04:58 +00:00
Denis Shienkov
d5fd6a83d8 Debugger: Improve parsing of SVD file
The previous implementation was done in a hurry and a bit
overcomplicated for maintenance.

Now it is simplified and a common code moved to a separate functions.

Change-Id: I86e9131e08154ec24bb7778c3a7d4c3d6b042751
Reviewed-by: hjk <hjk@qt.io>
2020-01-30 14:31:52 +00:00
Andy Shaw
c50e928e76 Fix progressbar example so that it compiles and related doc
Change-Id: I17423a57cf4e86492462caacd3ba0a9d5d4dd6be
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-01-30 13:22:56 +00:00
Christian Kandeler
8b117bcd86 MessageManager: Allow messages from non-UI threads
This relieves the caller of the burden of dispatching the call to the UI
thread.

Change-Id: Ic6455fb7f393d0e21c7e527c693ebf2441f0c028
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-01-30 12:43:25 +00:00
Christian Kandeler
03801e29ef ProjectExplorer: Add action to enable a kit for all projects
Fixes: QTCREATORBUG-22964
Change-Id: Ife27bae6422043c3cde4e7995947e97a5f1cfd4d
Reviewed-by: hjk <hjk@qt.io>
2020-01-30 11:23:15 +00:00
Thomas Hartmann
045d2458df QmlDesigner: Fix typo
Change-Id: I9313fd3a152978af52fa115dff55bdd6b5dbb4aa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-30 11:21:11 +00:00
Thomas Hartmann
0bd2725187 QmlDesigner: Remove qDebug
Change-Id: Iec23426177d0409a5390a71229f0ae2060cb336e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-30 11:20:59 +00:00
Thomas Hartmann
e6bb98990c QmlDesigner: Add toQmlItemNodeListKeppInvalid()
There is no reason to alter the existing function.

Change-Id: Ic917069a9fa5f3cc2dd362883c59da0dcda7d2ac
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-30 11:20:44 +00:00
hjk
f8ee2d3c40 TextEditor: Move FontSettingsPage more towards new scheme
Mainly re-using the existing pimpl as new widget implementation, and
using the primary storage out of the page (into texteditorsettings).

This one is structutally bit different as there is that second path
(Ctrl+Wheel) to modify font zoom.

Change-Id: I7b85c781c7c53a733b234754beb5bb54664be3fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-01-30 10:14:16 +00:00
hjk
0dadf19c91 Mercurial: Move plugin pimpl to .cpp
And remove a couple of singleton accesses and indirections.

Change-Id: Ib54a0e5c580b5354d2b700de02034cce506d8017
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-30 08:51:24 +00:00
hjk
0f67026794 Cvs: Move plugin pimpl to .cpp
Change-Id: Idacee6b43f34c74eadc551496d4c596536eddde4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-01-30 08:51:08 +00:00
Ville Voutilainen
0f3f85278d Android: make the manifest editor's icon selector's layout more compact
Change-Id: I89c6aba9ebffd02521f0c849f5dcad40245ce5db
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 08:14:43 +00:00
Thomas Hartmann
f9b1034c14 QmlDesigner: Implement actions for FlowEditor
Change-Id: I0cc61714228a579eb696eb8e4e00a4958646fe78
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:20:54 +00:00
Thomas Hartmann
97a3337203 QmlDesigner: Delete transtion if attached action is deleted
Change-Id: Ie4deda38a7b7e5eab954da9286c72ddd4d0638a9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:17:42 +00:00
Thomas Hartmann
d0aeda1704 QmlDesigner: Implement form editor selection for transitions
Change-Id: Ifbb1f5d32e1000182fb2bc4ba04edff472eebe52
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:16:29 +00:00
Thomas Hartmann
61f3bb8cfe QmlDesigner: Fix DragTool for FlowEditor
In FlowEditor mode postions are stored in the auxiliary data.
This has to be taken into account in the DragTool.

Change-Id: I4d008a9d6eafc6fd731c2a634ded6d9c84355059
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:14:17 +00:00
Thomas Hartmann
ab7e7417d1 QmlDesigner: Extend FormEditorView::auxiliaryDataChanged
We have to react to the auxiliary data of FlowEditor items.

Change-Id: If765c43ba78222336ee5d3c312cb49c3be511ec1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:10:20 +00:00
Thomas Hartmann
6622c6a4b7 QmlDesigner: Handle binding properties in FormEditorView
Since the target property affects how transitions are visualized,
we have to implement this callback and update the items.

Change-Id: I30fe74dedfc0187498eee9b884f099703ca001d5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:08:49 +00:00
Thomas Hartmann
6d32975d9a QmlDesigner: Handle created FlowTransition items
When a new FlowTransition is created we have to create
the correct FormEditorItem.

Change-Id: I6c8846a274929ecb96fcce874484bc47cee761c9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:06:16 +00:00
Thomas Hartmann
52276a7566 QmlDesigner: Properly delete transition FormEditor items
Change-Id: Id7b2e09bdfeea8693ad862f4a7a7ed536b763460
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:05:48 +00:00
Thomas Hartmann
9a35454633 QmlDesigner: Create items for FlowEditor
For the FlowEditor we need to create different subclasses
from FormEditorItem.

Change-Id: I24ea7b3782dc6023fb486f2e7c0fdfc1c892eba2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:05:16 +00:00
Thomas Hartmann
a978cc6283 QmlDesigner: Allow conversion for invalid types
Change-Id: Iefb24a0442f852824d8f625edadb51105829fa4e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 17:02:05 +00:00
Thomas Hartmann
d0ab46e2e0 QmlDesigner: Allow creation of different FormEditorItem types
Change-Id: I6519de187f4dd782efb83681ee50b89b03470090
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 16:52:09 +00:00
Thomas Hartmann
7ea16320bc QmlDesigner: Subclass from FormEditor item
This patch implements a few FlowEditor specific subclasses
of FormEditor item.

Change-Id: I11d96a5d51f4c871683ada8e587a97edc7bf1c1c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-01-29 16:51:24 +00:00
Christian Kandeler
3a0d5cb79a SessionManager: Remember dependencies
... involving projects that aren't currently in the session, for the
purpose of re-establishing the dependency when they get re-added.
In addition to the rather special use case described in the linked task,
this also prevents losing dependency information involving projects that
temporarily fail to load.

Fixes: QTCREATORBUG-22524
Change-Id: I2558736a634e91cccc3f071a3c522b33a88003c0
Reviewed-by: hjk <hjk@qt.io>
2020-01-29 16:47:08 +00:00