Commit Graph

57165 Commits

Author SHA1 Message Date
hjk
1e8ae60dce Utils: Return a const list for FancyMainWindow::dockWidgets
Makes s/foreach/for straight forward on the user code side.

Change-Id: I78aa0d06f538ebda491cd238ce81cc155b8d0beb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-26 07:53:14 +00:00
Eike Ziller
e28eb85e8a Merge remote-tracking branch 'origin/4.7' into 4.8
Change-Id: Iaae859601ae4f529c1fa7ada3a5c569820abb0d6
2018-09-26 09:38:33 +02:00
Eike Ziller
18ffdbb12e Merge remote-tracking branch 'origin/master' into 4.8
Change-Id: Iaad349302545619f5299fbab26aff11790ca122e
2018-09-26 09:37:07 +02:00
Eike Ziller
048f27633d Get rid of macros by using std functions
Change-Id: Ie342b781b912dabbc890777db87793b5953dbe18
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-09-26 07:34:56 +00:00
Orgad Shaneh
c297846fec ProjectExplorer: Purge obsolete condition
We don't support Windows earlier than 7, and QSysInfo::WindowsVersion
is deprecated.

Change-Id: Ibd516c3526c88933f68ac730964fdb3405040358
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-09-26 07:30:42 +00:00
Orgad Shaneh
1486359251 Core: Change IEditor::document() to const
All the implementations are const.

Change-Id: Ib9753fe764dd482d4f4392eec70878d42edc737a
Reviewed-by: hjk <hjk@qt.io>
2018-09-26 06:20:51 +00:00
hjk
4b42789bda Debugger: Privatize GdbMi::m_children
Change-Id: I6e51290c4521be40f516a452f32bdc82a4c051e6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-09-26 06:15:41 +00:00
hjk
e0dcb645cd iOS: Remove unused IosRunConfiguration::deployStep
Change-Id: I5e2ceacf02c0f19b605d134a0e7f0a13d5426fa2
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-09-26 06:14:32 +00:00
hjk
ad7d37cc36 iOS: Move towards more aspect use
Put the remaining device related pieces into a new IosDeviceTypeAspect.

Change-Id: Ia1ce2002edebedc2d409edc1144ade0ffe24a084
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2018-09-26 06:13:07 +00:00
Christian Stenger
7de461e40b Debugger: Fix use of external debug info for installer-based Qt
On macOS. This amends ada0e43c93. Fixes the default build directory
on macOS as this is different compared to Linux.
Beside this the patch passes the configured mappings of build dir and
source locations to the lldb.

Task-number: QTCREATORBUG-20693
Change-Id: I4258c09ec96fbdc1a713ae82df6bcab04129570c
Reviewed-by: hjk <hjk@qt.io>
2018-09-26 04:42:37 +00:00
Hannes Domani
8768e39d3c Valgrind: Add target executable suffix to heob command line
The suffix is needed in case the executable name contains a dot,
because then the .exe suffix is not added automatically by
CreateProcess().

Change-Id: Ief2cfeaa8dd8ebbfb71f69575ee9574a4f2156d3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-25 14:58:16 +00:00
Orgad Shaneh
3f4438e2eb Cppcheck: Replace assertion with a condition
There are several editor types without path.

Change-Id: Ieb7f3453ae83d6b64488a5f9381b5e7927ff1ece
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-09-25 14:06:58 +00:00
Tim Jenssen
21fd164110 Theme: adjust to new theme color names
Change-Id: I6d99ff37ac419058729b248860a56eecc9fa0be3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-09-25 13:57:22 +00:00
Nikolai Kosjar
f2a73ba0d5 QtSupport: Fix qbs build
Change-Id: Idf4dae85ac254fe151f2571d5139420336f8b122
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-09-25 13:43:02 +00:00
Nikolai Kosjar
b48b5a3415 Clang: Fix include paths for clangrefactoringbackend for qbs
Change-Id: I36b5e28a91999559644bce002085eb929e6e82ef
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-09-25 13:15:02 +00:00
Marco Bubke
2286fd744a ClangRefactoring: Use wildcard for pch manager qbs project file
Change-Id: I2197bb6c1d65c8e04ac36ff21f1d604b9d35443e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-09-25 13:13:57 +00:00
Orgad Shaneh
57af3f1f3d Clang: Fix compile commands generation for large projects
...such as Qt Creator.

Avoid storing the entire JSON in-memory. Instead, write as you go.

Change-Id: Ie298af546b25d80813a75d8dc09f3244488b8658
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-09-25 12:44:43 +00:00
Orgad Shaneh
f07396b86f CppTools: Apply SkipBuiltIn also to toolchain defines
The only place where Yes is used is the compilation DB, which doesn't
need these defines anyway.

Also add -fPIC for Qt compatibility.

This reduces the compile_commands.json file for Qt Creator from 180M to 33M.

Change-Id: Idd3b363c3a143b1d79f97962c4ff9ee61d7767a4
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-09-25 12:44:00 +00:00
Eike Ziller
cc1e03a649 Merge remote-tracking branch 'origin/master' into 4.8
Change-Id: Ic7fc44a9533d5d5abd384ff1185ec10811912314
2018-09-25 13:23:13 +02:00
Marco Bubke
63eae7932f TextEditor: Cleanup text styles
So far there were different settings for different mix-ins. There was no
technical reason why we limit the user. So you can set now the color, the
relative saturation and value, the font, underline, italic and bold. The
relative saturation and value are disabled if the color is set. The
settings are reordered too so the order reflects the semantic meaning much
better.

Change-Id: I440967d6729f720816d2bc028ff9fe8e8868074e
Task-number: QTCREATORBUG-21105
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-09-25 11:18:03 +00:00
Orgad Shaneh
015a19ac97 Tests: Remove use of deprecated QDateTime::toTime_t
Change-Id: I7d9f4e13deb8f375840f9da0c84b165a1dd744ee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-25 10:17:07 +00:00
Orgad Shaneh
a48b771a3e ExtensionSystem: Relax platform regexp matching
Match anywhere, not only exact matches.

Change-Id: I3f530e9ee796250252108f835f7435c57f8d516b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-25 08:32:18 +00:00
Orgad Shaneh
9a72f26fa4 PluginManager: Replace getPlatformName with QSysInfo::prettyProductName
QSysInfo::*Version is deprecated, and prettyProductName should
provide better results anyway.

Change-Id: I5de3369e583d8d51b894e74509363cd6be150010
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-25 08:31:58 +00:00
Ulf Hermann
6f81ee7840 Tracing: Make sure the time display repeater's model is not negative
Change-Id: Iedc2f82194a48c426491d05ede8ff8b3341bc63b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-09-25 08:01:11 +00:00
Ulf Hermann
4df3aed626 QtSupport: When populating file finder, map resource paths
We know the exact mappings for all resources. If we pass those to the
FileInProjectFinder, the path resolution becomes more accurate.

Task-number: QTCREATORBUG-21107
Change-Id: I9230ffb68a49a281574990afde6f7099fb0bd9d3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-09-25 07:06:28 +00:00
Eike Ziller
ffad72c9ce Fix fix for focus handling when leaving locator
If accepting a filter entry already changes the focus, then we should
not interfere by setting it somewhere else again.

Task-number: QTCREATORBUG-21125
Change-Id: I9ff76b0bae9280b44c73d7078f25ca42b6b89821
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-09-25 06:38:52 +00:00
Alexandru Croitor
9da9ed45e9 Fix qbs build of clangformat plugin
Change-Id: Ic23a34048c62ed39590ad422ea3e4f8fea9fc5a1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2018-09-25 06:03:49 +00:00
hjk
422da635f7 Debugger: Honor Run in Terminal for Start and Debug External Appl
Again.

Change-Id: I307e39045e97aaf418a915b1e9a968e7e4ab1ab5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-09-24 14:54:51 +00:00
Marco Bubke
4e6d09d8e1 Clang: Reuse thread based pipeline for pch creation
The pch creation so far used signal and slots but there was no explicit
pipeline. This patch is introducing the same architecture like the
refactoring plugin. It is filtering out older project parts from the
pipeline.

Change-Id: Iaa6bd2ca1272231b97ebe1f5f7b2ce8e43bc590c
Task-number: QTCREATORBUG-21111
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-09-24 14:33:05 +00:00
Nikolai Kosjar
5a6a348d21 Clang: Remove unused function
Change-Id: I78743489c6b5dc617c4a9966e83d3bf987707bc9
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-09-24 14:11:33 +00:00
hjk
ada0e43c93 Debugger: Fix use of external debug info for installer-based Qt
On Linux. Required installs are the gcc-built Qt libraries themselves,
the "Sources" and "Qt Debug Information Files" components.

Fixes: QTCREATORBUG-20693
Change-Id: I920efd641ce3ee4583741ea1db0bea18031adc51
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-09-24 13:37:24 +00:00
Christian Stenger
1b751c2d47 Debugger: Allow watching complex expression for QML
Latest restructuring made the 'Add Expression Evaluator'
action to a no-op when not debugging.
Reflect this by disabling the action as long the user is
not debugging and allow complex expressions to be evaluated
for QML as well.

Fixes: QTCREATORBUG-19050
Change-Id: I2d6421a121e2169981b992a617f4d2b7264a8091
Reviewed-by: hjk <hjk@qt.io>
2018-09-24 13:37:12 +00:00
Ulf Hermann
c0378ee7e8 FileInProjectFinder: Report length of matched postfix
We want to know how exact the match is, so that we can reject results
that don't fit our needs. We cannot pass an extra fuzzy/exact parameter
to findFileOrDirectory, because we cache the results, and we need to be
able to reuse results obtained from different searches.

Task-number: QTCREATORBUG-21107
Change-Id: I870100f4c0acd0e9b007f076543340b34a25a447
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-09-24 13:23:42 +00:00
Eike Ziller
ad8098b372 Fix conflicting LanguageVersion and value __cplusplus define
Task-number: QTCREATORBUG-20884
Change-Id: Ieddb277ed5a7c167d75f902275b8f98cc3fc8af4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-09-24 12:43:22 +00:00
Christian Stenger
d38064892b Debugger: Ensure status message is printed
Activate the debugger engine before the status label is updated
to avoid purging the status label content.

Change-Id: I060cdaaf3d09e3636fbe206f65941ec56abb5eb7
Reviewed-by: hjk <hjk@qt.io>
2018-09-24 09:59:05 +00:00
Christian Stenger
3e4dc83a95 Tests: Fix compile for boost > 1.64
Change-Id: Idf5d68e4528fd49023b21912a48a3cc109a1bbfa
Reviewed-by: hjk <hjk@qt.io>
2018-09-24 09:58:57 +00:00
Leena Miettinen
1afe5405bb Doc: Add troubleshooting information for QNX devices
Task-number: QTBUG-69762
Change-Id: I2fa6f62b95eddc901aa133e922934938d1ae208e
Reviewed-by: hjk <hjk@qt.io>
2018-09-24 09:54:18 +00:00
Thomas Hartmann
c907d95221 QmlDesigner: Do not store @NodeInstance data in persistent aux data
These values are typically quite arbitrary like the current
postion of the frame handle. There is no reason to safe this persistently.

Change-Id: I2b09edf4842d3ec9956ced3a6a72ea4101395fbd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2018-09-24 09:21:16 +00:00
Leena Miettinen
5a563e6a30 Doc: Mark more doc source files creator-only
Change-Id: I3c7e6a374b7d9b70f79f8e3028277d416577d2e9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-09-24 09:13:45 +00:00
Tim Jenssen
70a78640eb QmlDesigner: take only width and height as auxiliary values
In case the user switched into a component to see what is wrong or right
it is very confusing if the component takes some property which is set
in the parent.

Change-Id: Ib8310bf6b6af029e7aa392bd924c04aa3e982a4d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-09-24 09:00:50 +00:00
Eike Ziller
6235ae0bc0 Help: Remove usage of deprecated API
This follows the same outline as
qttools 256bbc4f139036a780a63b80af8bb461a77d333a

Change-Id: Iffe1f7a8d11ef9d20ec567fd222ee5279b56c765
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2018-09-23 13:59:21 +00:00
Orgad Shaneh
a334650953 ClearCase: Pass dialogParent where needed
Change-Id: I5f2de5191472fc0414fc5aa7074ad5e8e8251db1
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2018-09-22 17:25:37 +00:00
Orgad Shaneh
46e2c354ba Merge remote-tracking branch 'origin/master' into 4.8
Change-Id: I36b9fdcaf895b7aecabdfd9848fc0ba5e48ff88b
2018-09-21 16:25:49 +03:00
Tim Jenssen
dfb76c7a38 QmlDesigner: fix unused warning
Change-Id: I3799a7fa8bf5838d162a3088d95948756b3e9e35
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-09-21 13:18:09 +00:00
Jonathan Liu
813c16854d SshDeviceProcess: Don't emit readyRead signals if no data available
Task-number: QTCREATORBUG-19367
Change-Id: I477800b2e2060748c2b5f9fde3acc91d9f5ae176
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-09-21 13:12:10 +00:00
Tim Jenssen
3d207f96c8 Fix macOS build
std::srand was not existing maybe an issue with older SDKs.

Change-Id: Icd1af82d6e698da9f814ed0d96a839f46272c661
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-09-21 12:54:54 +00:00
Kai Koehne
ac9ab68740 Fix incorrect grammar in 'does not exists'
Change-Id: I790d9bbdfc170808ff66e70be0f81d1c292c0bcb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-09-21 12:02:54 +00:00
Ivan Donchevskii
6ab3a02c28 Clang: Remove version check for skipping inlude file warnings
The change is not upstreamed so the version number is not valid.

Task-number: QTCREATORBUG-21139
Change-Id: I46fdb0a700780811b88083ae6ed55a241c705cb9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-09-21 11:49:15 +00:00
Oliver Wolff
a19d775526 winrt: Remove superfluous isEmpty check
QtcProcess::addArgs checks for emptiness of passed arguments.

Change-Id: I3fed96f1e47554ff7773f1b683dd68b7169f1bfd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-09-21 08:57:28 +00:00
Eike Ziller
afb6538dc6 Merge remote-tracking branch 'origin/master' into 4.8
Change-Id: I99d7e3aa727316db2e4909be6c0ea7583b90c816
2018-09-21 10:19:34 +02:00