JsonTreeItem is used to visualize json values in tree views. It
will automatically generate new child items if the value contains an
object or array.
Change-Id: I316ea9f626050c21c05cbfc0628d0a5e20ad5a49
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
We generate one big file per project part so the preprocessor is skipping
the recurring includes.
This generated many errors about missing macros but we don't care
much about them during dependency collection step so we just
silence these errors with ignoring diagnostics consumer.
Change-Id: I5581d623b5d5f9995496252735577ea6b54790d9
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
We now support source file and not only header files and the file path is
now automatically added to the end. This removes quite some clutter.
Change-Id: I74eabd262e6c7e5f4d523e3a3cd194bd3efe1ef3
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Sometimes we used "issue" (treeview header, or filter line edit) and
sometimes "diagnostic" (go to next/pervious diagnostic actions).
Stick to "diagnostic" as it's more generic and avoid conflicts/confusion
with the "Issues pane".
Task-number: QTCREATORBUG-19047
Change-Id: I26b814b117a8fd475c080f0ef79c9fabc1446406
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This is now using KSyntaxHighlighter, adapt accordingly.
Change-Id: Ie5dac469d326c5165f5f8513bc3adc5f6be5e48b
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Do not use functions that are not supported with
the minimum supported Qt for building QC.
Partially reverts 963dc84cc5.
Change-Id: Ife03143a7cf5a8f428754040e7004efe42d70a8a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
We check the child nodes of the current project and only add the new
file if it doesn't occur there already.
Fixes: QTCREATORBUG-19546
Change-Id: Ic784a117515eb7e433ebf1d08db1708da6cf5440
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Show an editor info bar when multiple highlight definitions can be found
for a single file or mime type. Add a combo box to the info that allows
the user to choose between them.
Change-Id: I07278d065e19d4e04fba24a6d789c8b6c9f55d60
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
We don't treat the kernel symbols as special anymore and the extra row
messes up the other labels.
Change-Id: I562b683322172a9b166a89b7c7087b4e69a1646c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
We need to set the "panelwidget" property for the foreground color to be
set. Now that we do this correctly we don't need to hack around in the
palette anymore in QmlProfiler.
Change-Id: Icdc737e1c74d16ec76a12dbbdf6f8f64062bd19c
Fixes: QTCREATORBUG-21961
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
In some cases indenting/formatting after special characters can
break the code. Let's try to avoid such corner cases.
Change-Id: I8918bc460af31d696e49f60e0ea85f34e9ff5664
Fixes: QTCREATORBUG-21474
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
If formatting is applied on save do not create a new replacement
for each replacement action.
Instead join the last edit block to make it possible to undo the
formatting in one go.
Change-Id: Ie0cb66eb5e76998e5045c1183f5f796e5a718659
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This action does not open a dialog, it only duplicates
the current file and adds it to the project.
Change-Id: I9a7ba23b7168622656659ccb28a8a41b0dc7ddac
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Somehow the function to select the executable broke
and changed to "Choose Directory".
Fixes: QTCREATORBUG-21937
Change-Id: Ifc596df276a3e26bb063d5b856fca29f9db227df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
And if multiple topics are found in the index, show the topic chooser
dialog that we already have for the help index.
Fixes: QTCREATORBUG-12704
Task-number: QTCREATORBUG-15959
Change-Id: I7afa6f44bbecc12f602aaaa4a11209ec72399689
Reviewed-by: David Schulz <david.schulz@qt.io>
* Remove QLatin1String
* Use QOverload
* Use auto where possible
* Sort includes
* Remove superfluous lines
Change-Id: Iaa524fdb632398feab8431cb91bffe6330a57be8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
The value of a terminal aspect is not exported in toMap() unless it was
set by the user, so we need help from the project manager to get the
default value. The QbsRunConfiguration already works this way.
Maybe the terminal aspect could export all of its information and we
could drop the fromMap() override from both run configs, but that should
be a different patch.
Fixes: QTCREATORBUG-21918
Change-Id: I712158f4bcb4dbd3827568dd4e1fe8b21d802f47
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
It is promised to be compatible with prior versions.
Change-Id: I85e433382a66c82e9880401c3a983fef06c03606
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Fixup of dd0156d1fa
For some reason Xcode removed the closing tags when editing the
Info.plist file in its editor...
Change-Id: Ib9e53dce0be13ad0bb03ae46386c632b448b6a9a
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Otherwise, there will be no output parser for toolchains that register
only a C compiler.
Change-Id: I3f3448ee85a0dc03701a6c9b21ec23b1d8ca2f22
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Value stored to 'newPosStart' during its initialization is never read
[clang-analyzer-deadcode.DeadStores]
Change-Id: Ib8e16cd1bfc3930588e4c10639f463d4f742da0e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
cppincludehierarchy.cpp:516:8: warning: UniqueConnection is not
supported with non-member functions
Change-Id: I9d4e743aa2fb4c05df85f566ccea7da98587d31b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Either alone on a line, or with text before, or with
text afterwards, separated by colon, space, tab, or
brace as before.
Especially thought to capture cases like
file:///home/user/main.cpp:157
on a single line, but accept that also as long as
the file link is separated by a word separator from
the sourrounding text.
Fixes: QTCREATORBUG-20406
Change-Id: I25bceb186818c9ea680741573a806f66395c3e16
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
... unless it is already contained in the text.
For the following text:
Lorem ipsum dolor sit amet,
consetetur sadipscing elitr.
Typing "con|" now should only provide "consetetur"
as proposal, as "con" is just currently typed and
therefore no valid completion.
This avoids pressing line down before the first
valid proposal is available.
The exception is, if "con" would already be used
elsewhere in the text.
Change-Id: I7034f4b2b2ebe70e98acc616fb7590118faac0af
Reviewed-by: David Schulz <david.schulz@qt.io>
Use QString instead of an empty QStringLiteral
[-Wclazy-empty-qstringliteral]
Use the static QFileInfo::exists() instead. It's documented to be
faster. [-Wclazy-qfileinfo-exists]
Unused CppTools::ClangDiagnosticConfigs
[-Wclazy-unused-non-trivial-variable]
Change-Id: Ia4098d1191d6fcfc6e0774f71c39acdea3f0f36c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Simplifies code and reduces (visible) static_casts on
the auto test plugin's side.
Change-Id: I31ae3e4f1a32d3e74527ccb36080944848f3b1fa
Reviewed-by: David Schulz <david.schulz@qt.io>
Output parsers are created elswehere these days.
Change-Id: I196d158747883df091f7b55354c3580515d9759e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>