To the Locals and Expressions context menu. This is useful
to have when expanding larger containers of structs where
the struct has no particular dumper and the address alone
is not really useful.
Change-Id: I2ddb4ca0ae32afb7efe63aee08551314db7a3b59
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Similar to what is used in Utils::TreeModel: Use lambdas
as "visitor".
Change-Id: Ia6e1a7ec022b61f94b01e1e8476bb932d22fd161
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Replace them with member functions providing the same information.
Change-Id: If65bb99c77df0f80562b4559914f4b81ab17a166
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Use unique_ptr to hold the QmakePriFileDocument. That makes
it clearer that QmakePriFileNode owns it.
Change-Id: Ia31778ad2a9d33a13cf818d3bcad0485ebfa2043
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Makes it clearer what that actually is.
Change-Id: I2b50deba53ae5cef2bf1a30b9497c1867559e1e9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Use QmakeParserProFileNode::AsyncUpdateDelay instead of
QmakeParserProFileNode::AsyncUpdateDelay.
Change-Id: I6628e566ce0f289778d61d146df58ca31345cdd7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
... in the build settings. This makes it much easier for users to
properly set the installation directory. In turn, remove the dedicated
install step, which does not know about qbs.installRoot and has not had
sensible functionality ever since that property was introduced.
Task-number: QTCREATORBUG-17198
Change-Id: Id968672f4365e75da437f73ec15bb5e32599bda3
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
If a stacked container has a tab bat, then we also add a tab button,
if an item is added.
Change-Id: I7121ba73c4b70c58349749c9372bd69d53237b89
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
It is quite typical that the index of a stacked container is bound to
e.g. a TabBar (currentIndex: tabBar.currentIndex).
This code resolves this simple case.
We show an error message if there is a more complex expression,
that the designer does not understand.
Change-Id: Ifdc81d186d6352864a0c224324dbac9a22d73780
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Adding action for adding item
* Adding action for decreasing index
* Adding action for increasing index
User visible strings for the actions are defined in:
componentcore_constants.h
The name of the index property is given by a hint in the .metainfo file.
If there is no hint we try "index" and "currentIndex".
This is tested with StackedLayout but should work with similar
containers like SwipeView.
Change-Id: Ief1b4206db1950130bcb0edcbd61885b3ec9d8b0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Introduce QmakeParser*FileNodes by copying Qmake*FileNodes and renaming
things so that nothing conflicts and both sets of Nodes can be built at
the same time.
The goal of this patchset is to disentangle the project parsing from the
project structure as shown in the project tree.
Change-Id: I4e7383b71849ed4de15d29a45c9b249aa2319a27
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Add a method to FolderNode that compresses a tree of folders like
A/B/C/file.txt into one FolderNode (A/B/C) and a FileNode (file.txt)
Change-Id: I5efa038c33b91ea01017269daa048ba101085d01
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Treat absolute paths more intelligently in FolderNode::buildTree: Add
them with their absolute paths instead of endless sequences of ..
Change-Id: I9d644588f91f1792f997dedfb20e68d210b9cf73
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Gerrit provides this data. There's no reason to wait for the query's
result to determine who I am.
Change-Id: Icd0f08fd08cf428dfbadf88224ae21bd4dbc207f
Reviewed-by: André Hartmann <aha_1980@gmx.de>
The initial m_currentComboBoxIndex was wrong. Initial Zoom-in
jumped to 50% instead of to 125%.
Change-Id: Id090e60322a30e7d4b345fa7b8cd1a7be399fdf1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
When an item in a stacked container is selected,
then select the container instead.
Usually the user is not interested in the contaienr items.
They can still be selected in the navigator.
Change-Id: I4d2d7d3d84d40520a91c71c5fc05c815c50d38a2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Generally painting the place holder for invisble items makes
sense.
The logic is different for items stacked containers,
since those are overlapping and we are only interested
in the current visible one.
Also it does not make sense to paint the placeholder if already
the parent is invisible, since this just creates noise.
The logic is now more complex, but the usabilty increases significantly.
Change-Id: Ia25f2877c79cace475f0b99fd11ebd242c96e4bb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Also adding the NoOp functions. They can be used in models.
Task-number: QTCREATORBUG-17714
Change-Id: Ide9745613850580f0098d2fa7f8889809d18bd45
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This ensures that the actions are always updated first,
before all other views.
This is important in cases where actions are used in the
form editor.
Change-Id: I249817d9583db95f77fb56547abd0a68007b566b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Since a valid property might not exist in the model (no explicit value),
it is useful to have this simple helper function.
Change-Id: I161238fc53186458f1e5157c83b1216b855587f6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Literals seem to evaluate to an error.
If there is an error we just return the expression
which is likely a literal.
Change-Id: I38204573a31dd85de0c906954415f48ce5bace31
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
There is special logic to prefer layouts as parents.
This makes total sense, but comes in the way if the
grand parent is e.g. a stack layout.
Using hints to determine these cases.
Change-Id: Ie93c3f99e851cf319e888cbdb8868272da53b946
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This makes the diff smaller when adding new files with the wizards.
Change-Id: Iabd35afc32f363c465c8d9b36c45d480ea666627
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
The actual problem is fixed by 1f540c6c9, this is to make sure we
don't crash if this regresses again.
Change-Id: Id081ce9a9c3602c3a90216f53d63535097fabd2d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Instead of keeping track which nodes need to be created, create
the tree on-the-fly directly.
Change-Id: Iebb00c385f2abe42c7fd04547a7af85ad8f8f87b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This should allow wizards to restrict the list of kits based
on a required toolchain
Change-Id: Ic2b76c9146ce65f197f2bacb41138a2bf9815e65
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This fixes the second regression introduced by 04a525877b.
Change-Id: I5c5c72a036f139fa564c40e95ebf6acafc99792c
Reviewed-by: Mathias Hasselmann <mathias.hasselmann@kdab.com>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Via CMake project we can add subdirectory like:
> add_subdirectory("subdir/subsubdir" "enotherdir")
Where "subdir" my not contain "CMakeLists.txt" file.
And intermediate directory can contain CMakeLists.txt file
that is not a part of the root node.
This change fix it.
Task-number: QTCREATORBUG-17721
Change-Id: Ice9fba1ca5a979955ec8f44324f75f3bc16ee198
Reviewed-by: hjk <hjk@qt.io>