Fix setting DocumentManager::currentFile when clicking into split

This broke when introducing delayed setting of the currentEditor when
the context changes. Simply move the logic from the document manager to
the editor manager, where it arguably belongs to anyway, and also set
the currentFile delayed in that case.

Task-number: QTCREATORBUG-12264
Change-Id: I67ee3f9a02e62cfa67671629c956a4290361cba8
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
Fix up version bump

Change-Id: I00671d20c3adc7aebcc5e1a984e4c0475195ba74
Squish: Let tst_HELP04 run on Qt 5.3

Change-Id: I41a3121e616e5709f10e8d03da2fb71356d06498
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Squish: Fix getEditorForFileSuffix() and simpleFileName()...

...when using filenames coming from Squish's treeview syntax.

Change-Id: I0296dbabb09af11dde5ed4716b1b1f48f05c47e1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Help: Fix filtering in topic chooser

Probably broke with a74de6af81b659ef0dcbbbe25f94d9b527c2be98

Change-Id: I6df2b7ae88d6bd337cd110d6788dbb68ca73eb16
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
C++: fix nested anonymous with __attribute__

Task-number: QTCREATORBUG-12345
Change-Id: Ib2316ebdc81393b38185b9cb659fb85b78753e7b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
CodePaster: Do not crash in case of invalid default protocol

Task-number: QTCREATORBUG-12364
Change-Id: I6e9bf75dd6b8df187a6802e9d90c3d986cc86a5c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
QMake: Fix missing qrc files in locator/search/...

The QMake project didn't put them into files() anymore since qrc nodes
where made folders.

Change-Id: I8e9354699cfccc4fdd4f5ce39baa30a9d61ce051
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Update qbs submodule.

To the head of the 1.2 branch.

Change-Id: I3646c499af05fc0488d6e712b99b9a53636ca935
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Add changes file

Change-Id: If5e742f658602e5254a9350902342f8452934674
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
packaging: fix qt.conf for ios tools

Qt 5.3.1 does not set the profix only based on the use of QGuiApplication
but actually checks if the app is a bundle, so the Prefix hack in the
qt.conf for the ios tools is not needed anymore.

Task-number: QTCREATORBUG-12393
Change-Id: I6a228d83370bc62929ffd056b9b3051e4562485e
Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
QmakeNodes::addNewInformation: Be responsible subfolder nodes

And increase the priority for those too. Fixes the case:

a.pro
 b.pri
   test
 c.pri

Right click on test and add new file. In that case b.pri should be the
node to which the file is added.

Task-number: QTCREATORBUG-12272
Change-Id: I54d144861bc06545db8e71ed33513a0df971dae2
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
C++: add test for anonymous with __attribute__

Change-Id: I1938ed1bf45523ec62f35bc3324f6553c0dafe22
Sanity-Review: Qt Sanity Bot <qt_sanitybot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Fix crash when adding files from window menu

Introduced by 2ad3147542a45436733ddd7014993bcc3022a654

Task-number: QTCREATORBUG-12409
Change-Id: I422d315c5b9d22052251a0869d314adff7741af0
Sanity-Review: Qt Sanity Bot <qt_sanitybot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Doc: OTHER_FILES variable

Task-number: QTCREATORBUG-12054
Change-Id: I994098197514217522fe288f7e2a83e66ffd795e
Sanity-Review: Qt Sanity Bot <qt_sanitybot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Allow sdktool to run in an elevated context

This fixes an issue with installation on Mac: We run sdktool with
'elevated' rights if we e.g. install in a global directory, forcing
the effective user id to be 0. However, since Qt 5.3.0 QCoreApplication
aborts if geteuid() != getuid().

Change-Id: I678f405fc0cb31dbf9c0487f674bb8dbe5e2e95e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Update qbs submodule.

To the head of the 1.2 branch.

Change-Id: I2bd0460553afa6a8fba0bf01cfa2addc06a043b5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Doc: checking include paths in C++ Code Model Inspectors

Change-Id: Ia9c65df9c2e542b135f3eccb3dfdc137c03f732a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Fixed compilation error on RHEL 5.10.

Nesting the namespace "Internal" inside of other namespaces and using
sequential "using namespace" directives *or* relying on a "using
namespace" directive to resolve a method name that contained the
"Internal" namespace for resolution resulted in ambiguous resolution
errors when compiling with the RHEL5.10 stock compiler (GCC 4.1.2).  A
sample error is provided below:

Compilation error encountered was:
reference to 'Internal' is ambiguous
/usr/lib/gcc/x86_64-redhat-
candidates are: namespace Internal { }
qt-creator/src/libs/cplusplus/PPToken.h:106: error:
namespace CPlusPlus::Internal { }

Modifying the using namespace directives to reflect the nested nature of
the namespace names resolved the compilation errors.  For example:

using namespace CppEditor;
using namespace Internal;

produced errors.  However,

using namespace CppEditor;
using namespace CppEditor::Internal;

resolved the compilation errors by removing the ambiguity.

Change-Id: I6d5051e20acb2c147bd7ee1c6c6e1e3b2b4ff0f9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Debugger: Make dumper work with GDB 7.7

GDB 7.7 changed behavior e.g. for the names of anonymous fields,
we need to adjust dumpers and some tests.

Change-Id: I25ae32cc56c4ff63b677a04d6ed9c250e0252140
Reviewed-by: Eike Ziller <eike.ziller@digia.com>