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
Christian Kamm
10a956a8f7
QmlJS: Find setContextProperty calls in C++ and expose to QML.
...
Task-number: QTCREATORBUG-3199
Change-Id: I591490ceafadc0f5a07c63ec063f1bdfa7055f47
Reviewed-on: http://codereview.qt-project.org/4074
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-09-08 12:34:22 +02:00
Christian Kamm
cb44e64809
QmlJS: Remove unused function.
...
Change-Id: I3e700b7f00f7a23433979a81b0ea092b8a934e63
Reviewed-on: http://codereview.qt.nokia.com/4177
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-05 12:14:44 +02:00
Christian Kamm
cf96bc10d2
Remove some dead stores pointed out by clang.
...
Change-Id: I919a2e98474fec42861391d11d2ba1225eb2adf9
Reviewed-on: http://codereview.qt.nokia.com/4083
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com >
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-09-02 10:37:31 +02:00
Christian Kamm
7bc8dd18a3
QmlJS: Ensure the C++ model manager is available before using it.
...
Change-Id: I0cc4e59505a6a5baa585e3748fdf174805d661b1
Reviewed-on: http://codereview.qt.nokia.com/3913
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-08-31 09:23:18 +02:00
Christian Kamm
94a00259ac
C++/QmlJS: Warnings if C++ based QML type detection fails.
...
Change-Id: I1e206e09c4068cc541978ee148f9ed8c4138c249
Reviewed-on: http://codereview.qt.nokia.com/3579
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-30 12:03:34 +02:00
Christian Kamm
2c7729eeac
QmlJS: Scan for '// @uri Foo' annotations next to qmlRegisterType.
...
Change-Id: I9586bfd9f048005d62368a02a314ded924cb7254
Reviewed-on: http://codereview.qt.nokia.com/3482
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-30 12:03:23 +02:00
Christian Kamm
650b280b30
QmlJS: Ensure project infos are removed when a project closes.
...
As a side effect, this removes parse errors of QML files that are no
longer in any project from the "Build Issues" list.
Change-Id: I7aef8850a207ac060648dc92e2dd759108b71731
Reviewed-on: http://codereview.qt.nokia.com/3668
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-30 12:00:44 +02:00
Christian Kamm
9c1cb774a1
QmlJS: Improve ModelManagerInterface API, add docs.
...
Change-Id: Ic65d767cbad85de89dffaac66d9e80d8d467f04a
Reviewed-on: http://codereview.qt.nokia.com/3851
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-08-30 10:17:32 +02:00
Christian Kamm
27d0830698
QmlJS: Move the exported-C++-type detection out of C++ code.
...
It now lives in qmljstools/qmljsfindexportedcpptypes, all in one place.
Also ensures that the source code is available when a file is being
scanned for QML exports. This will enable checking comments for
annotations about the URI a plugin is usually imported as.
Change-Id: I1da36d0678e0a8d34b171dbe0f6b5690d89eb18b
Reviewed-on: http://codereview.qt.nokia.com/3392
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-24 12:13:41 +02:00
Christian Kamm
8a6d767a8f
Refactoring changes: Cleanup and improvements.
...
Previously RefactoringFiles were usually passed around by value.
However, since a RefactoringFile may sometimes own a QTextDocument
(when it was read from a file), that's not great and caused the
file to be reread after every copy.
With this change RefactoringFile becomes noncopyable and is always
owned by a shared pointer.
This change also allowed having const RefactoringFiles which is
useful because they can be safely used from other threads. See
CppRefactoringChanges::fileNoEditor.
Change-Id: I9045921d6d0f6349f9558ff2a3d8317ea172193b
Reviewed-on: http://codereview.qt.nokia.com/3084
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
2011-08-19 11:12:09 +02:00
Christian Kamm
f725c24c56
QmlJS: Fix semantic and non-semantic QML error reporting.
...
The QML snapshot only ever contains valid Documents; to compile a list
of parser problems we need to get at the invalid documents.
To do that, the model manager now provides a Snapshot with up to date,
but potentially invalid documents. That should also be useful for other
things.
Change-Id: I67892f63771c221bf2fe2c2bf0240a0f4e523227
Reviewed-on: http://codereview.qt.nokia.com/3012
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-08-18 17:11:59 +02:00
Friedemann Kleint
4c116bbda6
Header cleanup in QML/JS and project manager.
...
Change-Id: I40b41a3ef6189a99272e345e3251680edccecca0
Reviewed-on: http://codereview.qt.nokia.com/3215
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2011-08-18 16:49:10 +02:00
Christian Kamm
8fbaa0d10a
QmlJS: Fix warnings about duplicate and empty file watchers.
...
Change-Id: Ia2d5f7588f1a5eb4192526e85b2569b4b175dad2
Reviewed-on: http://codereview.qt.nokia.com/3085
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2011-08-17 12:08:38 +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
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
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
hjk
82bbac7f90
Remove unneeded defines.
...
Mostly Q_DISABLE_COPY that were covered by the un-copy-ability of the
respective base classes. Includes a few "stylistic" whitespace changes.
Change-Id: I31ca0e7bada5ed0f34776976efe22ddc444a5bf2
Reviewed-on: http://codereview.qt.nokia.com/1609
Reviewed-by: hjk <qthjk@ovi.com >
2011-07-14 12:15:38 +02:00
Christian Kamm
f3a45d7b55
QmlJS: Fix basic code model test.
...
Change-Id: If62153e9db56e65e10d008d49f0945d3ea77c4f4
Reviewed-on: http://codereview.qt.nokia.com/1502
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com >
Reviewed-by: Bill King <bill.king@nokia.com >
2011-07-12 11:25:31 +02:00
Christian Kamm
4285b48455
QmlJS: Dump builtins per Qt version.
...
Change-Id: I7b5179c4b33c24e83baf0536d158dd48d277637f
Reviewed-on: http://codereview.qt.nokia.com/1305
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-11 11:28:38 +02:00
Oswald Buddenhagen
1f3896e8af
Merge remote-tracking branch 'origin/2.3'
...
Conflicts:
share/qtcreator/dumper/bridge.py
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/remotelinux/remotelinuxapplicationrunner.cpp
Change-Id: I444f797723d5879ea08c5c0e1f31158d271d4f41
2011-07-07 12:26:59 +02:00
Jarek Kobus
e3858988a4
Fix copyright headers
...
Change-Id: Ia2853cb1230b490dcc06b19f0b4436a9d27a079c
Reviewed-on: http://codereview.qt.nokia.com/1227
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
2011-07-06 12:01:28 +02:00
Christian Kamm
7ffd2e8b9f
Add missing license headers.
...
Change-Id: I2dc5d18bfffc8389ad0b162b7dc3b5cc2406027f
Reviewed-on: http://codereview.qt.nokia.com/1222
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
2011-07-06 11:17:05 +02:00
hjk
a322bd606f
Replace qt-info@nokia.com with info@qt.nokia.com
...
Change-Id: I61e7cf189a1c4ea04e2a88a80a4f15e43cd3c018
Reviewed-on: http://codereview.qt.nokia.com/1187
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2011-07-06 11:14:01 +02:00
Christian Kamm
36ed6bce1d
QmlJS: Move Context to its own file.
...
Change-Id: I91331b7039e27e2f57cc19b985c8ed86c955ec9e
Reviewed-on: http://codereview.qt.nokia.com/1042
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-07-05 11:52:20 +02:00
Christian Kamm
4f05d53ef5
QmlJS: Add 'reset code model' action.
...
Having to restart Creator should be a thing of the past.
Task-number: QTCREATORBUG-4813
Change-Id: Ide242ee299b5d34aecba4823032e27741dde4a86
Reviewed-on: http://codereview.qt.nokia.com/668
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com >
2011-06-23 22:22:03 +02:00
Jarek Kobus
c98e7c2b83
Small refactor, preparation for built-in settings
...
Change-Id: I91de7a01aba37f41398df7b06dbe5af868094379
Reviewed-on: http://codereview.qt.nokia.com/615
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
2011-06-22 15:12:10 +02:00
Friedemann Kleint
0ef59d9970
tr()-Fixes for 2.3: Small spelling/notr-fixes.
...
Change-Id: I66b8b0e20b225429b4399dfca154a2806260ac61
Reviewed-on: http://codereview.qt.nokia.com/483
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com >
2011-06-15 17:25:36 +02:00
Jarek Kobus
2fad22c030
Add restore fallback functionality, make better tr()
...
Task-number: QTCREATORBUG-5025
Change-Id: Ia3f6fa2380dd1a93f120873f584662a267ca4d50
Reviewed-on: http://codereview.qt.nokia.com/360
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-06-08 13:27:52 +02:00
Tobias Hunger
04039ac627
Fix warning about unused parameter
...
Change-Id: I2844ebae2cd834b187f01b62d414692aa29b0605
Reviewed-on: http://codereview.qt.nokia.com/354
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
2011-06-07 09:54:14 +02:00
Christian Kamm
83072da8b0
QmlJS: Fix potential linking problem.
...
Don't use plugin from libs/qmljs.
Change-Id: Ia345c567cd1f244ab2191017810ef3eeb91fe0e4
Reviewed-on: http://codereview.qt.nokia.com/213
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
2011-05-30 15:19:06 +02:00
Christian Kamm
f0a4e7e225
QmlJS: Output qmltypes parse warnings to General messages pane.
...
Change-Id: I8ca100ef141082c7606bb98f8a2f81502b14e1af
Reviewed-on: http://codereview.qt.nokia.com/204
Reviewed-by: Kai Koehne <kai.koehne@nokia.com >
2011-05-30 11:32:23 +02:00
Christian Kamm
8742026380
QmlJS: Allow for QML modules with version subdirectories.
...
That means
import Foo 2.1
can resolve to
/path/Foo.2.1 or
/path/Foo.2 or
/path/Foo
Task-number: QTCREATORBUG-4607
Change-Id: Ie1efc5be2ca2ed3ccc130e8a662f94aed11bec1a
Reviewed-on: http://codereview.qt.nokia.com/194
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-30 08:25:19 +02:00
hjk
0faf7ab922
QmlJSCodeStyleSettingsPage: compile fix
...
Was not compilable with namespaced Qt
Change-Id: Ieab68bb67e6421afbc4e07417c0196d419697f70
Reviewed-on: http://codereview.qt.nokia.com/100
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-05-25 10:07:46 +02:00
Jarek Kobus
934a8238d4
Implement qml tab settings
...
Change-Id: I0b7365b5b3d7538f2b4a8c5eaff3420f448dd5be
Reviewed-on: http://codereview.qt.nokia.com/99
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com >
2011-05-25 09:41:35 +02:00
Christian Kamm
779fafcbfe
Make C++ code style configurable.
...
Change-Id: Iaf08edb2361146e6b5e1cbafdb716a23c938875b
Done-with: Jarek Kobus
Task-number: QTCREATORBUG-2670
Task-number: QTCREATORBUG-4310
Task-number: QTCREATORBUG-2763
Task-number: QTCREATORBUG-3623
Task-number: QTCREATORBUG-567
Reviewed-on: http://codereview.qt.nokia.com/74
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com >
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com >
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2011-05-24 12:45:07 +02:00