Friedemann Kleint
622cac50f4
Move QtConcurrent library into Utils.
...
It causes a conflict with the new QtConcurrent library
of Qt 5 and is quite small.
Change-Id: Ib97ab6daf8f67a88300cf03f044ba3593a4cd270
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2012-02-09 12:33:10 +01:00
Daniel Teske
b8ae31e664
Remove checking for a null sessionmanager.
...
That can't happen.
Change-Id: I05293e96e7a716fbaf5fd03aa182c723c9858a03
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com >
2012-01-31 14:15:35 +01:00
hjk
2931a499e6
Long live the king!
...
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com >
2012-01-26 19:55:36 +01:00
hjk
4a21f0c3c8
Use new static ICore interface.
...
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com >
2012-01-24 18:48:47 +01:00
Fawzi Mohamed
b43dade44d
qmljs: fix racing condition with importPaths
...
fixes QTCREATORBUG-6768
Change-Id: I53646df69aa9d0ce97006c68826b02a1452fe4d9
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2012-01-13 11:26:00 +01:00
Leandro Melo
c287d90604
C++: Rename source/setSource to utf8Source/setUtf8Source
...
Continuinng a previous commit... This is in order to make
the interface clearer.
Change-Id: Ic1b05217f878578bc84a064927507b75981c47d6
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-01-13 11:22:28 +01:00
Leandro Melo
fd179ed951
C++: Accept UTF-8 byte arrays in type of expression
...
The model uses UTF-8 internally and it makes more sense to only
convert when necessary.
A following commit will rename the source/setSource methods in
document for more clarity too.
Change-Id: I960ea0754efabd1436ad4b4299a57faeb65a8bee
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-01-13 10:17:03 +01:00
Leandro Melo
f04be782ab
C++: Preserve original indentation in extract function
...
Also extend the refactoring changes to allow for reindenting.
Task-number: QTCREATORBUG-6797
Change-Id: I515c9a37d9e62e1d5de52ff99bd492e739a81885
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2012-01-12 15:32:02 +01:00
Eike Ziller
b50e48a1fa
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
share/qtcreator/welcomescreen/widgets/ExampleDelegate.qml
src/plugins/qtsupport/exampleslistmodel.cpp
src/plugins/qtsupport/exampleslistmodel.h
src/plugins/qtsupport/gettingstartedwelcomepage.cpp
src/plugins/qtsupport/gettingstartedwelcomepage.h
Change-Id: I268072db01064d71bc4828942d71fc772ddd3539
2011-11-28 08:34:37 +01:00
Jarek Kobus
3d57758d61
Transform always old code style settings
...
Before, we didn't transform the code style settings
if they were defaults (so no entries were written
for them in the settings). In case someone
changed global tab settings and didn't touch
code style settings in 2.3, the code style settings
were not transformed. Now, we transform them too
so that legacy code style settings in 2.4
(named: "Old Creator") contains old global tab settings.
We also take care of not creating legacy settings
in case neither textTabPreferences nor CppTabPreferences
nor CppCodeStyleSettings were saved (when creator 2.3 used only
defaults or when it's a first run of creator 2.4 without
old settings).
Handle legacy transformation for qml too.
Make a code bit more readable.
Task-number: QTCREATORBUG-6614
Change-Id: I37b8dd4d1170f397b7d304c59575d9ae37884564
Reviewed-by: Leandro Melo <leandro.melo@nokia.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-11-25 09:54:47 +01:00
Eike Ziller
e2b0835b58
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
qtcreator.pri
src/libs/qmljs/qmljstypedescriptionreader.cpp
src/plugins/analyzerbase/startremotedialog.ui
src/plugins/qmldesigner/designercore/include/rewriterview.h
src/plugins/qt4projectmanager/makestep.cpp
Change-Id: If9d15a8c8f73106585fd8ce6ac47c253a40af6b1
2011-11-25 09:48:25 +01:00
Christian Kamm
e12d360cdf
QmlJS: Require Qt >= 4.8.0 to dump builtins.
...
The qmlplugindump tool is only shipped with Qt since 4.8.0.
Change-Id: I05c77da2bcfc9e1dbf055c45add78543cacce79c
Reviewed-by: Niels Weber <niels.2.weber@nokia.com >
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com >
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-11-23 12:17:28 +01:00
Christian Kamm
92b8a2eba8
QmlJS tests: Move 'basic' codemodel test to QmlJSTools plugin.
...
Change-Id: I2310f914fb200db18ff4148d6f7fa9824fe2393e
Reviewed-by: Bill King <bill.king@nokia.com >
2011-11-15 16:11:30 +01:00
Eike Ziller
85cf2b661e
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
src/libs/qmljs/qmljsinterpreter.cpp
src/libs/qmljs/qmljsinterpreter.h
src/plugins/debugger/qml/scriptconsole.cpp
src/plugins/git/gitplugin.cpp
src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp
src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h
Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
2011-11-11 09:46:25 +01:00
hjk
82f5573626
more Id type fixes
...
Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283
x
Change-Id: Iab58bc34bc56371405d132315573b484a533b77c
Reviewed-by: hjk <qthjk@ovi.com >
2011-11-10 15:57:09 +01:00
Christian Kamm
386fc347d7
QmlJS: Make Document::Ptr point to a const Document.
...
Change-Id: I15a36c3f918c0ee16f30bc8366df505e0afac949
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-11-08 09:05:12 +01:00
Robert Loehning
7ec73a3e16
String fixes
...
Change-Id: Iffa87a0e394b799e3987fa60f0a7559d5c1d0d27
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com >
Reviewed-by: hjk <qthjk@ovi.com >
2011-11-03 10:36:46 +01:00
hjk
31600758de
all: s/info@qt.nokia.com/qt-info@nokia.com/
...
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-11-03 10:33:19 +01:00
hjk
29279ab8c7
more style fixes of string literal access
...
Change-Id: I60b0c53681c6a0cc38231e805479deb614aa0096
Reviewed-by: hjk <qthjk@ovi.com >
2011-11-02 18:20:19 +01:00
Eike Ziller
912cd548c0
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
src/libs/qmljs/qmljsinterpreter.cpp
src/libs/qmljs/qmljsinterpreter.h
src/plugins/madde/maemopackagecreationstep.cpp
src/plugins/projectexplorer/buildmanager.cpp
src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp
src/plugins/qmljstools/qmljsqtstylecodeformatter.h
tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp
Change-Id: I63ab2ba5dac006c37ccfbae55b023396a4676ff7
2011-11-01 18:16:38 +01:00
Christian Kamm
a9553c494e
QmlJS indenter: Never touch indent of multi-line strings.
...
Task-number: QTCREATORBUG-6368
Change-Id: Iae68427e429e625214bc0729aaaf313dc3371570
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-31 09:37:17 +01:00
Christian Kamm
c8fc9b33ae
QmlJS: Clean up idOfObject() and folding text code.
...
Change-Id: Id3e9d24689c67ce0e12b12b82636177a0344ede1
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-28 15:49:38 +02:00
Eike Ziller
81cce8902e
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
qtcreator.pri
src/libs/qmljs/qmljscheck.cpp
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/remotegdbserveradapter.cpp
src/plugins/plugins.pro
src/plugins/projectexplorer/buildmanager.cpp
src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp
Change-Id: Id2dcebf95b94dc46c1d85908ba1d1378aaf362ac
2011-10-28 10:17:44 +02:00
Christian Kamm
0b75a66407
QmlJS: Support module apis defined by QML modules.
...
Change-Id: I18ec9daf8088f7db5ff2da11da14b539f501bab3
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-21 08:21:00 +02:00
Christian Kamm
934c77c2c4
QmlJS/C++: Fix possible crash on exit.
...
It could crash if a thread to find exported cpp types was still running
after the ModelManager was destroyed.
Change-Id: Ia48fac9c2ad1296992af83af57e84cce8c4f95ae
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-10-20 11:30:01 +02:00
Christian Kamm
0ed824762c
QmlJS checks: Suppression of static analysis messages.
...
* Use '// @disable M123' to suppress
* Add quick fix to add these comments
Change-Id: I499f5a6004148afbb346218c6fb01c9ca77b9f73
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-10-19 15:09:35 +02:00
Christian Kamm
4a487b1add
QmlJS indenter: Move reusable code to qmljs lib.
...
Change-Id: I5ab50b586109a9736cda48245807571ce10dfb5b
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-19 08:33:21 +02:00
Eike Ziller
8eb8368139
Merge remote-tracking branch 'origin/2.4'
...
Conflicts:
qtcreator.pri
src/libs/qmljs/qmljstypedescriptionreader.cpp
tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp
Change-Id: Id032187023bb42f259a87545ceeb3c965dd01a32
2011-10-17 14:22:32 +02:00
Christian Kamm
ea24106373
QmlJS indenter: Fix ternary multiline indent.
...
Task-number: QTCREATORBUG-6208
Change-Id: I7e5267291bc01226b5339cb4abdbb15856c58477
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-10-17 11:22:34 +02:00
Christian Kamm
0c4bd321e5
Json: Fix indenter for json files.
...
Change-Id: Id864509dd78a70fc34a3798b80f7e1c8991181f4
Reviewed-on: http://codereview.qt-project.org/6038
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-12 11:34:43 +02:00
Christian Kamm
b5a92a1957
Json: Use the javascript editor for json files.
...
Task-number: QTCREATORBUG-4639
Change-Id: Icd0fda434d5ca66056d784dd87240db76e8a442c
Reviewed-on: http://codereview.qt-project.org/6035
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-10-12 11:34:36 +02:00
Eike Ziller
9b81dc17a4
Merge remote-tracking branch 'origin/2.4'
2011-10-10 15:29:31 +02:00
Christian Kamm
918f5a0e2d
QmlJS: Fix bug in context property extraction.
...
Skip forward declarations instead of giving up.
Change-Id: Id3a30296a7cefc4ef255d03727557dee6a37c362
Reviewed-on: http://codereview.qt-project.org/6321
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com >
2011-10-10 13:40:32 +02:00
Christian Kamm
a7f78991c9
QmlJS: Move commonly used functions to qmlutils.h.
...
Change-Id: I22376d96fe575bc00a55094c06af80e32a5587e6
Reviewed-on: http://codereview.qt-project.org/6238
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-10-10 09:36:12 +02:00
Christian Kamm
3d4e508d0c
QmlJS: Improve error message.
...
This first line of an error needs to make sense on its own.
Change-Id: Ibf3bce7107e8b3df8fa4d0e75924945027678c63
Reviewed-on: http://codereview.qt-project.org/6114
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-10-06 09:11:46 +02:00
Friedemann Kleint
68be876cbe
tr()-Fixes for 2.4.
...
Change-Id: Ieee648b38687a1d8e88ab1ddf887f2f5908aaa05
Reviewed-on: http://codereview.qt-project.org/5597
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2011-09-27 09:41:46 +02:00
Friedemann Kleint
580f834a5d
tr()-Fixes for 2.4
...
Change-Id: I151e75ebec7bff17a3779f1b367849ca514512c6
Reviewed-on: http://codereview.qt-project.org/5550
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2011-09-26 16:54:45 +02:00
Christian Kamm
fdd0a15ef4
QmlJS: Separate metaObjectRevision from minor version number.
...
They need not to be identical. Additionally:
* Rename ImportInfo::name to path, because that's what it does.
* Add ImportInfo::name, for getting the uri with the names
separated by dots.
* Allow for exportMetaObjectRevisions in qmltypes files.
* Allow for exports with an empty type name, as generated by
qmlRegisterRevision. They are used for associating meta object
revisions with non-exported types.
* Rewrite the Qt 4.7 import to QtQuick 1.0 at an early stage. In
preparation for the Qt 5 type information update, where Qt 4.7
is gone.
Change-Id: Ia287193623d9530a56b9eb8d2481d50aabd94c3e
Reviewed-on: http://codereview.qt-project.org/5309
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-09-26 12:04:16 +02:00
Jarek Kobus
2244911826
Implement Code Style schemes
...
Task-number: QTCREATORBUG-5092
Change-Id: I218cef02f7c242e4dfae59b1b8021ea618e60d07
Reviewed-on: http://codereview.qt-project.org/5160
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-23 10:23:15 +02:00
Christian Kamm
3a110439e9
QmlJS: Only try qmldump on Desktop and Simulator Qt.
...
In particular, don't complain about a missing qmldump binary on other
platforms.
Change-Id: Ie2e96bcb67e609aa5aed31510b06139d2d9ce77e
Reviewed-on: http://codereview.qt-project.org/5327
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-21 16:03:41 +02:00
hjk
7bfde77d7c
s/error_message/errorMessage/g
...
Change-Id: I9a91028fb7c00a20843d99ece659ec8b7acc7710
Reviewed-on: http://codereview.qt-project.org/5312
Reviewed-by: hjk <qthjk@ovi.com >
2011-09-21 13:06:52 +02:00
Eike Ziller
0cea87f55b
Move some settings pages.
...
Reducing vertical size of preferences dialog, and moving languages
settings adjacent.
Change-Id: I1cb5a4310350a0552c920982854f671ae443ed7e
Reviewed-on: http://codereview.qt-project.org/5251
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-09-20 17:36:49 +02:00
Christian Kamm
f8462cca65
QmlJS: Change from QMap to QHash for QString keys.
...
Tests indicate that lookup in QHash<QString, ...> is more performant
even for short strings.
Change-Id: I8e5a73d0f1a72e202522f397b16901887f9c3591
Reviewed-on: http://codereview.qt-project.org/5070
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-19 09:09:28 +02:00
hjk
28535f7571
utils, qmljstools, vcsbase: s/\bm_d\b/d/g
...
Change-Id: I4678e9188b8f630aa3a3221be348984cdc7699dd
Reviewed-on: http://codereview.qt-project.org/4992
Reviewed-by: hjk <qthjk@ovi.com >
2011-09-15 14:11:09 +02:00
Christian Kamm
4b2f42cf87
QmlJS: Adjust existing code for updated QML parser.
...
Change-Id: I153723eeb9973be025daf47e317f7b9d076a3c72
Reviewed-on: http://codereview.qt-project.org/4733
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-09-14 11:48:22 +02:00
Christian Kamm
43a6a6d58c
QmlJS: Improve import error messages.
...
Change-Id: Ief305b787fbc4577acfdec41083bc72e178db46d
Reviewed-on: http://codereview.qt-project.org/4537
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-09-14 11:03:16 +02:00
Christian Kamm
16b4a6fe73
QmlJS indenter: Fix labelled statements and break/continue with label.
...
Also do some cleanup to make handling of substatements nicer.
Change-Id: I78773fc81d9b0058fa97c5cef393cca34b7fd885
Reviewed-on: http://codereview.qt-project.org/4413
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
2011-09-14 11:02:45 +02:00
Christian Kamm
903c6b60cd
QmlJS: Use mime types to distinguish qml and js files.
...
This allows adding patterns to the qml mime type in the options dialog.
Previously they were always parsed as js.
Change-Id: Ifa344fb6ab8cbcda02becef991cf6807615a1caa
Reviewed-on: http://codereview.qt-project.org/4515
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-12 10:45:53 +02:00
Christian Kamm
62a71b75a0
QmlJS indenter: Fix indentation for property initializers.
...
property int foo: {
used to start an object literal but is a block statement now.
Change-Id: I9ffbce4927b444314f1a43aba65ca3d9d234e47c
Reviewed-on: http://codereview.qt-project.org/4339
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-09-08 13:55:08 +02:00
Christian Kamm
bfc95befa8
QmlJS: Honor typeinfo lines in qmldir files.
...
Change-Id: I1ddad1eb031bc4b95671be4a474b5e8e72f6e350
Reviewed-on: http://codereview.qt-project.org/4137
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-09-08 12:34:32 +02:00