Run only a single query per context.
Change-Id: Icf86e06ab60f8d74ab1de092c6c7e41570423d2e
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
TreeScanner uses callbacks that can refers to the destroyed objectes
when project closing.
Found scenario:
1. Open big CMake-based project (CLang/LLVM good choose).
2. Until file system scanning finished switch to another session.
Change-Id: Ia0f55f38aea6a9d07ca81aee6c9e9c5662d74f3a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
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>
Only the test clangstaticanalyzerlogfilereader makes use of that.
Change-Id: I5761ed023eab1b03dbb276d1798163fd2fb81e3d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
...due to a not set master temporary directory.
Change-Id: I6668209e9b724f6560331f683b63e1c41616f060
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
std::future is disabled when compiling with target 10.7, so
we need to enforce 10.8 when building against Qt 5.6 which has
default deployment target 10.7
Change-Id: I8d7b2646d0fb5268f82f5e01dae1f7e40a80bb8b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
It uses types that do not exist in Qt Quick Controls 2, and
Qt Creator version 4.3 no longer has a wizard for using the
older controls.
Change-Id: I42884ca75eefe957493fcb47d6b243a93341b79c
Reviewed-by: Thomas Hartmann <thomas.hartmann@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>