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>
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>
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>
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>
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>
... 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>
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>
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>
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>
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>
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>
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>
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>
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>
Otherwise can create out-of-memory situations on 32bit machines
with many cores.
Change-Id: I7cc862d30079ff0fb11a3c088ae38d73afce4b1e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
... 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>
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>
Should help to drill down to individual expensive dumpers.
Change-Id: I983ba075231784f71dd9d5c3bda375a3ee508bf6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
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>
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>
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>
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>
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>
Not depending on CppEditor caused linker errors
regarding the cpp highlighter class.
Change-Id: Ib127cbe8e7d8eaa9e7d222dea88585164e49cdd2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
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>