Commit Graph

61421 Commits

Author SHA1 Message Date
Eike Ziller
4ce34fd90f Merge remote-tracking branch 'origin/4.10'
Change-Id: I88a6704fb8d723a3cbdfb1a2d9c84741f30d4da6
2019-07-22 09:34:47 +02:00
Andre Hartmann
370511b5e4 BaseFileFilter: Make searching in paths easier
Allow searching for TextEditor/main.cpp by typing
either "text*main" or simply "text main".

Fixes: QTCREATORBUG-22546
Change-Id: Ica6fbd67c98381a8b2d13801e93ef7dba7f367a4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-22 06:52:54 +00:00
Aleksei German
4c77521a6f QmlDesigner Icon for Gradient List button
Change-Id: I875f15e06b39362247f9ee3c020acf125358c506
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-19 13:53:57 +00:00
David Schulz
18e6962fca LanguageClient: reverse error list for initialize errors
like it's done in Client::handleMethod.

Change-Id: I78c8c43f93ebde20b662fa3d1b6032d83ccac0fd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-19 07:33:22 +00:00
David Schulz
71fa2d950c LSP: update colorProvider entry of ServerCapabilities
Since version 3.8.0 of the lsp the server can provide the information
whether it supports colors also via an boolean value. The newly added
ColorProviderOptions are currently completely empty, so we ignore them.

Fixes: QTCREATORBUG-22691
Change-Id: I76232d160f4abed7b07574dc1b5413cead26b9f0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-19 07:33:11 +00:00
David Schulz
636209fa92 LSP: Add RenameOptions to the protocol implementation
Task-number: QTCREATORBUG-22691
Change-Id: I7eb13079a174cc6da8580e11e06cef09ebcc7b99
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-19 07:27:07 +00:00
Eike Ziller
e9272d848b QmlJsEditor: Avoid unneeded exports of constants
Change-Id: I332ff9a01963fe4d37dce9ecd0586d8f0fa6573c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-19 07:21:26 +00:00
Nikolai Kosjar
524cdf54bc QtSupport: Fix handling of not yet saved *.ui files
Since

  commit fb3e18bd4b
  Fix missing header guards in UI files

the uic input comes from a file (on disk) and thus the source contents
from the edited and not yet saved *.ui file (Designer mode) was ignored.

Revert the relevant part. This should not introduce a regression as

  commit 47312b04c0
  QtSupport: Fix header guard for ui files

basically superseded the first change, handling the proper inclusion of
the generated header file.

Fixes: QTCREATORBUG-22740
Change-Id: Iec6550817941eea99f823c377680b9a6fa5564e8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-19 06:27:35 +00:00
David Schulz
c65e480cbd LanguageClient: include the range length in document updates
The did change notification parameter has an arguable redundant range
length field, but it seems that there are language server out there
which rely on the presence of this field.

Change-Id: Id29132fb6586a2886b8ba6d9a13df52a64f31161
Fixes: QTCREATORBUG-22694
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-19 06:00:58 +00:00
Christian Stenger
53ca9752e2 ProjectManagers: Avoid deletion of special files
Do not allow deletion or rename of files that are used
to define or manage projects.
This fixes issues of being able to remove or rename
pri and pro files of qmake based projects as well as
special files used by the GenericProjectManager.

Change-Id: Ib173abf04368f0625a9e481bb7290aa11933e62f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-19 05:43:17 +00:00
Christian Stenger
4c6c3de53b GenericProjectManager: Do not crash on removing all files
When removing all files from a generic project QC crashed on
trying to access the first item of the empty file list.

Change-Id: I85045bf126f4e12575305466f0f4a6c4191176d3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-19 05:43:02 +00:00
Tim Jenssen
d20c738919 QmlProject: add FontFiles filter item
Change-Id: If5ece01181f0f084ec9124874113f471dc4dc9a6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-18 14:50:56 +00:00
Tim Jenssen
703eef169f QmlProject: cleanup the code
Change-Id: I10ce1fcba253e006b26864066510f3334893ce4c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-18 14:50:33 +00:00
Christian Kandeler
7b4cde9d65 RemoteLinux: Add "make install" step to pre-4.10 deploy configurations
... if applicable.

Fixes: QTCREATORBUG-22689
Change-Id: If3cec90bed4d84f8bf82eb0cc1d831143ee2e298
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 13:15:27 +00:00
Christian Kandeler
c8e656c506 Add qbs support to library wizard
Change-Id: Id78bc547cf42dec8948d7ebca56eacfcbbd2f055
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 12:36:43 +00:00
David Schulz
bfb971920a Debugger: Fix CharArrays dumper test
Change-Id: I041700a2a6ddac7f3a07b0e0d5dd876a9d542f5b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 12:29:01 +00:00
Nikolai Kosjar
56337478e7 Clang: Tests: Fix flaky testCompleteProjectDependingCodeAfterChangingProject
After changing the project, ensure that the project part is updated and
thus the backend is notified about it, otherwise we run into a race
condition.

Change-Id: Iea1ff16156350d10982cfd7fac3e8e5220eb4726
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 11:47:25 +00:00
Michael Weghorn
b8d4a9bef8 Debugger: Only append ".exe" for symbol file if necessary
Only append the ".exe" suffix if the the symbol file cannot be
found. Otherwise, this shows an unnecessary warning if an existing
and valid executable file like *.bat or *.cmd is passed.

Change-Id: I129c89deee9d63aefecc84d489ee08e81eaa11ab
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-18 11:35:16 +00:00
Leena Miettinen
83f83e0b54 Doc: Update info on LLDB support
LLDB is no longer considered experimental on Linux.

Change-Id: I56947461564ca5778ead6abdbf0bc70a80bfb9de
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 11:26:20 +00:00
Robert Loehning
5ce028c499 Fix capitalization of "qmake"
Shall be consistent with other wizards

Change-Id: I810cf55abf519f5b67155063ce515c4442fc6637
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-18 10:09:18 +00:00
Christian Kandeler
1f81f63b56 GenericProjectManager: Allow users to remove directories from a project
... via the project context menu.

Fixes: QTCREATORBUG-16575
Change-Id: I02650a8ef70ffe22c6a42a5450588be4506af925
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 09:17:32 +00:00
Christian Kandeler
20ef53a346 ProjectExplorer: Fix missing KitManager::kitUpdated() emission
Amends a503c00fd4.

Fixes: QTCREATORBUG-22722
Change-Id: I17cca6d2c5c0ef4af2b4c77db6c926dc6ae8fd61
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 09:15:40 +00:00
Eike Ziller
32ac159ce6 File search: Avoid symlink loops and duplicate directories
Looks like this was always broken, but got more prominent by the
introduction of automatic directory locator filters for all open
projects.

Task-number: QTCREATORBUG-22662
Change-Id: I248fb611bb1a6226b27901ea6ab310fc640def7a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-18 08:55:26 +00:00
David Schulz
3fbb5ddba8 LanguageClient: Show outline after server start
If the server was started by opening a document the outline factory and
client was not properly initialized in the time the outline was
requested. Update the outline after the client is fully initialized.

Fixes: QTCREATORBUG-22695
Change-Id: I84dc56eead9774d80ed6baf7792daff930a7cb8e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-18 08:34:18 +00:00
Eike Ziller
f689f86be5 Merge remote-tracking branch 'origin/4.10'
Change-Id: I1193e94353c14492a9e7f093fbcd3fa53f83e390
2019-07-18 07:30:29 +02:00
Antonio Di Monaco
36566a5015 Add support for LLVM -mllvm parameter
The -mllvm parameter is used to pass options to the LLVM component
through the Clang command line. As it assumes that the following
option contains the parameter that needs to be passed to LLVM,
cannot be handled like any other "-m" option.

Change-Id: I6d0347414f891d14238875158f9c5fc689907ccf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-17 15:11:35 +00:00
Christian Kandeler
b7a96a9342 Core: Warn the user if the settings file cannot be read
Do an initial check and if it fails, warn the user that they cannot
expect subsequent operations to succeed.

Task-number: QTCREATORBUG-18294
Change-Id: I3bb323cf7b7ed99f97258da94cfd7669f8520717
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-17 13:59:29 +00:00
Andre Hartmann
5dd4bb62b1 FuzzyMatcher: Match mixed uppercase words and humps
"htvideoele" did not match "HTMLVideoElement" before.

This can easily be achieved by modifying the uppercase
snake matcher and thus making the underscore between
the letters optional.

Fixes: QTCREATORBUG-19838
Change-Id: I821a68b20d40fb0843c12f43f47133833c75cb9b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-17 13:49:59 +00:00
Tim Jenssen
3ae169f8ac improve installsettingspath error message
Change-Id: Iefd301009faad8a15e9a1b99b0a52bce34eae654
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-17 13:21:39 +00:00
Tim Jenssen
dfd9d5a5ee try only show MessageBoxes if that is possible
Change-Id: I70f41b7a2936d6797895559530050e8de54b2913
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-17 12:16:28 +00:00
Leena Miettinen
191bb8d383 Doc: Describe color and gradient pickers
Change-Id: I18f95377f29cabed5be309a04efcdd955e46ddd0
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-17 10:49:40 +00:00
Leena Miettinen
e768a63af1 Doc: Add link to the Qt Quick Controls customization reference
Change-Id: I2eb4e63a7b6ac13c16272a7b5db2f0d07a4e9382
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-17 10:38:40 +00:00
Thiago Macieira
64d2965e29 Cope with Qt 5.14's dropping of the MIME type DB as a resource
The copy is still present on non-Linux systems, but is not accessible as
a resource, so we must ship our own copy.

Fixes: QTCREATORBUG-22636
Change-Id: Ie7ae7616eadf4035bec6fffd15ac303c1d2badce
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-17 09:54:59 +00:00
Leena Miettinen
bcc41909c5 Doc: Fix typo "versions" > "version"
Change-Id: I8999ce4a9595562a289dc829666be259c551a746
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-07-17 09:50:05 +00:00
Leena Miettinen
fa5133a7cb Doc: Update screenshot showing Build & Run General options
Change-Id: I90ba3e8d1027c963c3615f4f943dc79c1597c696
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-17 07:17:32 +00:00
David Schulz
3213e12ce7 rename PythonEditor plugin to Python
The plugin does not only contain a pure editor, but all kind of support
for a programming language like project and run support.

Change-Id: I1251367c8db2e7a54986415ffc5b860cb210de3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-17 06:21:23 +00:00
Nikolai Kosjar
2778a5adab CppTools: Fix updating pending queue in CppLocatorData
Fix that the invocations

  CppLocatorData::onDocumentUpdated(Document{"bla.cpp", revision=5}),
  CppLocatorData::onDocumentUpdated(Document{"bla.cpp", revision=3}),

would add two entries in m_pendingDocuments. The document from the
latter invocation should be ignored due to its outdated revision.

Change-Id: I5e9eb4de77f59633d5525d808bd60ca1259f894d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-16 14:02:59 +00:00
Eike Ziller
178e57129d Fix imports in Qt Quick wizards
Fix-up of e0d38ae414

Change-Id: I9f4055647bbf82c89b3282048944bc6ac89faacf
Fixes: QTCREATORBUG-22614
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-07-16 13:00:59 +00:00
Denis Shienkov
56dc926b9d ProjectExplorer: Auto-detect GNU toolchains provided by AtmelStudio v7
A latest AtmelStudio v7 contains the GNU toolchains
in an other directories (against to Atmel Studio v6).

This patch takes it into account to detect a provided
toolchains.

Change-Id: Ife239abca8a513f2fd6652363d1fff049cf16397
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-16 12:50:22 +00:00
Leena Miettinen
5b80e98325 Doc: Fix navigation link to previous page
Change-Id: I0c649eefb7ea3a43136a60f55066b3e070d25d6d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-07-16 11:25:50 +00:00
Christian Kandeler
cf641fc04f RemoteLinux: Suppress "-j" option in MakeInstallStep
Depending on the build system, the job count option as used in the
MakeStep class might not be available.

Task-number: QTCREATORBUG-22689
Change-Id: I8c6cf31bbd270816a527ab465a2125d7dfc1f7de
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-16 09:58:23 +00:00
Marco Bubke
596d310d42 Sqlite: Remove temporary unused functions
We will maybe rank the functions in the future but today we don't use that
code.

Change-Id: I84c88b45ceae830c29c3c197e7d0d0c1a6d5c114
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-16 08:28:19 +00:00
Marco Bubke
ec3c7946af UnitTests: Fix compile without Clang
I moved the clang depend code under the condition that it is only compiled
if LLVM is present.

Change-Id: If1e37f677464ff38833c81dbebdfe8eaa563cdde
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-16 08:19:06 +00:00
Andre Hartmann
9146d5bd3a FileSystemFilter: Simplify directory handling
Change-Id: I28fbbafdef70c12112aa8803eabdd757aa7c3f09
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-16 08:16:18 +00:00
Eike Ziller
5af1f95f25 Merge remote-tracking branch 'origin/4.9' into 4.10
Conflicts:
	src/libs/utils/mimetypes/mimeprovider.cpp

Change-Id: If771d3fba60b670cb0de3a43c9039e24c74aabb1
2019-07-16 09:17:45 +02:00
Christian Stenger
1c438aadde Tests: Skip ssh related test conditionally
If there is no ssh tool present in PATH the test will
fail, so do not expect all machines having ssh explicitly
defined in PATH.

Change-Id: Ic56898ac6a31e75cd2efae6f10464a9aab04b326
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-16 04:54:16 +00:00
Thiago Macieira
9693882d6d Re-fix QtCore resource path changing and prepare for Qt 5.13
Commit 9cf8ab3b3d added the #ifdef, but
that of course only works if you don't upgrade Qt compared to what Qt
Creator was compiled with. Instead, attempt both paths and only do that
if the system copy is not found.

Searching the system copy is required to address Qt 5.13's configure
option -no-mimetype-database (used by Linux distributions because the
system copy is always present).

This code will still need work to deal with Qt 5.14 changes.

Task-number: QTCREATORBUG-19600
Task-number: QTCREATORBUG-22636
Change-Id: I6aed4df6a12e43c3ac8efffd15ac952a6e9d4770
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-16 00:38:52 +00:00
Christian Kandeler
9c39956eab Project tree: Add warning icon to unconfigured project
Task-number: QTCREATORBUG-22682
Change-Id: Ia44a1a518aa842cd13feae945dd87b9318d51f6e
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-15 14:05:00 +00:00
Christian Kandeler
dcb1e83002 ProjectExplorer: Make sure the target setup page is shown
... when switching to a project that is unconfigured.

Task-number: QTCREATORBUG-22682
Change-Id: I91c6f791677054d2f86a5a5d81003f38ecc812fb
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-15 13:58:54 +00:00
Christian Kandeler
375e4dee2b Utils: Remove NameValueDictionary::expandVariables()
These functions were inadvertently copied from the Environment class in
4bae5de36b.

Change-Id: Iede8d4b43bd97e8d6d3a0641bd3224e5829fe4b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-15 13:58:26 +00:00