Commit Graph

58968 Commits

Author SHA1 Message Date
Marco Bubke
5ab057746c CppTools: Add pre system include search path per project
Sometimes you want add a pre system include search path per project to
overload some system header for indexing. This can then even be checked in
the repository.

Change-Id: Ib103e5935d0553aa94522ed736f8c4eb2405a093
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-23 09:08:33 +00:00
Marco Bubke
3bd653416a Clang: Add global preincludes search path
Some header like windows.h adds dangerous defines which are not used but
break the indexing like "small". We now preinclude them and undefine the
dangerous the defines. This can be used for speed up the indexing as we
could provide stripped headers.

Change-Id: I2a89a4719ada7591e0e7a1ecc411b2e0ffd40d9a
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-23 09:08:25 +00:00
Marco Bubke
0fbc16cd7d ClangPchManager: Fix alive message
Computing the dependencies can take quite some time. So it is better
to ensure that the alive timer is fired.

Change-Id: I0b372ef73a8a5e6716673ba9457d424151a762bb
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-23 09:08:15 +00:00
David Schulz
3927ca2ffa ClangRefactoring: fix missing comma in qbs file
Change-Id: Ibfd8bd7f8ab0a75d346590b6ab72d3b5ca452b09
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-23 07:52:08 +00:00
David Schulz
43f2e5486a ClangRefactoring: fix compile with qbs
Change-Id: If2d4fbc32c2b042dc3fdd4169cfb5122930966aa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-23 07:21:08 +00:00
David Schulz
b28501e3e9 LanguageClient: remove unneeded forward delaration
Change-Id: I02e8dd07f8f04c82cdf31fc536c7d23924539296
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-04-23 06:44:42 +00:00
Christian Stenger
e1deae844e CPaster: Remove KDE paster
There is no official API anymore after the latest change of
the KDE paster and it was probably almost no more in use
after the need for credentials.
Remove everything related except the base implementation
of the sticky notes part as it could be re-used for another
paster that based on the old approach used by the KDE paster.

Change-Id: I0e2c3f279bc9eaa373147ee2909c9538f0d62498
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-23 06:44:19 +00:00
David Schulz
ad703e108b LanguageClient: move current settings to manager
In preparation to have relationship between clients, settings and
project to one another in the manager.

Change-Id: I00ae15abe03c54b4a58e429d67d6ff939662cce6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-23 06:44:12 +00:00
Orgad Shaneh
7ed924915e TextEditor: Remove unneeded dependency on gui-private
Change-Id: If37a3d5e1c9e196fdddb65f0fa61031c3a4ca1f5
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-04-23 05:44:53 +00:00
Orgad Shaneh
cdb4f6cdf0 OutputWindow: Fix read-onlyness for output windows
... when setReadOnly is called before setFormatter (or setFormatter not
called at all).

Like the compile output window.

This amends commit 07645527a3.

Change-Id: I08ec2bcb2895df518915dcb1e8b102348b97cc23
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-18 14:52:29 +00:00
Ivan Donchevskii
9d4c7b1c42 Unit-test: Fix build
Change-Id: Id89bbd391117d998bb6e8d4607786ac48580a7f4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-04-18 14:29:07 +00:00
Alessandro Portale
43d83f2a69 StudioWelcome: Make the hidden splashscreen recoverable
The user choice made on dialogs with a "Don't show/ask again" checkbox
should be resettable via the "Environment->Interface->Reset Warnings"
setting.

This patch let's the StudioWelcome splashscreen use the dontshow/reset
mechanism of CheckableMessageBox for that.

Task-number: QDS-303
Change-Id: Iec4ea8bc58c6cfdd8803741610b6fd411fb7f5ef
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-18 09:11:56 +00:00
Alessandro Portale
fa11c2f022 JSON C++ Library wizard: Avoid some empty lines in output
Change-Id: I251299a2faf8580d199d6b0c0688904f59f13311
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-17 14:58:22 +00:00
Ivan Donchevskii
53c407bc0c Clang: Fix build with clang-8
Clang-Tidy checks and Clazy flags updated.
CLANG-UPGRADE-CHECK done.

Change-Id: I1ca585c5c3c77a7f183719df9c262603150914e8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-04-17 12:13:36 +00:00
Alessandro Portale
db89e78c63 StudioWelcome: Add StudioFonts import path for splash screen
Change-Id: Ibe82e734dbc0495b092c30eec4be5b05290719b8
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-17 11:48:35 +00:00
Eike Ziller
cb63706f83 Move C++ Library wizard to JSON
And add build system option (QMake & CMake)

Task-number: QTCREATORBUG-17308
Fixes: QTCREATORBUG-14605
Change-Id: Ibfadc4bffeabd7ec11271647460a21b6400625c7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-17 10:53:21 +00:00
Orgad Shaneh
f213f6176b UnitTest: Fix compilation
This amends commit a5ee354b19.

Change-Id: I29938d30187fde1ac05d824276cb4b02b561645a
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-17 04:34:31 +00:00
Andre Hartmann
b2700d2da4 VCS: Add font settings and zoom to output pane
Change-Id: I2848bce2a851d9db953d1c218f1694877874e7df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-04-16 14:20:41 +00:00
Andre Hartmann
48073b2990 IOutputPane: Refactor zoom function into base class
Try to make zoom and font handling in the panes more
similar and put common stuff into IOutputPane.

Change-Id: I59c38c5eecbf67b7ca6c9d84a6f61b1292a787df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-16 14:20:22 +00:00
Marco Bubke
e127d599ac Clang: Fix crash if path does not exists
Change-Id: I89cc2471c18bc25fdd46c1ad5901c199332cbd3e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-16 13:59:32 +00:00
Christian Stenger
c65f5ee3c2 ProjectExplorer: Avoid nullptr access
The path chooser for the compiler command is
initialized only for manually defined compilers.
Skip the call to apply() on the options page
when processing auto-detected toolchains to
avoid a crash.

Change-Id: Ib795d233f0372ef74e42b323544b0bbd95c27646
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-16 10:02:35 +00:00
Ivan Donchevskii
a5ee354b19 CompilationDatabase: Force QString implicit sharing
Most of the flags in compilation database are the same,
let's share them by inserting them all into the temporary
QSet of QString-s.

Change-Id: I7d9b410b4b0bee40247434b49371bd37214d4c59
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-16 09:52:59 +00:00
Cristián Maureira-Fredes
e76efa69d5 QmakeProjectManager: Remove python file type
This is a partial regression from b503ea7f06.

The main goal was just to have an overlay on the Python files,
but since qmake and python don't really interact, adding a new
FileType triggered all the contents from "Other sources" to
be duplicated in the "Python sources" node.

The Python sources node is not necessary at the moment,
so I remove it to avoid duplicated tree elements.

Change-Id: I61e9e51327689636328a746059159c962270e805
Fixes: QTCREATORBUG-22292
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-16 08:43:12 +00:00
Eike Ziller
1dec7c2d63 Merge remote-tracking branch 'origin/4.9'
Change-Id: If72840c903ec38281c7f76f7b3595197bde96679
2019-04-16 10:18:26 +02:00
Leena Miettinen
fe074039ad Doc: Update info and screenshots about using Qt Quick Designer
Change-Id: I3e1f803b48fcd4e89d9a4570cdba97f37b0106d7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-04-16 07:25:17 +00:00
Christian Stenger
16ae5bf8e0 Baremetal: Fix compile for older compiler and Qt
Change-Id: I7756fcb575c5e508933d3bffb2926b90b1e70748
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-04-16 05:08:31 +00:00
Denis Shienkov
8f8ff686df bare-metal: Add support for SDCC toolchain
This patch adds support for the SDCC toolchain:

 * http://sdcc.sourceforge.net/

Now QtC's compiler page have additional 'SDCC' selector which
allows to user to choose a desired compiler. Main point is that
the SDCC supports only the C-language, so the C++ selector is
not available.

When the compiler is added, the QtC will tries to detect the
compiler ABI.

Also it is implemented the compiler auto-detection; each toolchain
is displayed with its detected version.

Currently is supported the following architecture:

 * 8051 (aka MCS51)

In addition, were added changes to the QBS Project Manager
plugin to make it work with QBS .

So, now do not need to do an additional 'hacks' into the
'qbs.toolchain' property of QtC SDCC kit.

Following features are not implemented yet:

* Debugger integration.
* Compile output parsers.
* Support for other architectures (z80, ds390 and etc) .

Change-Id: I92b97a81152d94cabf569e2013fc7260b8d7b953
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-15 16:35:22 +00:00
Christian Kandeler
31517f00bb Wizards: Let user decide which project file to use
When importing projects, it can happen that several files are
encountered that could serve as the main project file. Until now, we
basically opened a random one, which was less than ideal. Now the user
can choose.

Fixes: QTCREATORBUG-17828
Change-Id: Iec08c942d0f9ff349c9752503c8157556f07b416
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-04-15 14:58:52 +00:00
Christian Stenger
a1944d800f Fix build when using QTC_DISABLE_CLANG_REFACTORING
clangsupport is built unconditionally and has a hard
dependency on sqlite. So, disabling sqlite when disabling
ClangRefactoring does not make sense.

Change-Id: I44efbcaa64f4adff064c37d0b8a69899c5d9d8c9
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-04-15 10:38:26 +00:00
Andre Hartmann
49ac912dac AppOutputPane: Add history completer to filter line edit
Change-Id: I520f8b54b327488f9a16d13a8ff2f84d431a2930
Reviewed-by: Alessandro Ambrosano <alessandro.ambrosano@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-15 06:47:24 +00:00
Andre Hartmann
0b58ad3a6c Git: Give BranchAddDialog for tags a parent
Amends 0161729c23

Change-Id: Ie4f5a716e397661d281287a5ac352093cc220035
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-04-13 19:53:23 +00:00
Eike Ziller
75696f9639 Merge remote-tracking branch 'origin/4.9'
Change-Id: I95c56cc9371959f96afde3677fc82481f36f66c8
2019-04-12 14:31:01 +02:00
Eike Ziller
07a5c196c4 Packaging: Restrict 7zip to 2 threads
Otherwise can create out-of-memory situations on 32bit machines
with many cores.

Change-Id: I7cc862d30079ff0fb11a3c088ae38d73afce4b1e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-04-12 11:51:22 +00:00
Haxor Leet
131ce54bee Russian translation: fix untranslated 'space' in editor
Change-Id: I9594f8c201ce785d740e1e59ed96fcce9ad3ffd6
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2019-04-12 10:43:24 +00:00
Christian Kandeler
d1c3b5bd71 ProjectExplorer: Remember build step expansion state
... when switching targets.
If a user expands a build step and then switches the target, it's
reasonable for them to assume that the step is still expanded when
switching back.
Ideally, we would also do this for aspects (if only for consistency),
but unlike for build steps there's no central code location, so let's
leave it at this for now.

Fixes: QTCREATORBUG-21343
Change-Id: Ic142ab5d676bf7d3b6aeabb6f7a26be7bd18f22c
Reviewed-by: hjk <hjk@qt.io>
2019-04-12 09:36:04 +00:00
Christian Kandeler
ca39832c5d ProjectExplorer: Make sure the target setup page does not persist
The TargetSetupPage is not designed to stay around after setupProject()
has been called. So let's throw it away in the TargetSetupPageWrapper
and create a new one on demand.

Fixes: QTCREATORBUG-21242
Change-Id: I1d6f4214e7bfdfef9d58593007728612642b90d6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-12 09:12:09 +00:00
hjk
e95fd876aa Debugger: Make the time stamp recording option work for single items
Should help to drill down to individual expensive dumpers.

Change-Id: I983ba075231784f71dd9d5c3bda375a3ee508bf6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-12 08:32:52 +00:00
Eike Ziller
57cac11e20 Make task details visible by default
It used to hide to bottom part of the vertical scrollbar of editors, but
it moved a bit to the left. It will still hide some UI, but the issue is
probably less ugly now, and can still be turned off by users.

Change-Id: I9522658f658300212cd205f9e07b165b2dd393f8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-12 07:20:09 +00:00
Orgad Shaneh
82bf5e2906 Qbs: Enable ClangRefactoring by default
This amends commit 89e70ca785.

Change-Id: I09f7075075e2244a031e4c20496272f382ec020d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-11 21:50:45 +00:00
Orgad Shaneh
7cc7dff6dd ProjectExplorer: Fix typo
This amends commit 6cb2e71c38.

Change-Id: Ib87c948ef4a3b1e1edb909c3099e95e0943f0388
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-11 21:50:17 +00:00
Alessandro Portale
da84dd1b6d LanguageClient: Select server entry in settings after "Add"
Indicates what to do after adding a server.

Change-Id: Ia68e2944fa18d031c1b7e2fa93723bd861bfded9
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-04-11 13:26:29 +00:00
Christian Kandeler
7885bc899f ProjectExplorer: Fix kit duplication in target setup page
Do not add a modified kit to the UI if it was already present.

Fixes: QTCREATORBUG-21240
Change-Id: Ib4887902402734ce95bde21c26ec9188ee9e55da
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
v4.9.0
2019-04-11 12:49:20 +00:00
Alessandro Portale
44f5b9318b Core: Turn progress detail expander into a real icon
Change-Id: Ie6173cc041b96cd10879189bedce1104cdbe7a33
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-11 11:12:33 +00:00
Marco Bubke
89e70ca785 Enable Clang Refactoring compiling
We change QTC_ENABLE_CLANG_LIBTOOLING to QTC_DISABLE_CLANG_REFACTORING, so
you now have to opt out instead of opt in. We bump the minimum version of
LLVM to 7.0 too because we mentioned that in the README already.

Change-Id: Ic4ee29a74a3ed79634ed8ea50be84d7bdc7db4ef
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2019-04-11 10:46:19 +00:00
hjk
0a8a9f60e1 Debugger: Coordinate breakpoint rampdown
The update of the global came too early to properly check the
condition whether it is still used. So fully remove usage first,
then update, so the check operates on intended data.

Fixes: QTCREATORBUG-22284
Change-Id: Iecdbdc371396132c88d0918f7cb253cf2627e0e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-04-11 08:14:30 +00:00
Alessandro Portale
2f6d43745a ImageViewer: Don't blur the ImageViewer background pattern on HighDpi
Simply don't draw the background pattern with interpolated scaling.

Task-number: QTCREATORBUG-22280
Change-Id: Iae17f4ce663ae82ee00cbebaa9830b5bb86d5735
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-04-11 07:12:02 +00:00
Ulf Hermann
88c790b72e QmlDebug: Modernize QmlDebugConnection
Use nullptr, auto, and initialize members inline.

Change-Id: Ie031057e8f4a3a74c22a86b343d8b5c265454550
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-04-10 19:46:09 +00:00
Alexandru Croitor
50522c6e7a Fix qbs build of clang format product
Not depending on CppEditor caused linker errors
regarding the cpp highlighter class.

Change-Id: Ib127cbe8e7d8eaa9e7d222dea88585164e49cdd2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-10 16:40:37 +00:00
Christian Kandeler
741dc7bfea QtSupport: Warn about Qt kits without C++ compiler
Fixes: QTCREATORBUG-22177
Change-Id: I85fcfdf267f01f76956eb954eec663f1a1b6ae52
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-04-10 16:16:56 +00:00
Alessandro Portale
e3586d164b QmakeProjectManager: Fix warning about build/source directory levels
While configuring a project, a wrong warning "Warning: The build
directory should be at the same level as the source directory." was
shown in some cases.

The reason was the innocent assumption that "projectPath" was just the
directory part of the project root. It was in fact the full "file path"
of the .pro file.

Change-Id: Icc5df51423b4bb05098d9d42cd328af949f85005
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-04-10 15:08:56 +00:00