Commit Graph

59304 Commits

Author SHA1 Message Date
Eike Ziller
fc04ec1c3e CMake build / macOS: Fix Info.plist
Change-Id: I160c9efd10e62b7e17957117daed376d2ce70601
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2019-05-20 12:28:36 +00:00
Cristian Adam
c84885bc9f CMake build: Fix PIC issue with 3rd_cplusplus
3rd_cplusplus is an OBJECT library, which will end up into CPlusPlus,
which is a shared library, it's safe to set PIC to ON.

Fixes https://bugreports.qt.io/browse/QTCREATORBUG-22465

Change-Id: I6ef9bf8c73102a3a5996c0fee7b1fe25e6aa677f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-20 11:34:34 +00:00
Cristian Adam
cf801ac930 CMake build / Win32: Add rc file to qtcreator.exe
Change-Id: I47580f0357866d7931d0deb4daa02f601537722e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-20 11:34:19 +00:00
Tobias Hunger
4b15341358 CMake: Add ParseIssuesDialog files to ProjectExplorer plugin
Change-Id: I10049445726b571f4e81e11d307bb49d577cefbf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-20 11:30:59 +00:00
Eike Ziller
f498f577e6 CMake build / macOS: Find QtDesignerComponents framework
Enables building of Widget Designer integration on macOS

Change-Id: I84a2ee78ccf99941a0be517e089ece810154699d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-20 11:30:52 +00:00
hjk
36daca80f3 Utils: Make FileName::canonicalPath a member
Change-Id: I8d7450dec5c4c14ae3e007d1d66f1a9c3c98f807
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-20 11:06:12 +00:00
hjk
22cd81ffbc ProjectExplorer: Remove unused ClangToolChain c'ctor declaration
Change-Id: I5adc5712ef482af8b644533bf6461206ea601663
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-20 09:43:58 +00:00
Christian Stenger
66f05586dd LanguageClient: Fix build for older compiler
Amends ed77e10571.

Change-Id: Icd41c65ae308f8862cd9b11ac32f8f8d22e7f6e3
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-20 09:05:09 +00:00
Christian Kandeler
a8b9f8c955 Add the ability to parse existing build output
This allows users to take advantage of Creator's output parsers for
output resulting from builds done outside the IDE, or stored from
previous runs.
It can also be helpful for interactive testing of (new) output parsers.

Task-number: QTCREATORBUG-16017
Change-Id: I965c52fe4c5ce7b38f5ebf8f0495d9f291916373
Reviewed-by: hjk <hjk@qt.io>
2019-05-20 08:56:03 +00:00
hjk
acc0080146 QmakeProject: Make QMakeBuildConfiguration less visible
... in QmakeMakeStep interface.

Change-Id: I19bfa0470dc709d79563640bc4dc4f7fc0d5d8f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-20 08:54:07 +00:00
Cristian Adam
5fa3ed25fc Add qml2puppet CMake build file
Change-Id: I5829d8a284e97c733928519c18bf2429f740333c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-05-17 16:11:10 +00:00
Cristian Adam
d855b84c5d Qt Creator CMake port
Based on Tobias Hunger's work from a few months ago.

The CMake configuration needs libclang and Qt paths specified as
CMAKE_PREFIX_PATH.

Auto tests are run with "ctest". At the moment the pass rate is 87%.

Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-17 13:33:28 +00:00
Ulf Hermann
f872a95fdd Update perfparser
Change-Id: I915a7f4083a045558c1ab8c211f9c9437c78e6b3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-17 13:12:52 +00:00
Christian Stenger
7fa1643a1d Tests: Fix missing curly brace
Change-Id: Ib24625cdeae1b2f9a1b41eecb59e52f572eb793b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-05-17 12:33:45 +00:00
hjk
f4c9e5e5c4 More FileName::appendPath() -> .pathAppended()
Change-Id: I403d34e4f52f758339c158efc7a11fd329e3e043
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-17 11:55:04 +00:00
Eike Ziller
0565457b5c Merge "Merge remote-tracking branch 'origin/4.9'" 2019-05-17 11:50:45 +00:00
Christian Stenger
ed77e10571 LanguageClient: Visualize special trigger characters
Instead of having strange looking cells that appear to be empty
try to cope at least with some common trigger characters and
visualize them.

Change-Id: Id0f696eb47df204756a1387535a15c2a1d75cc30
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-17 11:36:22 +00:00
Christian Stenger
4de9d8b2f6 LanguageClient: Ensure scrolling to selected outline item
Change-Id: I513c1d3412723c00282b0dd7e3f181c92edb674b
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-17 11:36:14 +00:00
Christian Stenger
5459d3ca72 LanguageServerProtocol: Fix build on macOS
Change-Id: Id13c0c32d03a7c5226d80afafb952fd33b2d608a
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-17 11:36:03 +00:00
Thomas Hartmann
3f423fc139 QmlDesigner: Fix subtle issue with transaction
In an transaction adding a property after reparenting did fail
without real reason.
If a node does not have a position (yet) we can ingore the operation.

Change-Id: I959f1cf50ac6bcacda2a29b37ae69e37158e9acd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-17 11:25:59 +00:00
Eike Ziller
829a08047f Merge remote-tracking branch 'origin/4.9'
Conflicts:
	src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp

Change-Id: I473084232ab99c18e2316154656de0035af02628
2019-05-17 12:47:24 +02:00
hjk
b38657bcf6 Android: Inline special constructor into only user
... in a attempt to unify ToolChain class interfaces.

Change-Id: I9135576492a4b8080317aecbe7b74775340e62e8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 10:34:38 +00:00
hjk
cffc09e53d Debugger: Disable a few more Creator-specific dumpers
... that were not updated when the structures changed.

Change-Id: I1c06ac029f2057d618ce21b5da3edf9694cff63d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 10:34:30 +00:00
David Schulz
d2030346f2 LanguageClient: update outline after document changes
Change-Id: I45b9107ccf812582a6138b469ded57e978bce267
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 10:26:12 +00:00
hjk
166cb39709 iOS: More FileName::appendPath -> pathAppended changes
Change-Id: I3db6b1778e6e47e26e243fb2609c481651aa91fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 09:26:57 +00:00
David Schulz
c874f07d53 LanguageClient: add hover handler
Change-Id: Iddf30828ef26a157ab935d0abe708087ab123dd6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 09:18:41 +00:00
David Schulz
e04339b1e8 LanguageClient: only replace the default completion provider
Change-Id: I36977132ac8094fd31d7bc255a1666ba807810bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 09:18:32 +00:00
David Schulz
10611f2af9 LanguageClient: always set client capabilities
Not just if a project is currently set.

Change-Id: I07b19695464025a9d039364ff1611aa39e8e1a9b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-17 09:01:29 +00:00
hjk
c238fc88b1 Utils: Make FileName hold an QUrl optionally
This is meant to be helpful to piggy-back device information
in situations where the file resides on a remote file system.

The approach taken effectively duplicates the path data of the
url if the url constructor is actually used, but does not rely
on lossless path/fromPath conversions as it leaves the non-url
code paths unaffected in all situations.

The total overhead is deemed acceptable as the common use case
only default-constructs the m_url member which only sets a
pimpl nullptr.

Change-Id: Ie441cb1355ce086507333c31c7356ae5e6d10b96
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-17 08:35:18 +00:00
hjk
1e9636ab8a Some more FileName::appendPath() -> pathAppended() changes
Change-Id: Ie494f7ae8a96d97c9497b3ef38d774d2cf787b7f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-17 07:46:56 +00:00
hjk
3f57cdfba9 ProjectExplorer: Remove unused MsvcToolChain::m_debuggerCommand
Change-Id: I4d1df0ec3a66efa7d54f35ad69fad006a16baa3c
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-17 06:27:06 +00:00
Leena Miettinen
9cf336b4bc Doc: Add links to Qt Quick Studio Components' documentation
Depends on a change that adds the docs to the Qt Design Studio Manual.

Change-Id: I8ef7d9085d0672daba9d0d2a3f64f473d8e8e9cf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-16 10:53:44 +00:00
hjk
666953c393 Qmake: Use Utils::FileName in QMakeStep
Change-Id: I311947e476818ae7b14f299e0c917280f077165d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-16 10:52:23 +00:00
hjk
2226c1b87b ProjectExplorer: Use ToolChainFactories to clone ToolChains
Centrally.

Change-Id: Ie832c5ad0eb282192440d9d4d058d082d9513cc2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-16 10:38:25 +00:00
hjk
31700217b1 Cmake: Use FileName::pathAppended()
This one is weird: The trailing toString() was practically dead.

Change-Id: I02d24bf655dd32ed5f66e9d99c3cef7e150105dc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-16 08:27:36 +00:00
Thomas Hartmann
6929da3983 QmlDesigner: Adjust gradient dialog
Change-Id: I21eea31024c6fc959dd27654711607f3ff8a4d49
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-16 08:08:30 +00:00
hjk
413025db10 Android: Simplify AndroidManifestEditorWidget::iconPath
Avoid a use of FileName::appendPath().

Change-Id: Ifd5367dc9048bf379362d594d32809e0971e9524
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-05-16 08:02:04 +00:00
Leena Miettinen
0a08b041ad Doc: Add a link from "Adding States" to "Binding Animations to States"
Change-Id: I49a28ed75a2bade67a4f550ccf303b409f9600d3
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-16 07:55:51 +00:00
Christian Stenger
efa7a5a4d4 AutoTest: Add suite layer for tests
Test suites are used in several test frameworks. To avoid
fiddling around with the types and their meaning on the
frameworks side just add another type (TestSuite) that can
be used.
Frameworks can use or ignore this type as it is done already
for other types.

Change-Id: I6c2a312a32ce5716f55b49303e2b1a0f6f8e8da4
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-16 07:41:38 +00:00
Christian Stenger
9c06940dc9 AutoTest: Extract decision of adding filtered items
The old approach was working due to the fact that all
test frameworks followed a fixed type scheme and tried
to handle differences between the AutoTest plugin and
the "real" world of the test framework internally.
Generalizing this decision does no more make sense when
adding an optional test suite layer.

Change-Id: I4788150a8935d8e35e557df8475aa95c8ca545b4
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-16 07:41:04 +00:00
Christian Stenger
7ac9990fe6 AutoTest: Add missing icon
Change-Id: I32c0602b56c50497c4a5f03c2aee655e90bb2fae
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-05-16 07:40:50 +00:00
Christian Stenger
06d8df7ee6 QmlJS: Fix wrong warning
Variable declarations made with let or const need
to get evaluated on block level base.

Task-number: QTCREATORBUG-22054
Change-Id: Ia1d353be61c2d9532bc54257c15d00fb33ea156c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-05-16 05:01:15 +00:00
Leena Miettinen
bbfef062de Doc: Edit docs for the Connections view
- You have to double-click the values of columns to edit them
- For properties and bindings, the values are set for the currently
  selected item and the item column displays the item id (read-only)
- Add links to examples of using the view

Change-Id: I8c27dbbcbbf269f52102ca2af37f872c86e56155
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-15 15:05:03 +00:00
hjk
95f49285b7 Qnx/Qmake: More FileName::appendPath -> pathAppended changes
Change-Id: Ibd6639ff83ec922fade7de4115d1e777e496f3e1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-15 15:03:46 +00:00
Christian Kandeler
61340e1543 Fix error message when adding empty qmake project as subproject
The JSON wizard code expects that at least one file gets opened either
as a project or in an editor. This was not true when adding an empty
qmake project, because its .pro file loses the "open as project"
property when added as a sub-project, and there are no other files to
open.
We fix this by also setting "open in editor" for the .pro file, which
makes sense (also for the top-level case), because a user is likely to
add custom content there right away.

Change-Id: Icdf68bccb2488bdb26b6b3c8410da901a4eb32df
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-15 13:36:37 +00:00
Christian Kandeler
09c1c1a354 Core::OutputWindow: Move members into d-pointer
New members were accidentally dumped directly into the class, rather
than the private implenmentation.

Change-Id: Ie7939534cef1c830ce3925d9cb5e77a48617150b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-15 13:36:06 +00:00
hjk
0e4df97f90 Some more FileName::appendPath -> pathAppended() changes
Change-Id: Ia05b54f157b08353d5a9efccee48dfc212d3a489
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-05-15 13:19:58 +00:00
hjk
9433b8a7e7 ProjectExplorer: Use Utils::FileName in ProcessParameters
For the command and the working directory.

Change-Id: Ia69dc7100aeb57bb6e1b35f4dd4f3cf3763d8cda
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-05-15 12:55:22 +00:00
Leena Miettinen
3b83b72994 Doc: Refer to the SvgPath component from the PathView component docs
Qt Design Studio -specific.

Change-Id: I172c94c69dcdc321c2dc8d1e37d229861966ffb2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-15 11:56:28 +00:00
Leena Miettinen
14504441cf Doc: Make "Browsing ISO 7000 Icons" topic creator-only
While this works in Qt Design Studio, it is easier to use a dedicated
Qt Quick Studio component called Iso for this purpose.

Change-Id: I6f2d430ae050b7e0a204077f92ae54987c47f6b7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-05-15 11:56:05 +00:00