Commit Graph

64672 Commits

Author SHA1 Message Date
Eike Ziller
1b431fe271 Move Id from Core to Utils
And add a compatibility wrapper for Core::Id, so we don't have to rename
all occurrences from Core::Id to Utils::Id.

This allows us to use Id also in Utils, which makes it possible to e.g.
move Core::InfoBar to Utils without work arounds.

Change-Id: I5555d05b4e52f09d501dbfe5d91252a982a97c61
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-06-18 05:58:23 +00:00
Orgad Shaneh
5ebe34a332 VCS: Add vcsDescribe
Already exists in all implementations, but there was no common declaration.

Change-Id: Ieb3d10d1936c207722b5001712bce41e8114dcdc
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-06-18 05:17:59 +00:00
Orgad Shaneh
e9df7825fa IVersionControl: Change vcsAnnotate return type to void
All implementations return true unconditionally, and the return
value is never read anyway.

+ Remove superfluous function with the same name in Perforce.

Change-Id: I83f361ec7fd8be3177cb4be52e6276e295cd4279
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
2020-06-18 05:16:24 +00:00
Leena Miettinen
55f3764d08 Doc: Fix typo "truthfullness"
Change-Id: I9c25f023e82e41785cd905d6b77505e60e825432
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-06-17 13:54:01 +00:00
hjk
14d83e027b BinEditor: Crash less on search
Task-number: QTCREATORBUG-21473
Task-number: QTCREATORBUG-23978
Change-Id: I8f63fa892b9ef37bc660bd0b96fce5e1d6772b57
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-06-17 12:42:48 +00:00
hjk
5a7256b4bf Debugger: Start making auto tests work using cmake
Change-Id: Ibe6c9bdfb52a16171e6f6acb841f185d936878f3
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 12:15:43 +00:00
Christian Kandeler
fb13a124c1 Marketplace: Fix leak
Change-Id: Ifd31a38514a630e9b8e36d4255dc4de6d6588925
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 11:33:29 +00:00
Christian Kandeler
92bae70432 DiffEditor: Fix leak
Change-Id: I39c73f2076420d2026bec58f5a383b27188a2720
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-06-17 10:59:30 +00:00
Johanna Vanhatapio
bfc02970ae Doc: Edit Maya export options for FBX files
Task-number: QDS-2125
Change-Id: I9397870d577f8f64c217a98a15c9bc00e3907731
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-06-17 10:55:54 +00:00
David Schulz
ca7995590e Clang: fix heap-use-after-free of ClangCompletionAssistProcessor
Do not delete the ClangCompletionAssistProcessor when resetting the
BackendReceiver since the CodeAssist is the owner of the processor. The
processor will be deleted in the async completion handler set in
CodeAssistantPrivate::requestProposal.

Task-number: QTCREATORBUG-24151
Change-Id: I36cdfd6412cc6ed2b2658e8691f9f4217790affc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-17 10:45:51 +00:00
Joni Poikelin
dcf2f16384 Fix debugging for x86 and armv7 Android builds
Fixes: QTCREATORBUG-24191
Change-Id: I7b3033f47a4eb0f63be351576df1540e98edb903
Reviewed-by: hjk <hjk@qt.io>
2020-06-17 10:38:52 +00:00
Christian Kandeler
5ca17578d5 Tests: Fix Qt 5.15 deprecation warnings
Change-Id: I458cced795f29479557853919bd6d317e5870f07
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 10:22:09 +00:00
Christian Kandeler
09ac5a8fa8 Update qbs submodule
To HEAD of master branch.
This fixes a number of Qt 5.15 warnings.

Change-Id: I1e10134268ea3687d6ad979ae263fc91dc804d50
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 10:21:46 +00:00
Thomas Hartmann
11b884f311 QmlDesigner: Properly resolve "dot properties" for dynamic objects
property NumberAnimation numberAnimation: NumberAnimation {
}

In this case this will expose the "dot properties" of numberAnimation.

Change-Id: I40aafcc4f762ab6297c0829674ac62d92cbd713d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-06-17 10:06:04 +00:00
hjk
18e2300337 QLiteHtml: Remove accidentally introduced dependency on Utils
Amends 1c81a3b3e.

Change-Id: I4a1b0cae5bac5bd5801e1868420e9e23598c0c79
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 10:05:40 +00:00
David Schulz
aaa1376576 Editor: Allow setting the optional action mask per editor
Instead of just enable actions that were disabled from the beginning you
can no disable optional actions.

Change-Id: I986b8a72523a8aeec9f4ccf76cd4921018ffc003
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-17 09:47:44 +00:00
hjk
c7db952648 Core: Adapt IMode::m_menu handling to documentation
This fixes a double delete of the new debug mode menu.

Change-Id: I633ab9eb319554d4fc2da158b83f6611ab10ce45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 08:44:33 +00:00
David Schulz
2b36770d07 LSP: add rename functionality
Fixes: QTCREATORBUG-21578
Change-Id: Iec54ebed6358453af4ef16a2a4e6aef0418faebe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 07:51:52 +00:00
David Schulz
5f91985931 Editor: enable optional actions per editor
Use an additional action mask to enable actions like find usage and
rename symbol per editor instance.

Change-Id: Iabee1820d0f3c156ad30ba760bfce9f6181045e6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 07:51:35 +00:00
David Schulz
bdc8411af5 Editor: add update optional actions function to action handler
Change-Id: I342fc53aaa845c6fa2933ea19a0a36a6dc8e6338
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 07:50:00 +00:00
Orgad Shaneh
699d89290e QrcParser: Fixup last change
Missed a spot.

This amends commit a050ae84e2.

Change-Id: Iee25352e7142c59d371e90c6f9a99bf136fd9f35
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-17 07:30:45 +00:00
Orgad Shaneh
a050ae84e2 Utils: Use range-based for in QrcParser
+ Avoid modifying the list while iterating it, and also avoid second scan.

Change-Id: Idea74c338e24c300dbc3ca2e4f50797914cc5a1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-17 07:12:28 +00:00
Leena Miettinen
890d96d63b Doc: Describe logical operators used in when conditions
...when determining when to apply states in States view.

Change-Id: I570602b18790a0ab2dd60f475de69cb3d8fa2d77
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
2020-06-17 06:53:02 +00:00
Eike Ziller
30b6bbfb6b Plugin Wizard: Investigate archive before installing
So far that only moves unarchiving and the check if that succeeds to
within the wizard.
To be extended with additional checks for the archive content's sanity.

Change-Id: I6798937826fbe9cb584d83a920e67b6cfcc119ed
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-17 06:50:48 +00:00
Eike Ziller
0eefc5b70d Add a menu to Debug mode that switches perspectives
Set a menu for switching perspectives on the debug mode icon. When icons
& text are shown for the modes, there is an additional arrow to the
right of the mode that can be clicked to open the menu. This
functionality was added in 4.1 for that purpose, finally use it.
Do not show and arrow in "Icons Only" mode, so it stays small, but make
it available on right-click as well.

Change-Id: If19877b5231b7f01f0b3fd98cf65e8eaf9da1a5f
Reviewed-by: hjk <hjk@qt.io>
2020-06-17 06:48:17 +00:00
Or Kunst
356d497df4 New IncrediBuild plugin
- Using raw pointers instead of QSharedPointers.
- Removing redundant pointers existence checks before delete.
- Replacing empty quotes with explicit QString() instance creation.
- A few spaces and tab fixes.
- Save settings after migrating build steps

Change-Id: Iff87d75c7047474ab8e49366ddfeced766ff1a67
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-17 06:40:05 +00:00
hjk
c5a64bd4de FakeVim: Replace QRegExp use in handleExSubstituteCommand()
Task-number: QTCREATORBUG-24098
Change-Id: I4176b614a7de73a675d5252344b68ce61dc340c2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 06:15:38 +00:00
hjk
1c81a3b3e8 All: Use Utils::SkipEmptyParts
Task-number: QTCREATORBUG-24098
Change-Id: Iab45de9a9c17ddc39a0e343b1175d4f6cb94b098
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-17 05:55:25 +00:00
Christian Stenger
6e798401a0 Fix plugin unit tests when using projects
The ClangTools and the AutoTest plugins use an internal
mechanism to load and configure a project when performing
their integrated unit tests.
Both assumed to have exactly one kit present for these
tests.
Make it possible to have more kits present when starting
with existing settings or if more kits get automatically
generated when starting with clean settings.

Change-Id: If2bc66320c4854f1d34a19d17107e8f0b7d64d39
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-17 04:13:30 +00:00
Christian Stenger
c6db1c29d6 Utils: Remove unused function
Change-Id: I0b8fae0e7257a3281573f774862af4c1284a2941
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-17 04:13:05 +00:00
Christian Stenger
ad7f673ad1 PE: Replace some QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I6d9fde23d5d7a1d3fab3723a22ba385ebaee04a0
Reviewed-by: hjk <hjk@qt.io>
2020-06-17 04:12:55 +00:00
Christian Kandeler
8a697cde64 Fix Qt 5.15 deprecation warnings for QString::SkipEmptyParts
Task-number: QTCREATORBUG-24098
Change-Id: I03ee6811df4346754bbd652f2c3c97477f9cdb7e
Reviewed-by: hjk <hjk@qt.io>
2020-06-16 16:00:22 +00:00
Alessandro Portale
592e20cf0f PathListDialog: Make entries movable
Quite often, I edit path lists in order to modify the order of entries.
It is nice to do this with via drag and drop in the PathListDialog.

Fixes: QTCREATORBUG-20965
Change-Id: I02492c537de694071822d4f261347acea46b220b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-16 15:36:08 +00:00
Robert Loehning
c9355626d5 Squish: Update expected tree for qbs
Change-Id: Ib2fd3ec1df0772de2ae2ef7c4083431ccd32095b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 14:17:53 +00:00
Christian Kandeler
0861ba2fc9 sqlite: Fix qbs build
Exporting the full sqlite interface can lead to run-time conflicts with
the system sqlite that Qt's SQL support pulls in.
So re-build the sources for the unit test, as in the qmake build.

Change-Id: I8394b9c0aa4e21704bc84600f40b8f5d706ad66d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 12:43:00 +00:00
Christian Stenger
241b24486e QtSupport: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I1eefae2473919e3d2f9fa93d7d54797effd4a5f2
Reviewed-by: hjk <hjk@qt.io>
2020-06-16 12:09:49 +00:00
Christian Stenger
d8b1fcb9d3 CMakePM: Replace some QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Ib40d97cf2b39105e7db9f886c125a2430119d14d
Reviewed-by: hjk <hjk@qt.io>
2020-06-16 12:09:21 +00:00
hjk
328c0cf809 CppTool: Avoid a use of QStringRef
Change-Id: I2a82bad7d91e059915526f0cf7b89f0d8367463a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-06-16 11:57:07 +00:00
hjk
361b80cb9b ExtensionSystem: Remove PluginSpec::isHiddenByDefault
Not used anymore.

Change-Id: Ic73ba3024b9e6157ff044cb23450fc9dad3c4c02
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-16 09:08:36 +00:00
Eike Ziller
7379a5ac52 ExtensionSystem: Avoid some dynamic_cast issues
dynamic_cast had issues with casting types over library boundaries, at least on
macOS/Clang, even though the types were exported and it worked on Windows/MSVC.

When we manually load the plugin libraries we must force QLibrary/
QPluginLoader to use RTLD_GLOBAL, so external symbols can be resolved
correctly.

See also the FAQ for GCC https://gcc.gnu.org/faq.html#dso

Task-number: QTCREATORBUG-23773
Change-Id: I0f85161d58ad7da390b9b2a20e15f260b9cac196
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2020-06-16 08:51:53 +00:00
David Schulz
5bd0894813 Utils: Fix compile on unix
amends 72b35aa12b

Change-Id: I934ef8420b998db367f004d2f58782abdc843af9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 08:36:27 +00:00
hjk
8efe0df9dc ExtensionSystem: Port PluginManager to QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Idd52e7fe37c8ea8937af7123755b324dd326bb16
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 08:28:26 +00:00
Alessandro Portale
22dd01ef61 DetailsWidget: Don't allow the summary label to expand too much
The summary label must not be able to make the DetailsWidget grow
horizontally.

Task-number: QTCREATORBUG-24136
Change-Id: If71b007c02ad1bbcdd4f2e3bf083dfce24a14787
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-16 08:06:11 +00:00
hjk
30c118203e Core: Remove "Show all" option in plugin dialog
Turned out it was easy to overlook and didn't reduce the list of
visible plugins to a degree that makes a difference.

Change-Id: Ib261066b215b66ffb683a87b8592570d895917ac
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-16 07:40:53 +00:00
David Schulz
72b35aa12b Utils: check windows registry for archive tools
Change-Id: I2acff0347a0bd04a808b5f4a0049263168e11f51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-16 07:40:43 +00:00
Christian Stenger
29e60f0741 TextEditor: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: Id407154bd7d05bf5bbf07a804959e87452225c70
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-16 07:40:18 +00:00
hjk
816a1df45a Debugger: Remove one use of QStringRef
This is a guinea pig to check whether using u"..." is ok
nowadays.

Change-Id: I402816d8892211e67fb6227cd0441c20c0b33818
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-16 07:35:04 +00:00
hjk
beee73ce5b ProjectExplorer: Update parts of RunConfigurationFactory docs
Change-Id: I4b9addde8055cb07565eea1c62e4e5b47725ff48
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-16 07:33:36 +00:00
Christian Stenger
4b1adeca7f Android: Use QRegularExpression instead of QRegExp
Task-number: QTCREATORBUG-24098
Change-Id: Ic19bd73dd2bac39b393bf87c4567193631b57c80
Reviewed-by: hjk <hjk@qt.io>
2020-06-16 06:19:01 +00:00
Christian Stenger
555970eeb0 Todo: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I30d06f78106760ca3ad434b3f89603fd7bab2d71
Reviewed-by: hjk <hjk@qt.io>
2020-06-16 06:17:54 +00:00