User code might want to keep a QPointer around e.g. to prevent
double instantiation of some box, or delete it automatically
after a while.
Change-Id: Iaa994c2abf321c35ffb3bcb0050d72939c55d941
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Installs the appstream's appdata file into the correct location and with
the correct name. Fixes the contents to conform to the standard.
Installs a desktop file because it's both required by appstream and by
desktop environments. Note this was currently patched in by
distributions.
Task-number: QTCREATORBUG-17335
Change-Id: If1425ec9fbd0c639550852a8d6e1f15a6b9d77ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
...for a given file in the ambiguous case (CppModelManager::projectPart).
There are several places where the first one will be preferred if there
are multiple project parts associated with a project file.
Change-Id: Ic01ea06277bc10f872238dcc181a55532b5783be
Reviewed-by: David Schulz <david.schulz@qt.io>
With Qt 5.6 we have to #include <QtQml> in order to register QML types.
Change-Id: I65faaf61960260806ef022f48f912d96c7e73f01
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
No tool chain set from kit "Qt 5.8.0 (msvc2015_64)".
becomes:
No toolchain set up in kit "Qt 5.8.0 (qt-58)" for "C".
Change-Id: I21b8f166baba85936a082a8943cc2ae74835771e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Project source tree is a same for all build configurations so it is
a good idea to keep it persistent between CMake runs, configurations
switches and so on. It safes a lot of time for big projects.
Move more operations to the scanner thread:
- Nodes filtering: skip .user files on top level of the project, skip
well-known extensions and octet-streams: In most cases these are not
required to be shown in the project tree.
- Nodes sorting
Fix small memory leak: we have .user in the scanner result. After this
node filtered out, but is not feed (old code at the
BuildDirManager::generateProjectTree()). Now .user file skips during scan
without memory allocation at all.
Allow user manually rescan project tree by call Build -> Rescan project
tree. It runs CMake and Tree Scanner together: in most cases only CMake
run requires but time to time (VCS update) full rescan also required.
Change-Id: I4a6e6c897202da557509291c79932dd7751860e5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
std::binary_search expects sorted input. Do not trust the caller to pre-
sort the entries.
Change-Id: Ib1586660c52806a6b85dcf1a059297c948e48b7a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
These messages are purely technical and relate to implementation
details. Therefore the strings should not be translated.
We keep the original method names.
Change-Id: I3f98aea7b9df3890bca097d1e6b77789204c8e19
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
...as the other project managers.
This removes extra code paths, duplication and improves classification
of source files (ambiguous headers).
Change-Id: Iae05cbbc61ab2e5dd841ae617bec994e0a1e52d5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Replace that with clearToolChain(kit, languguage). The only use-case
for that method was to unset toolchains in a kit.
Change-Id: I8cffe39393281f424fa8e044e6b90c5cea17ac90
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This allows us to look up the colors by their enum values, rather than
by strings. Lookup by string is prohibitively expensive as the whole
QVariantMap of theme values has to be converted into a JS object
repeatedly and the strings have to be converted between QString and
QV4:String all the time..
Change-Id: Id131840b1a6e1eaabbd8966d60b9baf1ebed00c1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
We want to install the theme as singleton in various QML engines.
QML engines take ownership of their singletons and want to delete them
on exit. In order to accommodate for this we need copies of the theme.
As all the containers in ThemePrivate are implicitly shared, it
shouldn't be a lot of effort to copy it.
Change-Id: I52391add2fe8f540c19c804945ce9d9161905b90
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
As we can have a context again now, we should be able to show it.
This reverts commit 8679a7caa6.
Task-number: QTCREATORBUG-17177
Change-Id: I221628dc91af839be867cc1bf8dfe5d5163fd321
Reviewed-by: hjk <hjk@qt.io>
Apparently some versions of Qt can produce traces with unmatched start
and end events. We should not crash on those.
Change-Id: Idfb3273f02470156e9f1863c43477d0c3494e0d6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Take all ancestors into account when calculating the offset
of the desired child.
Change-Id: Iaa187c1c918589d9aee8325b1ef3692894f5be55
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Enforce the presence of a sort role for all items and make sure we
don't call column() during sorting. column() can be very expensive on
large models.
Change-Id: I89555072d8ef051d6e0b4f9819159238a1a40859
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
It is unnecessary as it's already shown in the title, and it wasn't translated,
so it showed as "undefined: <blah>".
Change-Id: I063b78df5778d17db8849f73c470184546e0daeb
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
There is only one way to set selectionLocked during regular operation.
The double binding is unnecessary overhead.
Change-Id: I324022a9c49e9a1936fd70371429318d207b4843
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Instead of dumping the complete locals just dump the subtree
with the partial variable.
Change-Id: Ieac5f62efd87144bbea7a6a559d8be8d48d9084e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
...and add some basic tests.
Introduce the abstractions ProjectInterface and ToolChainInterface in
order to break the dependency to the ProjectExplorer. Also, some simple
logic can go there to simplify the (Base)ProjectPartBuilder.
Change-Id: I6c50a1804ce62098b87109931eb171f5c2542937
Reviewed-by: David Schulz <david.schulz@qt.io>