Commit Graph

60910 Commits

Author SHA1 Message Date
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
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
David Schulz f0ad5813b9 LanguageClient: more FileName to FilePath renaming
Change-Id: I803211d462b442b6881a02e870d2cd816675e0d9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-17 08:15:40 +00:00
hjk 7f29fa2030 Debugger: Use Python 3 prints also in pure LLDB bridge code
Task-number: QTCREATORBUG-22955
Change-Id: I762acd289c50fe5817b3e6e915f35c2388c74d44
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-17 07:26:17 +00:00
David Schulz a90c9c6409 Python: extract PythonRunConfiguration and PythonProject
Change-Id: I4ff0f43fdb8beb9a7f2f7816197de0c796da8d89
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-17 06:56:51 +00:00
Christian Stenger 358574f44d Android: Fix compile for gcc 5.3
Change-Id: Ic70d6507babeb4b782ace7fb62c37485335311e1
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-17 05:28:31 +00:00
Tobias Hunger cbfd7c4bf8 QtSupport: Allow for Qt6
Detect Core library for Qt 6 as well as Qt 5.

Change-Id: If4b7c0ad3adad796e56706880d03f4824b8ebcd3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-16 13:41:25 +00:00
hjk 4a55d995e1 Cmake: Replace connect/disconnect of builddirmanager
... by a permanent connection, and only evaluate output for the
active build configuration.

Task-number: QTCREATORBUG-21235
Change-Id: I06f87f7ea680f8f25687a0c5ffc936c801ab7de0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-09-16 13:06:10 +00:00
Eike Ziller 8d3e4c03f0 Help/QtWebEngine: Prevent remote content
Showing remote content adds security implications

Change-Id: I0b5672d9c814b55aca05ea8a28da4f5e0e9f42fd
Reviewed-by: hjk <hjk@qt.io>
2019-09-16 11:34:23 +00:00
BogDan Vatra 6b31f9cf23 Android multi arch support
[ChangeLog][Android] Android multi arch support for qmake

Change-Id: Ib8b1874604a3392130c96fbc00b26713b3d788ae
Reviewed-by: hjk <hjk@qt.io>
2019-09-16 07:34:54 +00:00
David Schulz 567a20843f LanguageClient: remember opened documents by TextEditor::TextDocument
... instead of Utils::FilePath

Change-Id: I4ca38ca127fbb1a503a0cb9b5228cab325519550
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-16 07:31:49 +00:00
Thomas Hartmann 73106f330a QmlDesigner: Fix pasteKeyframesToTarget()
Because we attached the model inside the transaction,
then transaction begin message was not handled properly.

Change-Id: I77a56d7874061c0af907047e38a37fec4dab12c1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-09-13 11:39:44 +00:00
Eike Ziller a1d21fb8fe Help/litehtml: Fix resolution of font name
- check case-insensitively
- need to break after the first font was found in database

Change-Id: Iddd58ec88d61b2506965a618441205e8176e383f
Reviewed-by: hjk <hjk@qt.io>
2019-09-13 11:28:39 +00:00