Move the target detection code from the QnxConfiguration class into a
separate function that can be used by the QnxConfiguration code and
the QnxToolChain code.
Move some resetToolChain calls after setSdpPath calls. QNX ABI
detection depends on the SDP path.
Change-Id: I7417a5a1064a77edfb113d9d0010f1e061b81ca6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Needing to compile Qt tools is a bit of a chore (and at some point a
diskspace issue) when building/starting Creator as sanity check for
comparing different compiler optimization settings.
This is not an officially supported configuration.
Change-Id: I628e33eb7137f09ecfebbd27453de548bac2fde5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
The CMakeProjectImporter will need that in addition to the tealeafreader.
Change-Id: I453a7a124b5303e163e9c85bc3fc215215617119
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
m_process was nullptr at this moment
Change-Id: If990eb7034c3bacc1ace7fd607d0247aec8aeb68
Task-number: QTCREATORBUG-17698
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This does not link without this explicit compare
function after the QLatin1Strings have been removed.
Change-Id: I09cd323f850954eedefed6ee58597cb0ef3ab026
Reviewed-by: hjk <hjk@qt.io>
These logs are useful to debug hints and form editor
behavivour. Adding more if required.
I cleaned up the include order.
Change-Id: I39b8c4e215ba4e6a524f4b00828156d6e56d8eb7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
If an item is invisible then it is not an intuitive container.
Change-Id: I1f978be98b7330848e19192843188331438b98ba
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
One step closer to direct use of Utils::TreeNode.
Change-Id: Icd0dfd2fa4d12c2572a68f61ae43c5e906956a0e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
There is no reason to not allow "type".
This was a leftover we store the type/className in
"className".
Change-Id: I6a760e9df522fcda42fc2d18c06aaaac15523cd6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Steps to reproduce the old and wrong behavior:
1. Open branch dialog
2. Select a branch
3. Select checkout
4. Branch is checked out, but no longer selected
5. Buttons like "Log" stay enabled, but don't serve
any purpose
Change-Id: I3974b7cb87553d1ff57fd5578b908f02c949a509
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This fixes the problem where sometimes you need to visit the project
page to make run in terminal work.
Task-number: QTCREATORBUG-17608
Change-Id: I681378cdaa19becf532666401e8695c246e1f5bd
Reviewed-by: hjk <hjk@qt.io>
Use a more robust logic to find existing CMakeListsNodes again.
Change-Id: Id26031c1164eb6271b74ccf39071219938b285fc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Add a simple helper method to extract the project directory.
Change-Id: Iafb9e8f5611a6fc5941c9bb3005a265e785138a2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Add helpers to deal with CMakeBuildTypes and to map them to
BuildConfiguration::BuildTypes.
Change-Id: I03ce9e83b5d044c3d94d29c44cc0a28560b206f6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Do not bother to implement this functionality for toolchains that are
assumed to be completely auto-detected (e.g. MSVC) or require
infrastructure around the toolchains to be useful (e.g. embedded platforms).
Change-Id: I3e7dfe2f3c30a0d2d2bb16364895151f95b16423
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This is necessary to auto-detect the toolchain e.g. found in an existing
cmake or qbs build directory.
Change-Id: I1405d1337855d55fa0145e8b50a5864ff0d4231b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Split up autodetection of toolchains into one part that scans for
possible candidates to autodetect and another part that examines
each individual candidate.
Change-Id: I15167c72d5e9b51a126f83bdd2a7dd95efe0a6ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
If the FlatModel is created after a project is opened,
no update was triggered.
Therefore a lazily created ProjectTreeWidget was empty.
Task-number: QTCREATORBUG-17690
Change-Id: I3c7d1fe63471127ff2d4b344d2341ccf6c3c93ff
Reviewed-by: hjk <hjk@qt.io>
Introduced with latest changes to TreeItem.
It is a bad idea to remove child items while iterating over them.
Change-Id: I6941f4728cf93e47b3ef6405bd1304112946c481
Reviewed-by: hjk <hjk@qt.io>
... and use this to reduce the number of explicit uses of m_children.
Despite of being shorter code by itself it is a step towards having
an explicit LeafItem object that doesn't explicitly store a(n empty)
vector of child nodes.
Change-Id: If8db85e2f1134dd1578a78d31235bf57a28f863a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
It is seen as good practice to use Container::reserve if you know the size
in advance.
Change-Id: If1398eaa099f4d3f657778aca46516f9bdec14c9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This allows items in the scene to handle mouse clicks and hover events.
This is required to add e.g. a toolbar.
Change-Id: I3780735f1cbe30df0481d421f2aa2646f8e270d8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
The users of certain keyboard layouts do not
like it, if e.g. their shortcut for "}" is taken by a shortcut.
Change-Id: I93db8627d23624ed3a87dd6a8bfafc037caee0a4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
The indicator for a single selection now has a label.
I also adjusted the color a bit.
The selection indicator now has a width of 2.
Change-Id: I541e8d3ab3f648af8b1fc6b0c005ddd538bb7de8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
We have to override a couple of more keys and some key sequences.
Crtl + Alt is used for keys in certain language layouts.
Change-Id: I471b8c4042989cb2821a8f27a87336f20d0e37e5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
If any FormEditor item has non FormEditor item children the current
code will crash. While currently FormEditor items do not have such children,
we might add such children in the future.
Change-Id: I894324a4b247e91eb3fd0db30eb4d9f198f7474a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Inserting a QPixmap with active painters on it causes it to
do a deep copy of it, which is unnecessary.
Task-number: QTBUG-58653
Change-Id: I49123ffcec2e12a01c87974b7a513d68a11185d4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>