Templates: Set correct settings for qnx target

Task-number: QTCREATORBUG-12013

Change-Id: I6b8fa2409b2a6530267717879d82713313ae6672
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Vladimir Minenko <vminenko@blackberry.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
fix use of $$split()

it takes a variable, not a value.

the spec_pre.prf part is cherry-picked from qtbase/89a558d6b0fac.

Change-Id: Ie7e551cf0b889d7682f032124dd0466ada6972e4
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Fix SyntaxHighlighter documentation.

Change-Id: Icf30cf6683f5cc04f3801465148d95bed2002a4a
Reviewed-by: David Schulz <david.schulz@digia.com>
CppTools: Do not wait in GUI thread for the parsed document

...when collecting data for the semantic highlighting recalculation.

Task-number: QTCREATORBUG-11037

Change-Id: Ibed73a2916df0a91aedef166de2c8c6bb5df309c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
CppTools: Remove invalid optimization for highlighting

The optimization in question could lead to an empty source and thus to
no highlighting. Checking for 'force' and the revisions is at this point
not enough since later the semantic info calculcation can be aborted, so
that a subsequent recalculation would get an empty document.

contents() itself is already optimized (uses caching).

Task-number: QTCREATORBUG-11367
Change-Id: If31a8ab0c848e4babd38104961fb9812f077a2be
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
CppTools: Fix data race when accessing the editor revision

Addresses the following findings of QTCREATORBUG-12030:
 * qtc.helgrind.plugintests.txt#2
 * qtc.helgrind.usingEditors1.txt#1

Helgrind report (truncated):

Possible data race during write of size 4 at 0x23679618 by thread #1
Locks held: none
   at 0x6819003: ???
   by 0x681D713: ???
   by 0x68200DE: ???
   by 0x684B8F8: QTextCursor::insertText(QString const&, QTextCharFormat const&)
   by 0x684BCB9: QTextCursor::insertText(QString const&)
   by 0x139DA06C: TextEditor::BaseTextEditorWidget::keyPressEvent(QKeyEvent*) (basetexteditor.cpp:1866)
   by 0x184C999F: CppEditor::Internal::CPPEditorWidget::keyPressEvent(QKeyEvent*) (cppeditor.cpp:1416)

This conflicts with a previous read of size 4 by thread #18
Locks held: none
   at 0x680BC54: QTextDocument::revision() const
   by 0x159047F3: CppTools::CppEditorSupport::editorRevision() const (cpptoolseditorsupport.cpp:198)
   by 0x158E39BF: CppTools::Internal::CppModelManager::buildWorkingCopyList() (cppmodelmanager.cpp:525)
   by 0x158E3D5B: CppTools::Internal::CppModelManager::workingCopy() const (cppmodelmanager.cpp:544)
   by 0x1589FF6F: CppTools::Internal::CppCompletionAssistInterface::getCppSpecifics() const (cppcompletionassist.cpp:1957)
   by 0x158A1158: CppTools::Internal::CppCompletionAssistInterface::snapshot() const (cppcompletionassist.h:200)
   by 0x1589707C: CppTools::Internal::CppCompletionAssistProcessor::startCompletionInternal(QString, unsigned int, unsigned int, QString const&, int) (cppcompletionassist.cpp:1212)
   by 0x15893CC7: CppTools::Internal::CppCompletionAssistProcessor::startCompletionHelper() (cppcompletionassist.cpp:970)

---

Possible data race during write of size 4 at 0x24C8AD18 by thread #1
Locks held: none
   at 0x684AF23: QTextCursor::beginEditBlock()
   by 0x139D7D05: TextEditor::BaseTextEditorWidget::keyPressEvent(QKeyEvent*) (basetexteditor.cpp:1578)
   by 0x184C999F: CppEditor::Internal::CPPEditorWidget::keyPressEvent(QKeyEvent*) (cppeditor.cpp:1416)
   ...
   by 0x40F15A: main (main.cpp:533)

This conflicts with a previous read of size 4 by thread #11
Locks held: none
   at 0x680BC54: QTextDocument::revision() const
   by 0x159048D3: CppTools::CppEditorSupport::editorRevision() const (cpptoolseditorsupport.cpp:198)
   by 0x158E3A9F: CppTools::Internal::CppModelManager::buildWorkingCopyList() (cppmodelmanager.cpp:525)
   by 0x158E3E3B: CppTools::Internal::CppModelManager::workingCopy() const (cppmodelmanager.cpp:544)
   by 0x1590741E: parse(QFutureInterface<void>&, QSharedPointer<CppTools::SnapshotUpdater>) (cpptoolseditorsupport.cpp:299)

Task-number: QTCREATORBUG-12030
Change-Id: Idf0aa47f1f6bfd6814a961fe39d3b19b98f934f5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
QmlProfiler: Always reset the context before drawing on a canvas

The context is stateful and there could be any kind of junk left in it.
In particular, the W3C spec says that it should be set up with a default
clipping path on creation, but it doesn't say what should happen if the
canvas is resized. Thus, we can never be sure that the clipping path is
sane.

Task-number: QTBUG-38297
Change-Id: If04597234e71574573888ce14deac5cf50df4a3f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
QbsProjectManager: Fix building of single files.

After doing this once, the active file tags were not reset, so
building everything was no longer possible.

Change-Id: I98df5f55e129cc4a72921aff51201e1860ba939a
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
fix qt4 build: remove extra spaces

qt4 qmake does not like spaces between 'for' and the opening paren.

Task-number: QTCREATORBUG-12024
Change-Id: I8697272b4f752495f3bf6ff2c6d01c4ac2ea837f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
QmlDesigner.PropertyEditor: Do not allow negative width or height

Task-number: QTCREATORBUG-12025
Change-Id: I5348869e8627ca7de0cd5f3c67bbeb3353770f15
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Revert "MsvcToolChain: correct suggested Mkspec list."

The WinRT xmkspecs detection was broken by this patch.

This reverts commit 8095a212b378d165712766377926434038f0948d.

Change-Id: I6bc1b2dc2e090c6e7bd0cfa1894b678083a1d107
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
QmlDesigner.PropertyEditor: Fixing minimum and maximum values for reals

I also show 2 decimals for the template based real SpinBox.

Task-number: QTCREATORBUG-12041
Change-Id: Iac79dec47c9ec55913231e327ba2727e0af5c652
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
QmlDesigner.PropertyEditor: Fixing colouring for FontComboBox

Task-number: QTCREATORBUG-12027
Change-Id: Ic5ad0e16a7d60dacc89fa4c226e30a40a45be9db
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Debugger: Fix setting breakpoints in disassembly view

This is a regression, the editor was not recognized as being
a disassembly view anymore.

Change-Id: I281ecf0a49bb4e365b252793f6a5aa89f7b432ff
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Update qbs submodule.

To HEAD of 1.2 branch.

Change-Id: Ifc794212edb88b968a7d7de7ba1cf1259613daa9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
QmlDesigner.PropertyEditor: Fixing layout

Template based SpinBoxes were to small in some cases.

Change-Id: I8bb3ca98cfe53172fc25171c81b3178657737d65
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
QmlDesigner.PropertyEditor: No transactions based on focus

This is to fragile and allows many opportunities for serious bugs.

Change-Id: I2e49c37db4c1dd2c55000013d8ec7e0978d1ef89
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Tests: Fix wrong braces

Change-Id: I42be43ece7b8791e4299776f86fc3d9740ecffb8
Reviewed-by: hjk <hjk121@nokiamail.com>
QmlDesigner.StatesEditor: Do not allow adding states to Window

We only checked for ApplicationWindow. Instead of ApplicationWindow
we have to check for Window. ApplicationWindow is derived from Window.

Change-Id: I5d287af4284e31dcd77e06b498c5ae61dc348ad6
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
replace platform conditional with QMAKE_DIRLIST_SEP

Change-Id: I2646a2c30573417ba9da4b57b100d33144cef349
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>