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>
Curly brackets for initialization got quite powerful. To not invent a
different style we should use the some style like for rounded brackets.
Change-Id: Id4789fb8d4d7f3980a3a8ce2df999cc57022a2a7
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>
...in Qt docs. Because a user felt the information is missing.
Change-Id: I76a7820974073651e6632b0f8e705655377b92c0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
The canvas area now contains Form Editor and Text Editor tabs.
Further, the Properties view can be split to show any view, so
there are now two sidebars.
Change-Id: Ib921a806178606a76d584440e2308d504a297fcb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
But use a grey'ish color to explicitly mark them as summary
items as they are no real test results.
Change-Id: I7e682a7753e8467e6ec65ac09fb27a7b798d765f
Reviewed-by: David Schulz <david.schulz@qt.io>
Deleting or cutting the root node is not possible.
Task-number: QTCREATORBUG-17646
Change-Id: I613179c291e744c2d2f6e44ce103bcbd2afaed28
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Throwing for an invalid model node does not make much sense.
I expected it returning false and that it what it does now.
Change-Id: I5c8c1a771e95a39bdb9ab7c30b4e94957464ffc1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Use the ExampleSetModel directly in the combobox, rely on normal
model reset behavior behavior for gui updates.
Change-Id: Icdb34ff0f572caaf92259530823e90bfd783b933
Task-number: QTCREATORBUG-17678
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Users can now use the code editor within the Qt Quick Designer.
Change-Id: I2ad30bafc4b61ce9c1115c9a8b1c019d2b21151e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Not used in earnest since the end of CODA/Symbian.
Change-Id: Ib2d22fb247d178b091a17f9927aa911d6707d3f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Behave like the Branches dialog, which is updated by the current open file.
Change-Id: Id106b3e4fa777bcbf08b826f4e7d52845dde57a6
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Only one line saved, but potentially less hassle should FolderNode::makeEmpty
ever change.
Change-Id: I4dd01179a8dce9735744991c3de080739ab693ae
Reviewed-by: hjk <hjk@qt.io>