Android: Fix deployment of release builds with Qt 5.3 and earlier

Since unsigned packages are not deployable, we always make
packages signed with the debug key when there's no signing requested,
even if the native code is built as release. This was already
fixed for Qt 5.4, where we use androiddeployqt to deploy the apk,
but for earlier versions, we need to use the correct apk name.
We also need to use the apk name which is used by androiddeployqt
in Qt 5.3, which does not contain the "-signed" suffix.

Change-Id: I87f7936002946acd80bc245935c44cf148f9630d
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
OS X: Add background image to installer and update images

"Watermark" is not available on OS X
We have a new logo now

Task-number: QTCREATORBUG-13482
Change-Id: I01fdfb958bc67660a87a2c5a18f88613e7121aff
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Doc: remove support for building docs with Qt 4

The templates are fetched from qtbase/doc/global

Change-Id: I15386a66e1dae552f5637062d9f176bf6565a834
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
SettingsDialog: Fix default button

The default button would move to the first pushbutton that got focus.
E.g. tabbing through the android settings would move the default button
to the first button that got focus.

The cause of that is that for QPushButton::setDefault to work, the
button needs to be a child of the QDialog. So call it after adding
the buttongroup to the layout.

Change-Id: Ife35bf15aa8585f7931a87ee715f316bb02b36be
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
ProjectExplorer: Fix disabled "Close Project" after closing project

The close project action is special. If there are multiple projects open
we show a menu with individual actions per project. If only one project
is open, we show one the "m_unloadAction". Even with only one project
open, the current project might be null. So explicitly manage enabled
the same way as visible. And also us the displayName of the startup
project, since that is guranteed to be non-null if there's a project
open.

Task-number: QTCREATORBUG-13497
Change-Id: I9150568da162c58ee524c2b954e0b9a816f79d7c
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Valgrind: Fix memory leak

Detected by valgrind :)

Change-Id: I4e6b9cb1980cce82170e3f6c2e7cb541dd838d5e
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
CppTools: Remove QTC_ASSERT

A DiffEditorDocument has an empty file path.

Change-Id: If097497514afa82b1ed220a37cae410f4a81aa9a
Task-number: QTCREATORBUG-13489
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Doc: Prepare Qt Creator manual for the qt.io online style

  - Add a copyright notice (required for projects external
    to Qt in the new template)
  - Add an .html file with sidebar content

Change-Id: I2c9d965698aa2d2ed01426510b16916ed4fef8cf
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Utils: Fix memory leak in JsonMemoryPool

objects are freed, but their dtors are not called...

Detected by valgrind

Change-Id: Iec8d78c205e9b2722ee5a89941df96c3383b385b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
ToolChains: Do not list ToolChains removed by the sdktool

Remove ToolChains removed by the sdktool from user settings. This
prevents them from being created again.

Task-number: QTCREATORBUG-12751
Change-Id: I61b77acb6ab12815d3b09bd766ba44301c517aed
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
ElfReader: Catch bad_alloc exception

Might happen on file.readAll() for large elf files.

Change-Id: Id338e647d2d0903d2071b5f35ffc7a00e6aca24d
Reviewed-by: hjk <hjk121@nokiamail.com>
Doc: Improve description of "Qt mkspec" field

The mkspec is a global configuration for qmake, not a 'build instruction'.
For people new to qmake, and build systems in general, it might be arguably
a bit hard to grasp what an mkspec is (the qmake documentation doesn't
explain it apparently, either). Still, this is probably not the right
place to go much more into details ...

Change-Id: I80aa5fb9e4751242dd2570613951f2e1387c4433
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Ssh: Remove wrong Q_ASSERT in SshRemoteProcess destructor

This can be triggered rather quickly by clicking "Run" for a short-
lived application on a QNX device. The state in this situation is
QSsh::Internal::AbstractSshChannel::SessionRequested.

Change-Id: I4447b85a4e8d6ba63e30f3783d29bb0c816e0dff
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
qmljs: avoid storing qmltypes and qmlproject

qmltypes files were stored in the snapshot during scan, this is wrong
and bloats the memory usage.

Task-number: QTCREATORBUG-13369
Change-Id: Ie8c3970ad7a8d732230f3dc73a9ba65ab62ea4e9
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
Doc: update info about other build systems than qmake

Change-Id: Ie836c97bd6b87e9122b5d9f7be1f078ebbca4d8b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Extending Doc: Add warning about what the Qt Creator plugin wizard creates

Because we do not guarantee any source or binary compatibility,
you should use the Qt Creator version that you want to develop for
to create the plugin

Change-Id: I747653f8bbd3df9cc82af7fac67abcf14e786241
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Android: Fix name for api level 20

Change-Id: I21ec1294c090966b59d556992f45b5be4615cb20
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Revert "ToolChains: Do not list ToolChains removed by the sdktool"

Obviously the patch removes too much.
This reverts commit 9a5f81d96fd81dfeec9edd47c73f74498bc1b897.

Change-Id: Id6f128a8d72b51d0d1701a0a82377b56e2a314b2
Reviewed-by: hjk <hjk121@nokiamail.com>
Perforce: Don't crash on large log output

Change-Id: I3766d20f5faaa01f38418cdfdcc4977cf9189fc7
Reviewed-by: Cristian Adam <cristian.adam@here.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Debugger: Require some clang version for clang specific test

Change-Id: Ib6ba0ffb5957a60e700abd9a540bd7bbf5888b2a
Reviewed-by: hjk <hjk121@nokiamail.com>