Commit Graph

21107 Commits

Author SHA1 Message Date
Eike Ziller
a9c0d4453e Remove unnecessary import, removes a warning
Change-Id: If89bec794fe3fe5315b69ad283d35c2ba0abced3
Reviewed-on: http://codereview.qt.nokia.com/2779
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-08-09 13:52:35 +02:00
Friedemann Kleint
1f13482f69 Yet another compile fix for MinGW/Windows.
Change-Id: Iea0d998de254d26e15a8703812b3aad8399721a8
Reviewed-on: http://codereview.qt.nokia.com/2777
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 13:44:37 +02:00
Kai Koehne
342abadf36 QmlDebugger: Hit breakpoints for simple bindings also for .qmlproject
Make sure QML_DISABLE_OPTIMIZER is set also when debugging with
qmlobserver

Change-Id: I33aa4cd50ae184e339e3783488ba236eecdf7b33
Reviewed-on: http://codereview.qt.nokia.com/2753
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-08-09 13:40:20 +02:00
Jarek Kobus
be40d9ca93 Apply code style settings to templates
Task-number: QTCREATORBUG-169

Change-Id: I380c956d3256c186ff9497463ab845228017ff87
Reviewed-on: http://codereview.qt.nokia.com/2671
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 12:01:06 +02:00
Friedemann Kleint
9e3e7d3691 Compile fix.
Change-Id: I6ce0d3d063cda97d55d102b8d6988934e5411846
Reviewed-on: http://codereview.qt.nokia.com/2771
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 11:12:38 +02:00
Friedemann Kleint
538ca05d22 Compile fix.
Change-Id: I046ae871ef482bf36ee21ba77abd706292a15d3f
Reviewed-on: http://codereview.qt.nokia.com/2768
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 11:03:02 +02:00
Christian Kamm
ffee7c0b49 QmlJS: Clean up ScopeAstPath visitor.
Change-Id: If983e9c9bee2d0396d7cc00973ee3885a3736d8a
Reviewed-on: http://codereview.qt.nokia.com/2767
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-09 10:47:31 +02:00
Friedemann Kleint
795d4506e6 Debugger: Fix MSVC detection.
Trigger AttachCore for MSVC flavours only.
Handle .dmp files on the command line.

Change-Id: I65be1ad7aef36db157a84499ff5e10d9f1e8fb97
Reviewed-on: http://codereview.qt.nokia.com/2766
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 10:39:56 +02:00
Christian Kamm
197c60e928 QmlJS: Add XMLHttpRequest, DB API and JSON completion.
Change-Id: I30773e8879086c1f85d331fabf9380e217b32dd7
Reviewed-on: http://codereview.qt.nokia.com/2745
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-09 08:36:35 +02:00
Kai Koehne
c42e966184 JSDebugger: Only hit breakpoints in user code
Check that the topmost stack entry is a user defined ScriptFunction.
This avoids hitting the anonymous functions used for bindings, e.g.

onClicked: Qt.quit()

leads to script code

(function onClicked() { Qt.quit(); })

which will be hit twice for the debugger: Once for the function call
itself, then for the execution of Qt.quit().

Change-Id: I4cb374782c93a26d97d4a717ce67d1fb2f6df438
Task-number: QTCREATORBUG-5090
Reviewed-on: http://codereview.qt.nokia.com/2746
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-08-08 16:31:44 +02:00
Friedemann Kleint
e0ba50066d Compile.
Change-Id: I118bdfd3fb9843e7522cec304a0d7da879651b30
Reviewed-on: http://codereview.qt.nokia.com/2750
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-08 15:23:07 +02:00
Friedemann Kleint
9592eb5383 Compile.
Change-Id: I9e2f02bfa3dcc2e3ab2895620ee3f163edc3d764
Reviewed-on: http://codereview.qt.nokia.com/2749
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-08 15:06:37 +02:00
Friedemann Kleint
7fbbe77874 Debugger[CDB]: Rework string formatting.
Use watch encoding without quotes for non-ASCII output.
Use formats with quotes for recoded strings.
Extend char-pointer recoding to work for char-arrays as well
and restrict to char types. Split up and re-use when
outputting QByteArrays or std::[w]string.

Task-number: QTCREATORBUG-5667
Change-Id: If9748c2e375ee5ecb05d257410eba4012de1c3cf
Reviewed-on: http://codereview.qt.nokia.com/2747
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-08 15:00:57 +02:00
Christian Kamm
815d9cb14d C++ completion: Minimize qualified names in function signatures.
Change-Id: I8e2c38e279952372b3e12f6ea8da18b75b39a5d4
Reviewed-on: http://codereview.qt.nokia.com/2733
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-08-08 14:48:03 +02:00
Christian Kamm
6fe8d74af8 C++ insert definition: Find better insertion point.
Change-Id: Ic424ae7ed4ac6dcda5d96353071ba0415c1815da
Reviewed-on: http://codereview.qt.nokia.com/2732
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-08-08 14:47:56 +02:00
Christian Kamm
a4e85dda53 C++ insert definition: Use minimally qualified names.
Change-Id: I633dbc77557fc2b6563888103350612a262536ee
Reviewed-on: http://codereview.qt.nokia.com/2731
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-08-08 14:47:49 +02:00
Christian Kamm
0e54183d4d QmlJS: Remove Interpreter namespace.
The distinction between QmlJS and QmlJS::Interpreter has always been
weak and the extra namespace just added an unnecessary complication.

Change-Id: I4db8ef4bd91b5f6bf610a9d23fdbf55bd60250fc
Reviewed-on: http://codereview.qt.nokia.com/2743
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-08 13:21:28 +02:00
Christian Kamm
ff092f79b3 QmlJS: Remove LookupContext.
Use Context or ScopeChain instead.

Change-Id: I2489477eac08774ba41710ee81876aab11b5af24
Reviewed-on: http://codereview.qt.nokia.com/1699
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-08 12:28:55 +02:00
Christian Kamm
76be300202 Fix the build.
Change-Id: I0fc65bb7e7336b930299364f3fe977f42d035523
Reviewed-on: http://codereview.qt.nokia.com/2740
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
2011-08-08 12:11:15 +02:00
Christian Kamm
9dc9674c6b QmlJS: Share Context.
Previously Context was not entirely thread safe and had to be
copied locally. Now it is thread safe and its lifetime
managed by QSharedPointer.

The non-safe parts were moved into ScopeChain in a previous commit.

Change-Id: I851a93de85cbd6391dbea0fe33b011e2e093addb
Reviewed-on: http://codereview.qt.nokia.com/1695
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-08 12:05:19 +02:00
Christian Kamm
f87dc61986 QmlJS: Split Context and ScopeChain.
Context is created by Link and has information about imports
for all Documents in a Snapshot.

ScopeChain represents how lookup is done at a specific place in
a Document.

Change-Id: I874102d57bbaf1a497fa3f27633bed6ee75dcf10
Reviewed-on: http://codereview.qt.nokia.com/1694
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-08 12:05:03 +02:00
Christian Kamm
ed1321a4f9 QmlJS: Resolve references while evaluating expressions.
Task-number: QTCREATORBUG-5752
Change-Id: Ibcdaac039a5e862d7a8f03f58c8bf017b544e436
Reviewed-on: http://codereview.qt.nokia.com/2736
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-08-08 12:04:49 +02:00
Christian Kandeler
1584917985 MeeGo: Adapt package name to changed OVI store requirements.
Fremantle needed the application version as x_y_z, for Harmattan it must
be x.y.z, otherwise the package will not be accepted by the store.
Obviously.

Task-Number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=276021

Change-Id: I93b8fd7f1c95b9ef26df97f817e3b8b610c4e932
Reviewed-on: http://codereview.qt.nokia.com/2697
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-08-08 09:58:35 +02:00
Friedemann Kleint
97a2cc53cf Debugger[CDB]: Implement AttachCore for debugdiag dumps.
Change-Id: I19c57248ed5e7c43b14b849419c9edf29bca26dc
Reviewed-on: http://codereview.qt.nokia.com/2706
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-05 17:43:58 +02:00
Friedemann Kleint
74bab64caa Add missing network.
Change-Id: I83c82b8f09bee0e51773d82f17cd5782287d8675
Reviewed-on: http://codereview.qt.nokia.com/2695
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-05 15:41:29 +02:00
hjk
2dc1ed8c32 debugger: add manual test for QHostAddress dumper
Change-Id: I6cc146b1d5b21a4d4881a35a11ce24ad378e813c
Reviewed-on: http://codereview.qt.nokia.com/2694
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 15:07:06 +02:00
hjk
a5e893a428 debugger: improve QHostAddress dumper
Change-Id: Ie1e52619a3fa8d47e60f6508aa9a6d5fc9a0d21b
Reviewed-on: http://codereview.qt.nokia.com/2693
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 14:43:30 +02:00
hjk
9bc212dea7 debugger: change default value for 'break on qFatal' to 'false'
Change-Id: Ief1879c1e8009d1a60575180d4132d8f03a88b08
Reviewed-on: http://codereview.qt.nokia.com/2690
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-08-05 14:12:40 +02:00
Kai Koehne
478ba05474 QmlProfilerTraceClient: Cleanup
Move private members into d pointer, remove unused signal,
rename clearView() method & clear() signal to clearData(), dataCleared()

Change-Id: I0baf78107861a469185c736fc448b4d3a7929cdd
Reviewed-on: http://codereview.qt.nokia.com/2691
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-08-05 14:08:29 +02:00
Jarek Kobus
c7f6c06dcb Add "Switch Header/Source" action to the context menu
Task-number: QTCREATORBUG-5324

Change-Id: I137c9430e538714684ff6000ea68340a6f802615
Reviewed-on: http://codereview.qt.nokia.com/2688
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
2011-08-05 14:07:15 +02:00
hjk
0cd76d4b1f fakevim: update manual test code
Change-Id: I1356c07a4a7a9a42d905aa9040c4d31d50c813d6
Reviewed-on: http://codereview.qt.nokia.com/2686
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 12:45:14 +02:00
Kai Koehne
687a60065a QmlJSDebugClient: Move QmlProfilerTraceClient into library
Change-Id: I1c0821778a3350ec55741b45680fca2cb1fed3aa
Reviewed-on: http://codereview.qt.nokia.com/2680
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-08-05 12:17:30 +02:00
Kai Koehne
4cd119a985 QmlJsDebugClient: Compile it as separate library
Should boost build times.

Change-Id: I35c9fd32d2df6dbdadf4d324eb87dbfb491e5ef2
Reviewed-on: http://codereview.qt.nokia.com/2673
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-08-05 12:17:24 +02:00
Kai Koehne
bb41109b0e QmlJSDebugClient: Fix style & indentation
Change-Id: I87bdb465816fc68f83f6c5e097c9d9b853614b94
Reviewed-on: http://codereview.qt.nokia.com/2672
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-08-05 12:17:16 +02:00
hjk
ca7d5942a2 coreplugin: simplify VariableManager
Change-Id: Id89dba3be538a29953b374e58df961835ea4207a
Reviewed-on: http://codereview.qt.nokia.com/1298
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 11:26:16 +02:00
Jarek Kobus
8ae36294c6 Polish Polish translation
Change-Id: I5c48cd5cc5fcb8298dabb4a612a3fbb35ae6f491
Reviewed-on: http://codereview.qt.nokia.com/2679
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
2011-08-05 11:23:50 +02:00
hjk
258d168a91 fakevim: remove now unneeded oldTabSettings
Change-Id: I61c817bf1efa16fda88b71bfbbf8d6f4cd8644f0
Reviewed-on: http://codereview.qt.nokia.com/2674
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 10:37:52 +02:00
Jarek Kobus
0c8df0597f Refactor: Get rid of BaseTextEditorWidget from Indenter
Provide directly TabSettings instead.
This will be used for indenting a text for which
there is no editor instance.

Change-Id: Ia5f11a481f42464cf4820efdf2c7c4c32166f55e
Reviewed-on: http://codereview.qt.nokia.com/2622
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-08-05 10:29:41 +02:00
Eike Ziller
55f0f64a5d Wait with activating/opening a Locator entry until update has finished
So, if you pressed the enter key faster than the list updated, it will
wait for the list to update and then select an entry, which is much
saner behavior.

Task-number: QTCREATORBUG-5710
Change-Id: Ic98d48122c9db1aad903f9b76040ae5c14a8c44e
Reviewed-on: http://codereview.qt.nokia.com/2667
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-08-05 09:11:06 +02:00
hjk
30076b1c97 fakevim: remove visually selected contents before pasting.
Task-number: QTCREATORBUG-5605
Change-Id: Iee28b1acaeb4d8ad073bfadb0aab277f11b5001f
Reviewed-on: http://codereview.qt.nokia.com/2669
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-05 08:49:13 +02:00
hjk
e0a667067b debugger: show va_list in hex
Task-number: QTCREATORBUG-5608
Change-Id: Ia0e741cd7ceb9f3a247468ceca10af0c728338a5
Reviewed-on: http://codereview.qt.nokia.com/2638
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-04 17:15:11 +02:00
Thomas Hartmann
b40d056b15 QmlDesigner.navigator: fixes crash for context menu
We have to add a check if the item we want to set visibility on
is really an item. See: isItem()

For general safety I added try catch blocks for RewritingExceptions


Task-Number: QTCREATORBUG-5731
Change-Id: I72f4f5ae69067a04b09880ae071265c83f880b4c
Reviewed-on: http://codereview.qt.nokia.com/2637
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
2011-08-04 16:47:29 +02:00
Kai Koehne
1a5fe56569 QtQuickApp wizard: Deactivate .qml file selector by default
Change-Id: If7b94a0c5ddad7c06ffb41df1b0678181b0702fa
Reviewed-on: http://codereview.qt.nokia.com/2635
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2011-08-04 16:43:30 +02:00
Jarek Kobus
eb57d1de39 Fix the order of mobile wizards' items
Task-number: QTCREATORBUG-5706

Change-Id: Iaaa5d7ccdb2948bc4ef2ae234ade8e769e22737a
Reviewed-on: http://codereview.qt.nokia.com/2520
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-08-04 16:33:24 +02:00
hjk
5e8843846a analyzer: disable start options if there's no project
Task-number: QTCREATORBUG-5627
Change-Id: Ia8affb07ba1d87c0b333ca3a547fc9eed32062f4
Reviewed-on: http://codereview.qt.nokia.com/2636
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-04 16:07:45 +02:00
Christiaan Janssen
77f0176368 QmlProfiler: fixed sorting of "event type" field
Change-Id: Ibaa321c65f44c4ca9c87bb312659173bb2f26d64
Reviewed-on: http://codereview.qt.nokia.com/2634
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-08-04 15:59:45 +02:00
Aurindam Jana
50d3bd31f8 Remove warning for unused paramters in qmlv8debuggerclient.
Change-Id: I4e82880f9026e5b9c321a21e9995724b0744550b
Reviewed-on: http://codereview.qt.nokia.com/2629
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-08-04 15:52:52 +02:00
hjk
c6f68be6e7 qmlprofiler: remove unneeded variables
Change-Id: I96a06298018ab3ff3cfc6b6235c71ec5d33f7cbb
Reviewed-on: http://codereview.qt.nokia.com/2633
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-04 15:47:42 +02:00
hjk
ef0a19d926 analyzer: less global symbols
Change-Id: I2f771c7dc2a709611c68b97a5287804d4b8590fd
Reviewed-on: http://codereview.qt.nokia.com/2632
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-04 15:42:44 +02:00
hjk
4ee7d07f1b analyzer: modify a copy-and-pasted windows title
Change-Id: Ie159ddb6d40aa4c20be7be5bf7cf2571e60ca85f
Reviewed-on: http://codereview.qt.nokia.com/2631
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-04 15:42:33 +02:00