Commit Graph

60947 Commits

Author SHA1 Message Date
Eike Ziller
3b2209b870 Help: Get rid of special CentralWidget class for help mode viewer
Change-Id: Id733eb0449cdaed5901e4144089c8adaaf07d7a9
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 12:57:56 +00:00
Eike Ziller
4f19046d75 Help: Remove OpenPagesManager::instance()
It's owned by the HelpWidget now, and should be accessed through that.

Task-number: QTCREATORBUG-20558
Change-Id: I99118bb966922e6b4d356cf892d7604365357785
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 12:57:29 +00:00
Eike Ziller
4610759aed Help/litehtml: Use antialiasing and higher-quality image resizing
Change-Id: Ib0e48130c94e2cfdc25560339376c0ed130c56fa
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 12:11:58 +00:00
Eike Ziller
88d759d50f Help/litehtml: Keep top position also when zooming
Change-Id: I65e12d4fca33719bc1a3ae08f7871d08d8d9c449
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 11:57:37 +00:00
Cristian Adam
1e9b1dcaec Clangbackend: Use Qt debugging instead of std::cerr
The arguments passed to libclang were only passed to std::cerr,
which and never reached Windows logging.

On Windows the clang*.exe have a qMessageHandler which forwards
the message to windows logging and std::cerr.

Change-Id: I97b0856ae2b3f44a991c9d292a15db9f3b071a0d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-09-24 11:30:44 +00:00
hjk
bcaeb73e68 ProjectExplorer: Store parts of active build config in runcontrol
... on runcontrol creation to prevent later access. Adapt some users.
There are more to come.

Change-Id: I2a3fe5eea0ada4eff7d08b79a6f49694e6962c8a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-24 11:20:51 +00:00
Eike Ziller
bef986f3fd Help: Move OpenPagesManager::createPage to HelpWidget
Removes some unneeded indirection.

Task-number: QTCREATORBUG-20558
Change-Id: I65d8d31e10300da3015f388ac490b8be6e090f29
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 09:21:08 +00:00
Leena Miettinen
bd228ab6dd Doc: Rename all files with the same base name at a time
Task-number: QTCREATORBUG-21738
Change-Id: Iedcef8908a8a73f43bf07e85d9ef9d6d5a8ee82e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-24 07:29:05 +00:00
Orgad Shaneh
4ae6c2a89b Git: Fix log for repo/project
Broke by ad6968f45f.

Change-Id: I06ff8384a088f6d9137b9711f855efa8d6bf4a74
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-24 07:00:17 +00:00
Orgad Shaneh
76c0149ceb ProjectExplorer: Fix typo in variable name
Copy-pasted in 2 other plugins.

Change-Id: I1a76ce7490505f43e2d5fe0fe4cc57d480607db9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-24 06:59:29 +00:00
Christian Stenger
2249765041 Allow compile with bundled QtScript
Qbs has QtScript nowadays bundled as submodule. Use it
for qmake builds as well if the used Qt does not have QtScript
present.

Change-Id: I4eabdbe7ea502953b0213ad39c8b72220f2d966f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-24 04:42:06 +00:00
Christian Kandeler
4702faba06 Wizards: Add the ability to remember user choices
Wizard authors can now provide a persistence key to values where that
makes sense.
For now, we make use of it for the build system type in all wizards and
the minimum Qt version as well as the virtual keyboard settings in the
QtQuick wizards.

Fixes: QTCREATORBUG-16657
Change-Id: I179930665bd163b1cf198467ab8b43bc72f8ec4a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 12:48:56 +00:00
Cristian Adam
2e63d2c7d3 Fix build of clangrefactoring backend on Windows
Broke in ccab835455

Change-Id: Ic5db7597cb6cc3c798987997d8fe50c4d801ec8e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 12:19:20 +00:00
Orgad Shaneh
aa198b7e88 Qmake: Show real effective make call on Make step
Include custom Makefile.

Change-Id: I4b3b4d4fb64eea97ab4630ff6909c7df67291ba5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-09-23 11:55:29 +00:00
Orgad Shaneh
57404c9551 MakeStep: Rename m_makeArguments -> m_userArguments
These are the arguments provided by the user. Full make argument may
contain also some automatic ones, such as job count and Makefile.

Change-Id: Ief03623daa9c9bbc54ca6ad2dcf1492510fe531b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 11:52:11 +00:00
Orgad Shaneh
471e78a99c Qmake: Update effective qmake call on project parsing finished
If the project has MAKEFILE = Makefile.$$VAR it wasn't reflected when
VAR was set in Qmake arguments.

Change-Id: Ieb1cbfee9a0def89a5c9b6259e8acc87751b0f3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-23 11:52:01 +00:00
Leena Miettinen
b73a2fffe0 Doc: Describe temporarily disabling a variable for batch editing
...build settings.

Task-number: QTCREATORBUG-20984
Change-Id: Id1dc755d046cc262c84a7bbe3f141660b2c8860d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-23 11:23:31 +00:00
Eike Ziller
0491c1c06c Merge remote-tracking branch 'origin/4.10'
Change-Id: I4a22cdf4d7d5aab2083d5f9f7baaa38e510f83fd
2019-09-23 12:31:58 +02:00
David Schulz
57749e91e8 LanguageClient: allow adding settings via the manager
This adds the possibility to configure language servers
from other plugins.

Change-Id: I33c7d637ddd73dcfc0d02c366b8b9749ac1c2b98
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 09:51:41 +00:00
Leena Miettinen
6948ceeea7 Doc: Clarify the options for adding subprojects
Task-number: QTWEBSITE-856
Change-Id: Ifde71f52fe41679c00691e92136b092c81d38afc
Reviewed-by: Kavindra Palaraja <kpalaraja@luxoft.com>
2019-09-23 09:08:49 +00:00
David Schulz
20e6e84b1a LanguageClient: Add already open documents to starting client
After settings are applied in the manager make sure to assign all
open documents to the newly created clients if the document filter
accepts them.

Change-Id: I30e06e37bc4fde0bc7bab34a2de564a7df043edf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 08:51:46 +00:00
hjk
d8c78538a6 Debugger: Do not forget perspective layouts on unused perspectives
Amends 5273ef2a8a

Use cases mentioned there should still work.

Fixes: QTCREATORBUG-22938
Fixes: QTCREATORBUG-22286
Change-Id: Ie7bb6b7ea6d05a94cbeeb5b8021dc638548778d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
(cherry picked from commit e9c0ba9997)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 08:50:36 +00:00
hjk
89a36c7232 Debugger: Show FORTRAN strings
Fixes: QTCREATORBUG-22976
Change-Id: Ib435b2692301fe2e2d3378623e99bbcf16e27e46
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 08:50:17 +00:00
Leena Miettinen
17f2def68c Doc: Explain changing between Windows and Unix line ending styles
Change-Id: Id4b74ea3e2edec7429d2312d0b8fc9e8ab1406d4
Reviewed-by: Marius Sincovici <smaryus@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 08:08:50 +00:00
hjk
54e3d06c5e Debugger: Do not add spurios empty element to LLDB args
Fixes: QTCREATORBUG-22975
Change-Id: Ibd5db32af9adb90f5d191e4fdcd2be751bd2b412
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 08:02:19 +00:00
Eike Ziller
9f8f0b3f5c Help: And fix build for non-Windows again
Change-Id: I13525d28361925aa4f5ec7cb2e4b3f3e45faf9c1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 07:58:42 +00:00
Christian Stenger
2abf82434e Help: Fix compile on Win
Change-Id: I193eb9a6720120f7014eca129463b43db1065455
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 07:34:38 +00:00
Christian Stenger
78780bb2db Help: Fix compile with older Xcode
Change-Id: I73e062544c859ecf03cbb808daafe936be84bdbd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-23 07:34:15 +00:00
hjk
d43409ea67 Debugger: Shuffle plugin setup code around
To get closer to the standard setup.

Change-Id: I969abb44393532f5dba95e643bd8ba6356f44d16
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-23 07:31:04 +00:00
hjk
7b0a5e44d3 Debugger: Inline rarely used convienience function
Change-Id: Iad5db32af9adb90f5d191e4fdcd2be751bd2b412
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-09-20 13:39:31 +00:00
Eike Ziller
f5e624feaa Help/litehtml: Keep top element visible when resizing
This implicitly fixes behavior of scrolling of context help when the
side-by-side help panel is not yet visible.

Task-number: QTCREATORBUG-4756
Change-Id: I28dd89b56fe7dfa2a3473f21740571c27a955e14
Reviewed-by: hjk <hjk@qt.io>
2019-09-20 12:57:08 +00:00
Eike Ziller
fe6ba084c4 Help/litehtml: Fix litehtml build on Windows and with GCC 5.3
GCC 5.3 doesn't want to convert char* literals to QString sometimes, and
for MSVC conversions litehtml::tstring/tchar_t <->
QString::fromStdString/QString fails because the former was wstring and
wchar
Also position independent code is needed on Linux

Change-Id: Iec8dd0d9d38a07cd1c4db49c9edf10e3d1d5b156
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-20 12:50:37 +00:00
Aleksei German
1273081224 QmlDesigner Gradient Preset Dialog UX improvements
Tooltip, custom preset renaming improvements.

Change-Id: I9c8acf4542bb732c2912796946cc9548c9be7d0e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-09-20 10:27:06 +00:00
Thomas Hartmann
e1f2fea488 QmlDesigner: Check complete type hierarchy for hints
A type can have hints provided by the .metainfo files.
Without this patch hints from parent classes/components
are not inherited.
Therefore we have to walk the class hierarchy. Once we find hints
they have precedence over all hints from further parent classes.

Task-number: QDS-1056
Change-Id: I8dc8e7e92939e8e7eb834b94afbf5e396e8975de
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-09-20 10:16:09 +00:00
hjk
e9c0ba9997 Debugger: Do not forget perspective layouts on unused perspectives
Amends 5273ef2a8a

Use cases mentioned there should still work.

Fixes: QTCREATORBUG-22938
Fixes: QTCREATORBUG-22286
Change-Id: Ie7bb6b7ea6d05a94cbeeb5b8021dc638548778d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-20 10:09:44 +00:00
Leena Miettinen
413b0b6279 Doc: Describe new build options
- Scheduling running projects after they are built
- Building for run configuration
- Continuing building other apps if one fails during "Build All"

Change-Id: I9f161199394495944c6e8482b50dd9a2b4c8a92d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-20 09:39:50 +00:00
Orgad Shaneh
06b95a0269 CMake: Fix typo
This amends commit 4a20a596c8.

Change-Id: I67ef326c54702162ad56136e66c2f66bb407343e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-20 08:48:31 +00:00
Orgad Shaneh
064e71afbd Help: Fix build
QWebEngineUrlScheme was introduced in Qt 5.12.

This amends commit 8d3e4c03f0.

Change-Id: Ibd22d97f582a31ad31f12ae37a028c5058a6dd3b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-20 07:43:11 +00:00
David Schulz
e24ef9ca08 LanguageClient: always reset code assistant providers
Change-Id: Ic31eb11822b0ca1d82d0274f9b01749cebeecb2b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-20 06:59:19 +00:00
Eike Ziller
194f4fca4c Help: Add litehtml as submodule and optionally use that
Change-Id: I528dd661eb0db92e6252ddba7fa38ab58496611a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-09-20 06:25:04 +00:00
Eike Ziller
8354d426de CMake build: Fix additional feature info
They were always printed as enabled, because the
condition is not evaluated within add_feature_info

Change-Id: I9e50648d037aebecdb895d4ce5f4de7c1fee3ead
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-20 06:07:13 +00:00
Christian Stenger
a8cad2038e AutoTest: Tweak run after successful build
Make it possible to distinguish between all and selected
test cases also for the automatic run after build feature.

Change-Id: I91715a7ae4f09cea2e31844940a6b21ae9e62157
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-20 04:43:14 +00:00
Cristian Adam
4a20a596c8 CMake Build: Use shared precompile headers
This will make the build directory size smaller, as only two
pch files will be generated. Not one for every target.

Change-Id: I3eec91e7536eab1c62bff8843f075f0ef7b5fff6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-19 11:38:34 +00:00
Cristian Adam
ccab835455 Debugging: Enable Windows debugging for clang tools
On Windows the debugging of clang tools is not working due to the
nature of how processes are started.

This makes it possible to use DebugViewer or DebugViewPP

Change-Id: I2c1e4bb7a8fafd6f07570e5d2ba4df5b44e9d44d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-19 10:43:12 +00:00
Cristian Adam
f275a1fa28 CMake Build: Fix CMake configuration when BUILD_WITH_TESTS=ON
The GMock/GTest unittest was not working with the latest translation
patches.

Change-Id: I83e337c6278cb93344c734c05d090a65def34a3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-19 09:55:30 +00:00
Tobias Hunger
a33cb335f7 CMake: Fileapi: Make ids unique per compile group
Make sure to generate unique ids for each project part to unconfuse the
code model.

This was never triggered so far since before PCH support all my test projects
ended up with exactly one compile group per target:-)

Change-Id: Ida34f71f77cdf679fea7007f13ac19713175d916
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-19 09:53:52 +00:00
Tobias Hunger
454261aaa2 CMake: Support pre-compiled headers in CMake fileapi reader
Adding this to other readers makes no sense: PCH support in cmake
is younger than fileapi.

Change-Id: I4cd88882764ab8a8f81316a17098878c8e3699eb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-19 09:52:53 +00:00
David Schulz
f7453adda2 LanguageClient: export manager, client and settings
Change-Id: I8827fb1c36a41ab76b9509cdbf008e9f2309fd6c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-19 08:54:06 +00:00
David Schulz
59c4d92186 LanguageClient: Fix typo
Change-Id: If565199b92b45c2c2fe7069180613e61d25e7738
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-19 08:53:55 +00:00
David Schulz
468f604900 LanguageClient: have one active client per open document
open a document in all clients supporting the document, but have just
one client that provide functionality like highlights, completions, and
find usages.

Change-Id: I6bd72eb022005ed643fefd1da139d482f4dd5279
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-19 08:53:47 +00:00