Commit Graph

61421 Commits

Author SHA1 Message Date
Eike Ziller
b4928395d7 Help/litehtml: Fix submodule build on Windows with CMake
In debug mode. Mixing debug and release is not supported in all
configurations, so just enable code optimization flags in debug.

Change-Id: Iafa8c49825e02c35a9998bf84832710964ae7601
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-26 09:30:52 +00:00
hjk
08149a7c34 Debugger: Improve assignment to simple expressions with LLDB
Task-number: QTCREATORBUG-22696
Change-Id: Ifa084046ff83ba071c9e96a4221d7b4a09bfc22f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-26 08:48:54 +00:00
Eike Ziller
c3a41d5f51 Fix CMake build
Python plugin now depends on LanguageClient

Change-Id: I0b7f679a4ad459e36ccdf1ab9cd5823fadfa8cd3
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-09-26 07:51:21 +00:00
David Schulz
e232dfe2e6 Python: Check for Python language server after document was opened
Show an info bar entry with a one click solution to setup a language
server if the python which is most likely to be used for this file
has an installed language server.

Change-Id: Ia52bb043b543699527740951f68cc6be546833df
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-26 07:35:11 +00:00
Mahmoud Badri
b0f796e4e3 Prevent timeline bar item from going off limits
When dragging a timeline bar item or one of its edges, confine edges
so that they do not go beyond the timeline limits.

Task-number: QDS-1074
Change-Id: I029cfbe02cf07d1f9e5e5119283d2b94fca2b2f6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2019-09-26 06:58:53 +00:00
Cristian Adam
501e630df1 CMake Build: Build fix for MSVC
designerintegrationv2 needs to depend on Qt5::Widgets so that it will
get the Widgets PCH, which will not cause linker errors at Designer.dll

Change-Id: Id8a4847c5bf3fc235ca980282fb6497acc84b66f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-26 06:14:29 +00:00
David Schulz
ea5eb8890a LanguageClient: make client selector exclusive
Change-Id: Icc97a3d7a651881613ba91b60db8784274462424
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-26 06:09:52 +00:00
hjk
ae9925cdc1 Debugger: Mark docks as default-visible when resetting a perspective
Change-Id: I562a71de04335e8b4d34f90e7df3127fbb01ac5b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-25 13:20:36 +00:00
hjk
4013f0cdf0 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>
(cherry picked from commit 7f29fa2030)
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-25 13:18:06 +00:00
Christian Stenger
9a5826d19c Debugger: Fix debugging with LLDB 1100.x
Tweak handling for LLDB provided by Xcode 11 slightly,
as the state handling of the process went astray when
using the debugger Python 3 based.

Task-number: QTCREATORBUG-22955
Change-Id: Ie070049d210a570993507ed940d141237aab89ce
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-25 13:17:53 +00:00
Leena Miettinen
c751a165ac Doc: Fix title of Qt Creator Plugin for Qt Application Manager docs
Change-Id: I35f4cc8d1f948a01a956cbb2c24544fdf5a30fa4
Reviewed-by: hjk <hjk@qt.io>
2019-09-25 11:43:08 +00:00
Alessandro Portale
a38adc0056 GccToolChainFactory: Handle .exe suffix in detectForImport()
Allow detection of gcc compilers with .exe suffix.

Change-Id: I15e1050e872be0bac8934ecd4aa81914644948b5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-25 09:55:20 +00:00
Christian Kandeler
ca1cee0956 Wizards: Fix JSON file template for Qt Creator plugin
As of commit aaa8beab88, template files for XML wizards go through
Utils::TemplateEngine::processText and thus need to have their
backlashes escaped.

Fixes: QTCREATORBUG-22945
Change-Id: I33aaa73b66be065f0ba3ed9b45cb8c9558f70d31
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-25 08:31:25 +00:00
hjk
a82b40e037 Debugger: Move convenience function to only user
Change-Id: I50952521bdd45faa8a31da674e7ea5f0796d75d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-25 08:06:03 +00:00
hjk
b63034b551 Debugger: Move showModule{Sections,Symbols} to DebuggerEngine
A bit closer to where the functions are used. No real change.

Change-Id: Icbad68bd31d85caa59980316537ee532faf2d7ef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-25 08:05:51 +00:00
Eike Ziller
2551a20b3c Add changes file for 4.10.1
Change-Id: I61cbaf241834c9e023c578e4ddb3dd46006ae4d1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-09-25 07:39:14 +00:00
Leena Miettinen
b144e7c4f8 Doc: Generate translation source files when creating projects
Task-number: QTCREATORBUG-7453
Change-Id: I1d0af93c413f306287f5faef00e56180764133d1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-25 07:06:56 +00:00
Eike Ziller
1bbc62f9e4 Merge remote-tracking branch 'origin/4.10'
Change-Id: Ic7144b8ae429707cd120719f3445b624c0b83564
2019-09-25 08:30:27 +02:00
Orgad Shaneh
e43288baf4 Revert "Qmake: Show real effective make call on Make step"
This caused passing "-f Makefile.name" twice to make.

This reverts commit aa198b7e88.

Change-Id: I8fb2a014a76d3c6d9857881aa91b2664866269cd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-09-25 05:20:20 +00:00
Cristian Adam
f88ad0e9d0 CMake Build: Allow building with Qt5 and Qt6
Emulate Qt5's functions/targets with Qt6 equivalents.

Change-Id: I6bfc5c8a649f0ddc5f1117bc5b2d0f41cb72c821
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-24 16:05:23 +00:00
Eike Ziller
4ea0d22d4c Help/litehtml: Don't call cmake from qmake build
Change-Id: I42a3384dd02e8f7b714a820673d5db094642f668
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-24 13:56:35 +00:00
Eike Ziller
284eab836c Help/litehtml: Fix text search in presence of multi-byte characters
std::string::size is returning byte-count, not character count, in
contrast to QString::size. Do not mix.

Fixes: QTCREATORBUG-22970
Change-Id: I865ca0c13a08fb500b6526ba6ee3207359e75107
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 12:58:21 +00:00
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
Eike Ziller
e20d90d9e3 Help/textbrowser: Keep text at the top visible when resizing and zooming
After resizing/zooming scroll to the position of the top element before
the resize. This allows us to remove the hack that delays jumping to the
anchor of an URL as well.

Fixes: QTCREATORBUG-4756
Change-Id: Ife29ba1cd0ad60448052b4d06a5dce7cc6bdf4ed
Reviewed-by: hjk <hjk@qt.io>
2019-09-24 11:46:52 +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
Andre Hartmann
02fcc80f09 Doc: Remote Linux does not store passwords anymore
The possibility to store passwords was removed in
Creator 4.9.

Change-Id: I21e417041077f15fbb364b64f4a5c4e62e92f46a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-09-23 11:17:20 +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