Commit Graph

61421 Commits

Author SHA1 Message Date
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
Leena Miettinen
6200af0822 C++ class wizard: Update screenshots
Change-Id: If3135a1fdc93021b2c12fa40c9fab574025dad53
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-19 08:18:04 +00:00
Milian Wolff
7d1b48f5ee Compile ctfvisualizer plugin with CMake too
Change-Id: I746bda8bae7104dc79ebe0873cb75b052500174d
Reviewed-by: Tim Henning <tim.henning@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-09-19 07:16:28 +00:00
Orgad Shaneh
73d3edf383 ClangRefactoring: Fix MSVC warning
indexdataconsumer.cpp:70: warning: C4138: '*/' found outside of comment

This amends commit 428b24fcb5.

Change-Id: Ic84d4ab135718738a99c5babc908b8cdd1b55bc3
Reviewed-by: hjk <hjk@qt.io>
2019-09-18 16:42:23 +00:00
hjk
05906c9be9 Debugger: Code cosmetics
Change-Id: I8759b5a16385b6abde9680ad6c46be5b0e2abdfc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-18 14:11:51 +00:00
hjk
e51059c515 Debugger: Reduce scope of explicit use of perspective windows
Maybe these can be created lazily later.

Change-Id: I1ebcbd99b2149e96197bbff7f7c877f609e126ad
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-18 14:08:57 +00:00
Eike Ziller
fe62dde830 Fix conflict between presentationMode and warp indicator
With presentationMode turned on, the search shortcut display can hide
the wrap indicator. When showing a text indicator and a pixmap
indicator, simply move the one shown later a bit down.

Fixes: QTCREATORBUG-15371
Change-Id: I015dc6ebab29f2f4d863e68359f2bcaee706c805
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-18 13:28:56 +00:00
Christian Stenger
c9e536b9eb ProjectExplorer: Use correct guard in connect
Change-Id: I1784de2914d1c930c0b38fb3919cb8cfdc97dcf0
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-09-18 11:23:55 +00:00
Cristian Adam
49584ec337 CMake Build: Add app_version.h to Devel package
Fixes: QTCREATORBUG-22802
Change-Id: I7616eab534127c806093240de430fe060d8bd0df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-18 09:50:41 +00:00
Orgad Shaneh
e38361b5a8 Lower priority on build
This should prevent slowdown of the IDE (and the rest of the system) while
building with all the CPU cores.

Fixes: QTCREATORBUG-5155
Change-Id: Icaadc53958f2d8e918035463e3c9344c91235615
Reviewed-by: hjk <hjk@qt.io>
2019-09-18 09:35:39 +00:00
Eike Ziller
057215eb10 Help/litehtml: Support global mouse selection on Linux
Change-Id: Ifef500e4777c8cad1b41cfd69240a31509abd8a0
Reviewed-by: hjk <hjk@qt.io>
2019-09-18 08:13:55 +00:00
Christian Stenger
89ae78fd89 AutoTest: Reparse only newly added frameworks
Instead of re-parsing all test frameworks trigger a reparse
just for the newly added as results for the other should not
have changed.

Change-Id: I6eb53da04bb927a884d6431e137bfe68f391f2ad
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-18 08:03:49 +00:00
Leena Miettinen
829cacfb87 Doc: Describe settings for opening files and handling open files
Task-number: QTCREATORBUG-21898
Change-Id: I8d6778f858ee8d328819c7377307beb6a9602bc4
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-09-18 07:14:24 +00:00
Leena Miettinen
99c0d3332e Doc: Add info about building apps for the web
Users have to install Qt for WebAssembly and the tool chain,
as well as add a kit.

Fixes: QTCREATORBUG-22927
Change-Id: Id22d5fb5e7d9e676d77f3f80880030cb9c1f61c7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-09-18 06:56:04 +00:00
Leena Miettinen
eb2691bd91 Doc: Describe applying font attributes from syntax definition files
Task-number: QTCREATORBUG-13545
Change-Id: I9449a1337f3de9bad00646392b3a5dbb7093b4eb
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-18 06:51:12 +00:00
Leena Miettinen
cf3cd8043b Doc: Add semantic highlighting to supported LSP services
Change-Id: I259aaac905b3950e10be48912e95cfca0596b1d1
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-18 06:50:53 +00:00
Eike Ziller
097892cc10 Merge remote-tracking branch 'origin/4.10'
Change-Id: I887fbf79ebfdf2af2719cb0d8aa56ab3dcb08fab
2019-09-17 16:20:52 +02:00
Eike Ziller
12ea33446d Help/litehtml: Support scaling
Scale the paint area for the HTML document

Change-Id: I75aa5f2bf057df7b2b160b2a005172ff88dbb2b7
Reviewed-by: hjk <hjk@qt.io>
2019-09-17 13:51:27 +00:00
Alessandro Portale
93ed44bfea CMake build system for sdktool: use extend_qtc_executable
Use extend_qtc_executable instead of extend_qtc_target.

In addition to using the correct function, this also allows to
configure Qt Creator without sdktool. extend_qtc_target does not
(yet) handle disabled targets, properly.

Change-Id: Ie99f158a814c14b3e207d6ca720da074671ac9a8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-17 13:33:36 +00:00
Christian Stenger
a03074e139 AutoTest: Remove leftover code and message
This kind of filtering has been removed long ago
and therefore it should be impossible to get triggered.

Change-Id: Ic9ea02b5446edaadda4d7f21846b37a2f8178505
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-17 13:09:14 +00:00
Christian Stenger
42edcc5771 AutoTest: Allow re-parsing with a sub-set of parsers
Avoid expanding parsing over all parsers if we trigger a
re-parse for a different parser and there is already a
re-parse postponed.

Change-Id: If74480fea2c671b32083fb7cf3f4dc4c418e6e33
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-17 13:05:44 +00:00
Christian Stenger
c5f7de0a99 Python: Remove unused function
Change-Id: If464646dfad66a1afabb9b5b9c6366a35597f370
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-17 13:05:33 +00:00
Eike Ziller
dff7e1515a Help/litehtml: Implement text search
Build an index between (visible) text and litehtml elements, so we can
use the regular text search functionality of Qt.

Change-Id: I2bf29628482f81c67b20b9a02d7808a330a073eb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-09-17 12:58:25 +00:00
Eike Ziller
3f2c0f0a5a Help: Fix build with Qt < 5.13
Change-Id: I82d43be1fc5a8efa1ff7088aa43c936717efe5df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-17 12:58:02 +00:00
Tobias Hunger
c3f31b6332 CMake: Handle translations
(Optionally) re-generate .ts files from CMake by running lupdate and
run lrelease to generate .qm files.

Changes to qmake:

* src/libs/3rdparty/syntax-highlighting/src/cli/kate-syntax-highlighter.cpp
  is no longer translated: It's a command line tool that is not used by creator
* src/libs/aggregation/examples/text/main.cpp is no longer included in ts files
* src/libs/qt-breakpad/qtcrashhandler/* is no longer included in ts files:
  It is not built right now

Change-Id: Iec018da86a111a68ec983a880cef2961b48ccdf9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-17 12:37:14 +00:00
Tobias Hunger
dac42e9e28 Wizards: Fix JSON of qtquick2-extension wizard
"\." is an invalid backslash escape sequence in JSON. QJSON accepts
this though and silently "fixes" the string by removing the stray
'\' character. This is QTBUG-78443 now, as a conforming JSON parser
should reject invalid data.

The string as "fixed" by QJSON is also not what we wanted in the
first place.

Change-Id: I070999957c6a0c3d0f1753d907ac460e9e341fc1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-17 09:30:55 +00:00
Tobias Hunger
2751f30c72 Wizards: Use valid Json only
The original version is not valid JSON, even though the QJSON parser
will accept it:-/

Change-Id: Id408e4b83a62bca358191cf6fe4b3a7ce7d7c59e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-17 09:30:46 +00:00