Commit Graph

55184 Commits

Author SHA1 Message Date
Christian Stenger
ef9c5e47bb Core: Turn soft assert into if clause
It is perfectly legal to have a plugin disabled that was
enabled before. If the respective plugin has an output
pane the respective setting had been stored and the pane
can not be restored when the plugin is not loaded.

Change-Id: I25910c44dba83faf3c52ae836f2e83d0e69236d5
Reviewed-by: hjk <hjk@qt.io>
2018-04-24 12:10:17 +00:00
Ivan Donchevskii
fd42415c05 Clang: Enable more Clang-Tidy checks
Some of the checks were activated in the Clang-Tidy
standalone application but were not in the plugin.

Change-Id: I7cb8ebc3b155b46c3f870b164790f074f6b29fb8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-04-24 10:36:13 +00:00
Ivan Donchevskii
5df7c12c5e Clang: Fix mingw libclang build
Mingw miscompiles one of the static variables
in Clang-Tidy which results in clang driver
wrong return codes. Making it a local variable
solves the issue.

Change-Id: Ic834419e30bd45bbe728ffeb46181692c802fa06
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-04-24 10:35:40 +00:00
Robert Loehning
da47a92611 Squish: Update Options dialog
Change-Id: Id0133ac1a52ae46add284252fe024075a79575c8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-24 08:56:14 +00:00
Nikolai Kosjar
787f0498ca Clang: Fix wrong QTC_ASSERTS
If the last editor is closed, "editor" becomes a nullptr, which is valid
value in this case.

Change-Id: Id5f92cb4367199d782e33acc37077103e9986644
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-24 08:16:53 +00:00
Alessandro Portale
3d42f98017 Core: Make IOptionsPageProvider::categoryIcon a Utils::Icon
...just like it is with IOptionsPage

Change-Id: I033891f1a908be24b05103cb13a4ef628994d2a7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-24 07:53:34 +00:00
Eike Ziller
ce84f64d1b TextEditor: Fix some static analyzer warnings
Use nullptr, do explicit double/float/int conversions, use constFirst.

Change-Id: I269718ade5c54ac613357f59c774e2f47e18a9df
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-24 07:46:49 +00:00
Alessandro Portale
98ab9e9d6b Core: Remove unused category_locator.png
Change-Id: I1115694c9f7994eab3b0b75450ed672ac2a04574
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-24 07:46:06 +00:00
Eike Ziller
f0bc650768 Change build button in mode bar to stop button while building
Task-number: QTCREATORBUG-20155
Change-Id: Id2c2985b2cb14a0bd4314f0bcfe8574c75aa299c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-24 07:42:14 +00:00
hjk
def04e88a2 Simplify runconfiguration aspect addTo... interface
The parent widget is always given by the layout, no need to pass
it as separate parameter.

Change-Id: I9e7ed3a89eb63b78a549471d839060131737ff78
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-04-24 07:26:22 +00:00
hjk
d6af336a7e RemoteLinux/Debugger: Use SymbolFileAspect
This is/will be optionally available independent of the concrete
run configuration type, so use it.

Change-Id: Ife0e906ff47e916d2f7a9df73af8cdd83635cd65
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-24 06:00:36 +00:00
hjk
22428af750 Utils: Use free functions in OsSpecificAspects
Generates a bit less code in debug mode and is easier to read IMNSHO.

Change-Id: Ib9c0b9a0c058327facff16600a7014207167b050
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-24 05:59:57 +00:00
hjk
58f0a7a3dd Utils: Introduce a OsSpecificAspect::pathWithNativeSeparators(QString)
... and use it in the ExecutableAspect implementation.

Change-Id: I0d242d9969323e495e16997e1ca46cfc10e8eb4b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-04-24 05:59:26 +00:00
hjk
d269e9a492 ProjectExplorer: Factor out some common code in runconfigurations
DesktopQmake, CMake, Qbs, Nim, RemoteLinux and Qnx now have a common
understanding what should be in a runnable and how their
configuration widget should be set up. So move them over to
using shared code, too.

Several others runconfigs only lack a one or two more aspects
to follow suit in later patches.

Change-Id: Ia862c95c97d63bd0a0f2dc303435775a2fc530d3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-24 05:58:48 +00:00
Robert Loehning
6278212346 Clang: Initialize members
Change-Id: I251c49a22f54e1d3cc8a9c0b1e6c30f2926d90a6
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-04-23 15:54:53 +00:00
Robert Loehning
ef56d05069 QmlProfiler: Remove unused member
Change-Id: Ia8455ab851f50c9eb1f87ddf0b40c8d3d4e0318f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-04-23 15:01:37 +00:00
Ulf Hermann
3673ebe387 Fix memory usage model details
Use the same format for all memory size strings, don't pack numbers into
QString, and adapt the test.

Change-Id: I13de737992fb64fadc61c3e3243ff83c14446e99
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2018-04-23 14:42:38 +00:00
Ulf Hermann
59e641f8e6 QmlProfiler: Fix flame graph view test
Clicking in an empty area closes the details window now.

Change-Id: I7108b6339021707097bd2a852230fa60473d18e5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-23 14:20:35 +00:00
Ulf Hermann
1770c2ffe2 Remove TimelineTraceManager::State
This is redundant, now that we have registerFeatures().

Change-Id: Ia56c28b8892ab6da694570fe4b9ea5c96fe194f1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-23 14:20:16 +00:00
Robert Loehning
de006655e3 Nim: Avoid deref of null_ptr
Change-Id: I1ab95285d6a96844d894dc2fa5abe8bbcb1944d4
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-23 14:08:58 +00:00
Robert Loehning
de0b077443 EditorToolBar: Replace another optional::value to not throw
...to calm down static checker which
fears throwing exceptions into dtors

Change-Id: Ifc4fbbf9ea03d35e7a80188538efbcfb1b92c729
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-23 12:38:33 +00:00
hjk
afef329c10 ImageView: Suppress a warning if SVG is not available
Change-Id: Ic61c61ec9f9c80c930c361e71c4d4b374aa39906
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-04-23 11:45:04 +00:00
Eike Ziller
d1ec4c1204 Clean up options page category display name and icon set up
In cases where plugins extend an existing settings category of a plugin
that they depend on anyhow, they do not need to specify the translated
display name and icon for that category.
Some options pages were already not setting the icon, but still the
translated name, which makes even less sense.
Clean up this mess, only setting display name and icon if that is
necessary.

Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-23 11:12:26 +00:00
hjk
4b9945c329 ProjectExplorer: Rework executable display handling in runconfigs
The basic idea is to provide an easy-to-configure reusable
building block to provide an "Executable" in a run configuration.

This patch here extracts some generic from the previous
ExecutableAspect into a BaseStringAspect and bases the new
ExecutableAspect implementation on it. It also adds the
the ability to make it editable or to manually override an
executable, and adds a SymbolFile aspect for the accompanying
sources of debug information.

Use in RemoteLinux and Qnx for starters and demonstration purposes.
In the end the Qnx runconfiguration widget does not depend on the
RemoteLinux implementation anymore by replacing the previous
code-sharing-by-inheritance by direct (and less) code.

Change-Id: I91b55820455256a8526e39458364b6cb74e63cd7
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-23 10:34:08 +00:00
Ivan Donchevskii
ef660d8bd0 Clang: Simplify name and type in FullTokenInfo for functions
Take Cursor displayName instead of token name.
From now on type spelling can serve the return type
role for functions because together with 'token' member
they form the full type.

Change-Id: Ic8eec533f4a11458f99f070b6a6aa80714097b4d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-04-23 07:59:40 +00:00
Christian Stenger
fccff5982f AutoTest: Reflect fatals on badge as well
So far only fails and unexpected passes had been counted
as issues for the badge number. If there are only passes
but at least one fatal you did not notice this until you
have opened the results pane.

Change-Id: I48e93850e56a5bc77e4a9ba2c35e3653ec24b19e
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-23 06:35:07 +00:00
Christian Stenger
8c8313094f AutoTest: Make message translatable
Change-Id: I987fc5da3155040a4580546ac2eca1257d229d5b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-23 06:34:59 +00:00
Eike Ziller
2dff9a03ac Improve behavior of cpp editor tool bar
The parse context drop down was taking a content based, fixed amount of
space in the editor tool bar, without being shrinkable.

That was especially bad if you have a long project / target name. When
working with a small window / split, the outline drop down would be
dropped from the tool bar.

This patch makes the parse context drop down shrinkable (with a small
minimum size), and gives the outline drop down a slightly higher
priority for getting tool bar space.

Task-number: QTCREATORBUG-19386
Change-Id: I87e3ee2e411a43b1f398ffd24fe5608e4df02af6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-04-20 14:15:52 +00:00
Thomas Hartmann
7421e59a77 QmlDesigner: Escape @ for annotations
We use the @ for property names in annotations, but
this is no correct QML.
So we replace @ by __AT__

Change-Id: I9437f3b7b1e0489619bc89a20452cc2586be8f12
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-20 13:53:17 +00:00
Thomas Hartmann
f3b9b630c8 QmlDesigner: Fix crash
The QML code for the annotations can be syntactically incorrect.
We have to check this case.

Change-Id: I5428b7963e905c65d65d8524316b2f81c952cb40
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-20 13:41:11 +00:00
Thomas Hartmann
31ef685473 QmlDesigner: Rename QmlTimelineFrames to QmlTimelineKeyframeGroup
Change-Id: I7b1a325e0e9567ddd9b887e3ea013b67d0bde3a8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-04-20 13:12:31 +00:00
Christian Stenger
92f30a6890 ProjectExplorer: Fix compile for gcc4.9
Broke with b9278a88d0.

Change-Id: Ic1de9530bd680a9951b64a298736f6c41de2f5f9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-20 12:08:28 +00:00
Tim Jenssen
bd836a8d24 QtQuickDeisgner: reformat and use algorithms
Change-Id: Ib98f625b86da671c7fc42594a9bc61682782a1b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-20 10:36:31 +00:00
Tim Jenssen
239d6955dc QtQuickDesigner: remove unnecessary list member
no need to keep an extra list since we have access to
m_designerActionManager

Change-Id: I20e449beb24ab194a59b46dc4c677cd1e8152cca
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-20 10:36:20 +00:00
Thomas Hartmann
2673e09ed6 QmlDesigner: Set TextToModelMerger active to false when returning
Change-Id: I188237d1ca3257f13691063d306e877137a5936d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-04-20 10:22:36 +00:00
Tobias Hunger
b9278a88d0 ToolChain: Use SettingsAccessor to access XML settings
This allows for use of the new SettingsAccessor infrastructure for
upgrading, backups, etc.

Task-number: QTCREATORBUG-20148
Change-Id: I5419c86c0fd576a59ec91c212097c8f987e01da2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-04-20 09:14:59 +00:00
Christian Stenger
95446fb614 AutoTest: Use TypedTreeItem for test tree items
Change-Id: I739b6aefc868550b01c7421b4b304293564bb7b6
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-20 06:52:46 +00:00
Vikas Pachdha
83d8de3366 Android: Check for AVD startup failure
Task-number: QTCREATORBUG-20160
Change-Id: Ifbae6d10da6c782e701bc7840ce4324526d0dd82
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-20 05:26:10 +00:00
Christian Stenger
366c7b2c32 RemoteLinux: Add tooltip for line edit
The line edit for the gdb server executable has a
placeholder text that is not readable due to the length
of the text. Add a tooltip that duplicates this text,
but is able to display it completely.

Change-Id: I1c15416f3b31420967825f1b99582021938d3628
Reviewed-by: hjk <hjk@qt.io>
2018-04-20 04:48:42 +00:00
Tobias Hunger
960a1eea06 ProjectExplorer: Do not warn about kits without toolchains
Kits without a toolchain set up for a language are fine. Continue
to warn about kits where the toolchain is set, but the relevant
toolchain can not be found.

Change-Id: I7c62f61264723f9851968aebba2c9307640d683b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-19 14:14:14 +00:00
Tobias Hunger
2a34f2177c ProjectExplorer: Hide build page for projects that do not build
Change-Id: I56feaab67690b5ece7379a9c1f676392230de107
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-19 13:21:52 +00:00
Tobias Hunger
460fdc02e0 ProjectExplorer: Report project-specific kit errors/warnings
Report project-specific warnings about the kit used in Project Mode.
E.g. a python project should not complain about missing toolchains,
while a qmake project should.

Change-Id: I5ce6742683cdeffc7ff3f1a3e8f0b89aee9aa0b4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-19 13:21:45 +00:00
Eike Ziller
da18fc1f50 Help: Use nullptr and fix a few warnings
Change-Id: I7f7307a765d8755bf96b0cad1210e61df0a0199f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-04-19 12:07:59 +00:00
Christian Stenger
0e81d01b2a AutoTest: Improve error handling for XML parser
Task-number: QTCREATORBUG-20105
Change-Id: I55db5e7a41555861dee08e81655e5018b6ea1749
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-04-19 11:25:50 +00:00
Ulf Hermann
08ca10de81 QmlProfiler: Rename specific replayEvents to replayQmlEvents
Some compilers cannot discern the two replayEvents methods.

Change-Id: Ide4a893ff3976cb081fbbceefacafb6226f0a73f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-19 11:21:59 +00:00
Vikas Pachdha
6e4ae817c2 Android: Check for missing emulator tool
Task-number: QTCREATORBUG-20160
Change-Id: I481adfe9a7a1b2c9c151d01d2fe1b010735c898b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-04-19 10:05:03 +00:00
Tobias Hunger
26e4db6514 ProjectExplorer: Fix loop in toHtml call
Change-Id: Ic32209dbb13897575cbc1845c4afca1b01da1c64
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-04-19 09:30:59 +00:00
Ulf Hermann
1c2e0f387f QmlProfiler: Move parts of model manager and trace file to Timeline
This way we can use the trace file loading and saving mechanism for
other profilers.

Change-Id: I98ec1cdde6f7abcea152cabf72e64d4e696dfa59
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-04-19 08:09:07 +00:00
Eike Ziller
7099f21586 Merge remote-tracking branch 'origin/4.6'
Change-Id: I959428882b9da427c6bf522145646048141888c6
2018-04-19 09:25:04 +02:00
Vikas Pachdha
717c7bfd9f Android: Add explicit tag for google_apis system images
Task-number: QTCREATORBUG-20298
Change-Id: I9bc4d9192584ffbc1180ae7b69f334c915ca16f4
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2018-04-19 06:30:34 +00:00