QmlProfiler: fix potential crash

fixes Ib2ea66bd5694046577a0b5a0e2f611f3ffba0238

Change-Id: Ib7a4e02391513984f1c81a43a5fab490b7f88923
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
QmlDesigner.MetaInfo: C++ class names might equal QML type names

If the C++ class name equals the QML type name we looked up the
CppComponentValue of the C++ class.
This one has no version information, which creates issues
in the item library.

As a solution we try to resolve the type as a C++ class as a last resort.
Any QML type has precedence.

Task-number: QTCREATORBUG-9422
Change-Id: Ia84663cab1b4011f1ef6494de86ea6d92ab74bef
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
add missing QT_BEGIN_NAMESPACE

Change-Id: Ibc35523c82e3260a32bcabaf76c27f633c529fb2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Fix warning when building with Qt 4

Change-Id: I52b6b84732cf363b06ea248eeabdc99d89fb4beb
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Turn struct ProjectExplorerSettings into a class

We agreed to not use structs to avoid the class/struct mismatch
warnings in MSVC and clang.

Change-Id: Id1b2d89646d3a982c8d85b84b44a4e697102c220
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Qbs: Display line numbers for virtual files

Display line numbers as part of the displayName of nodes in the
Projects view. These are shown for the virtual files we use to
enable navigation to Qbs groups and products and it more clear
that these are actually locations in the build system and not
real files.

Change-Id: If32354ad5ceb79c865cae2951fe470c51718728f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
fix qbs build

Change-Id: Ifb851fe09179b4822c53f528c793209226396c33
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
KitChooser: Initialize with last used index

Change-Id: Id9522c973b5d517e7832b92f558a38408cf3fe2b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Git - bugfix with empty string in findRepositoryForDirectory

Change-Id: I44f68ad59d10e9751d09ed6e0f959d2a78d53822
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Git: Use top level for stash working directory

The message in stashPrompt doesn't make sense with an inner directory

Change-Id: Iddbea519915cd22a6882dcafb705d1ed99106db6
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
git - add files for commit that are inside untracked folders

However, files need to be part of the current project to be added to the
list.

Task-number: QTCREATORBUG-9153
Change-Id: Ifb7a4684e85d0ccd688956eeff77b4cc7d807911
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
QmlDesigner: Remove qDebugs in the NodeInstanceSignalSpy

Change-Id: I3f725f3e502cd2541943f1cfb407aad332539606
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Mismatched parens background color now dark on dark backgrounds.

The color is not configurable, but on dark backgrounds, the color is now
dark magenta, rather than magenta.

Task-number: QTCREATORBUG-9025

Change-Id: I9925e598b30a13c8b9691d6e0e576c0087df38da
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Debugger: Implement Dumper.putCallItem() in LLDB interface

Change-Id: I7243b4fe9e8fd91653e236722282fa8f8a9ed82d
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: More LLDB dumper work

For e.g. QMap<uint, float>, std::stack<int *>, 73 pass, 103 fail.

Change-Id: I24f68ad59d10e9751d09ed6e0f959d2a78d53822
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: Re-use flexible upper limit when cutting off string data

A fixed 100 is too inflexible.

Change-Id: I86e996157ea49c14078b3833a5b08dc53d25d1aa
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: Fix part of 2.7 regression in QObject dumper

For e.g. QMap<uint, float>, std::stack<int *>, 73 pass, 103 fail.

Change-Id: I14f68ad59d10e9751d09ed6e0f959d2a78d53822
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: Don't use tooltips as labels.

They might be too long...

Change-Id: Ie3f09c6befbbd037ada86d22bda765524de9c18c
Reviewed-by: hjk <hjk121@nokiamail.com>
Truly support multiple instances

Qt*Single*Application is not designed to support multiple instances.

A shared memory is used to list all pids of running instances.

When an instance gracefully quits, it removes its own entry
and every other entry which is not currently running
(i.e. crashed instances).

Running qtcreator -client opens the first running instance in this list.

Running qtcreator -client -pid works as before.

Task-number: QTCREATORBUG-9458
Change-Id: I25d22a81097a224e9e45af093efa2ef2eccf6cb7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Do not create pid-specific peer file before initialize

When running with -client, pidPeer file is created too early,
and it is not locked, therefore never deleted.

initialize() is called for non-client executions (including the case
of qtcreator -client when no instance is running or qtcreator -client
-pid when the pid is invalid).

Task-number: QTCREATORBUG-9216
Change-Id: I825556b0ec5e1db4240e4a63bfe6aec60386984d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: netyrj <netyrj@gmail.com>