Commit Graph

60059 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Robert Loehning
9750f2cd67 Squish: Update BuildDirectoryLineEdit
Fixes error in tst_simple_debug on Windows.

Change-Id: Ibb122619539d386010c5015e2f8748aeb936baef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-15 11:21:32 +00:00
Christian Stenger
7e63ca97de Designer: Fix possible endless loop
Opening a ui file listed in a pri file may trigger this
endless loop by returning always the same project node.

Change-Id: Id1697ea77c39c4693d36fbc3fcd9600b05022e58
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-15 11:03:13 +00:00
Alessandro Portale
663e9003a3 Application wizards: Remove duplicate entry in a generated .qrc file
qml.qrc: Warning: potential duplicate alias detected: 'main.qml'

Change-Id: I949fda863175c3de4a828a93ca01620010a44e93
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-15 05:38:12 +00:00
Nikolai Kosjar
51cd2885ef CppTools: Allow enabling debugging of locator filter tests by environment
Change-Id: I9786b7c6959b77eebb1bc774d2e7bd4c8ed3edeb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-11 14:02:21 +00:00
Christian Stenger
8f6d99dc29 AutoTest: Avoid unclosable progress bar widget
The progress bar widget gets automatically closed if the
underlying future reports that it has finished or got
canceled. This patch ensures to emit the respective signal.

Fixes: QTCREATORBUG-22699
Change-Id: I5c7d2169194e90165fb1c90831cf69c02e029268
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-11 13:55:09 +00:00
Christian Stenger
3ea670d207 QmlJSEditor: Remove registration of json files
Do not open json files with the QmlJSEditor as this produces
strange warnings and Json is not JavaScript at all.
Rely on the correct syntax highlighting by the generic
highlighter and KSyntaxHighlighting respectively.
Beside this it helps also when using a json language server.

Task-number: QTCREATORBUG-22697
Change-Id: Iebd0009c550d9ea701d504797d528226dc32b0ec
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 13:54:57 +00:00
Leena Miettinen
526163cc16 Doc: Add info on Live Preview
The documentation was moved from the Qt Design Studio repository
and edited to make it applicable to Qt Creator, too.

Change-Id: I3072fc712b5ee002cd6e7486927de31f9117d7bc
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 12:51:31 +00:00
Leena Miettinen
f8bebf501b Doc: Fix the batch editing example
Fixes: QTCREATORBUG-20332
Change-Id: I1010ed105fdc5b953f058be578aef62b70be7506
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-11 11:22:41 +00:00
Marco Bubke
1841cb1fa5 ClangPchManager: Fix path for excluded include files
Still used the old approach but now it is using the new one.

Change-Id: I4bf4da3a5d41d46afff261f3d77bd9190737038a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:03:01 +00:00
Marco Bubke
56277de27f ClangPchManager: Protect fetchPchSources
It was not protected by a transaction so it was not thread save.

Change-Id: Ib4529d0e94942d3cbafb46705a0256812908c8c6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:02:43 +00:00
Marco Bubke
d7e5935396 Sqlite: Handle cases that the database is busy
This should be not be happen but better be save than sorry.

Change-Id: I7b4afe491c07f8d5da2dc13aaffd2f354384a3ae
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:02:23 +00:00
Marco Bubke
10f3621cf1 ClangRefactoring: Test for non existing client
This can be happen as we shutdown the process.

Change-Id: I69f30ed65ef4456abe6d59b4ea188a67c482efe0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:02:10 +00:00
Marco Bubke
2eb4050acb ClangRefactoring: Make the indexer more robust
We check now if the database is busy. This should not be happen but better
be careful.

Change-Id: I8b667ff183368977991974ea1fe7fcde837e968a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 08:59:16 +00:00
Marco Bubke
4526a02e31 ClangRefactoring: Add WAL checkpoint at the end of the symbol storage
Change-Id: I70fde54947a302ae0e45bff083cd5654c86b3891
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 08:59:04 +00:00
Marco Bubke
b16b8db48b Sqlite: Use newest version
Change-Id: Ic3951b9b38d5bc8cfa658e9cce0d6effaaa329c1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 08:58:54 +00:00
Leena Miettinen
fc7d505bee Doc: Update info on Clang diagnostics
Update screenshots.

Task-number: QTCREATORBUG-22701
Change-Id: I5c597aba9a99551e18a98bb019ea1f858a8ba8cc
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-10 13:28:04 +00:00
Leena Miettinen
ff8360921b Doc: Update info on zooming in output panes
Zooming is also available in the General Messages and
Version Control output panes.

Change-Id: I306c9be485640d298d1223f04bf5e7db26dd403c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-10 08:51:43 +00:00
Nikolai Kosjar
b6346369eb ClangTools: Fix showing diagnostics outside the project root dir
Accept diagnostics from files that are known to the project
(Project::files()) instead of checking whether they are below the
project root directory (Project::projectDirectory()).

Fixes: QTCREATORBUG-22213
Change-Id: I2f96374d6de3f53b1bd42be875dfe44b25a55fb1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-10 07:56:57 +00:00
Nikolai Kosjar
2aa067f28e Clang: Fix adding snippets after opening brace
The regression was introduced by

    commit 82d6d20acb
    Clang: Do not show completions after comma in initializer list

This fixes ClangCodeCompletionTest::testCompleteGlobals().

Change-Id: Ic126f1e3eaed158196268e3682ff32bc02deb7b9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-10 07:56:48 +00:00
Christian Stenger
0d9e8d3e9d Unittest: Fix compile due to ambiguity for older gcc
Change-Id: I4eb2ce1cd0892a50702eacb1b0d6bdf844718c20
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-10 07:50:52 +00:00
Nikolai Kosjar
44e3e1a43c ClangTools: Sanitize ClangToolsUnitTests
This fixes the currently failing tests

	ClangToolsUnitTests::testProject(simple.qbs)
	ClangToolsUnitTests::testProject(simple.pro)

which produce more diagnostics now due to the upgrade to clang 8.

Sanitize the test by specifying exactly the tidy/clazy checks we are interested
in. This should avoid maintenance on clang upgraded (pulling in new checks that
will fail the test).

While at it, fix writing the settings for the tests, which worked by accident
so far.

Change-Id: If8bf5076ad7141faa93eced611334ac609f0cf92
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-10 06:46:48 +00:00
Robert Loehning
f858eaa9e8 Squish: Update tst_CSUP02
Change-Id: I56fd0375b973141fae4e53352997d0752bfbfcb0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-09 16:17:24 +00:00
Nikolai Kosjar
5121c009f6 Clang: Fix use-after-free
...introduced with

  commit d52ac9a708
  Clang: Fix unresolved #includes for ui_*.h headers

ClangCodeModelServer::onJobFinished might take over ownership of the
jobs object. This should be reflected in the JobFinishedCallback as
otherwise we will continue in Jobs::onJobFinished() right into a use-
after-free.

Change-Id: I4b5cbdf781a8e66f45a743c451b4484bf922f720
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2019-07-09 14:21:38 +00:00
Tim Jenssen
cc2b8923dc update image paths in dev package script
Change-Id: I169709e0f7746fdd9b44cf095c2c5249f03658f4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-09 12:36:34 +00:00
Thomas Hartmann
cd8b064d76 QmlDesigner: Fix potential crashes
Change-Id: Ieb3211090d16150943fd4d2dd15a4a63ecdae078
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-09 12:35:28 +00:00
Leena Miettinen
afc53cd54d Doc: Describe additional reset types in Git Branches view
In addition to a hard reset, users can now choose a soft or
mixed one.

Change-Id: I11d27e335cb3c0f34ae9a6ddf81b7b8ae1948629
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-09 12:05:28 +00:00
Leena Miettinen
2e3c5c870f Doc: Describe changing properties of multiple items at once
In Qt Quick Designer, you can select multiple items on the
canvas or in the Navigator and edit their common properties
simultaneously.

Change-Id: I6e1e7740bdbfcaee401f7915c0d215cb555e9015
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-09 11:32:11 +00:00
Christian Kandeler
b21d0485d0 qbs build: Suppress GCC 9 warnings also in qbs submodule
Amends 7b2d41a972.

Change-Id: I3500b57fa2424f522ffe16e5413a7593601215c0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-09 09:26:32 +00:00