Commit Graph

72811 Commits

Author SHA1 Message Date
Thorbjørn Lindeijer
2641496a99 Fixed line select in gutter when text marks are not visible
The ProjectFilesEditor used for editing the generic project's files does
not show text marks, which broke the line select in the gutter.

Task-number: QTCREATORBUG-1238
Reviewed-by: mae
2010-06-01 13:33:35 +02:00
kh1
284fc63236 Backport some Qt Assistant print fixes.
Reviewed-by: ck
2010-06-01 13:15:07 +02:00
hjk
8b806c4d8d debugger: make ctrl-click to navigate between input and output pane (much) faster 2010-06-01 12:36:28 +02:00
Roberto Raggi
0dfe7b9b95 Fixed unqualified name lookup. 2010-06-01 12:22:07 +02:00
Roberto Raggi
ef83369006 Check the current under cursor before searching for the enclosing expression. 2010-06-01 12:16:38 +02:00
Christian Kamm
619d50f080 QmlJS: Make the qmldump tool treat extended types correctly. 2010-06-01 12:03:40 +02:00
Thorbjørn Lindeijer
8ffc25bbad Fixed the collapsed block popup to draw on top of cursor/highlights
The various text editor overlays and the text cursor were being painted
on top of the collapsed block popup.

Reviewed-by: mae
2010-06-01 12:01:23 +02:00
Roberto Raggi
f085dd2167 Some initial support for template parameters in our semantic highlighter. 2010-06-01 11:59:13 +02:00
Roberto Raggi
829df11c9d Recognize Q_* and QT_* as reserved keywords. 2010-06-01 11:58:43 +02:00
Roberto Raggi
efc01fd994 Fixed ClassSpecifierAST::lastToken() to return a valid token. 2010-06-01 11:44:34 +02:00
Thorbjørn Lindeijer
0afe76a67c Open .prf files in the pro file editor
This fixes QTCREATORBUG-1434, but it's more of a workaround than a fix.
The problem was that the file was opened in the diff editor due to a
broken diff detection, and the diff editor in turn has a bug in that
it's kind of halfway read-only.

Reviewed-by: ossi
Task-number: QTCREATORBUG-1434
2010-05-31 18:08:19 +02:00
Daniel Molkentin
74bd95d323 Mark QML support in Qt Creator 2.0 as preview
Reviewed-by: Kai Koehne
2010-05-31 16:37:17 +02:00
Roberto Raggi
283019a44a Fixed possible crash when parsing template declarations at the end of a C++ file. 2010-05-31 16:01:27 +02:00
Roberto Raggi
ecb951cab0 Compile. 2010-05-31 16:01:27 +02:00
Erik Verbruggen
d349cafe2d Fixes rounding errors in block positions.
Influences the position of the folded-block markers.

Reviewed-by: thorbjorn
2010-05-31 15:06:30 +02:00
Leandro Melo
c2f2d13111 Generic highlighter: Refactored how format configuration is done.
Now the highlighter engine does not directly depend on TextEditor::FontSettings. This also makes things easier for unit testing.
2010-05-31 15:00:03 +02:00
Daniel Molkentin
1a1a4a1075 Add links for building an example and building a mobile application
Reviewed-by: Leena Miettinen
2010-05-31 13:57:34 +02:00
Daniel Molkentin
a7f1e80322 Do not try to force a version, this heuristic breaks too often.
Reviewed-by: Leena Miettinen
2010-05-31 13:57:34 +02:00
Daniel Molkentin
d5f308032b Fix doc links to tips of the day, remove some to minimize l10n breakage.
Reviewed-by: Leena Miettinen
2010-05-31 13:57:34 +02:00
kh1
9960008f77 Some translation fixes and reuse some existing constants.
Reviewed-by: ossi
2010-05-31 12:39:41 +02:00
kh1
0d9c210369 Use native separator and make the line not wrap in the table view.
Reviewed-by: ck
2010-05-31 12:39:40 +02:00
Roberto Raggi
cca38a737e Disable the cacheing of template instantiations. 2010-05-31 12:37:16 +02:00
Roberto Raggi
e9c43b3ec6 Cache the LookupContext. 2010-05-31 12:37:16 +02:00
Roberto Raggi
1c078ec2a3 Ensure we keep the context around for as long as it is needed. 2010-05-31 12:37:15 +02:00
ck
2f43d5c3df SSH: Fix Net7 crash.
Reviewed-by: kh1
2010-05-31 12:27:55 +02:00
Erik Verbruggen
112df597db Fixed default property discovery for custom QML components.
Reviewed-by: Christian Kamm
2010-05-31 12:21:12 +02:00
Erik Verbruggen
8ea6148b61 Fixed possible crash.
Reviewed-by: Christian Kamm
2010-05-31 11:48:54 +02:00
Thiago Macieira
e26cf0ab4d Fix compilation: #include <ctype.h> 2010-05-31 11:13:06 +02:00
Marco Bubke
f0a6a0abb8 Do reparenting only with the control modifier hold
The isContainer flag is now ignored.

Reviewed-by: kkoehne
2010-05-31 11:12:05 +02:00
Daniel Molkentin
a41876cd41 Do not add a menu if the examples cannot be found.
This is not only a waste of ressources, but breaks a check later on
which tries to load the QML examples from Creators ressource path
if no QML capable Qt version is found (included with Creator packages)

Reviewed-by: dt
2010-05-31 11:11:23 +02:00
Erik Verbruggen
ec0d44fc3b Remove snippet tooltip when completion list looses focus.
Task-number: QTCREATORBUG-1425
Reviewed-by: Christian Kamm
2010-05-31 11:05:03 +02:00
Marco Bubke
6ce6dfbd2a If you move a new item on the formeditor the item is always in the base
state

The position is now setted int the base state if you drop a item on the
formeditor and move it around.

Task-Number: BAUHAUS-644
Reviewed-by: kkoehne
2010-05-31 11:02:38 +02:00
Kai Koehne
7ffbdc34db QuickDesigner: Fix last (?) occurence of 4.6 as version of Qt namespace
Reviewed-by: Thomas Hartmann
2010-05-31 10:40:12 +02:00
Roberto Raggi
a31de2c37a Fixed header protection. 2010-05-28 17:17:11 +02:00
Erik Verbruggen
344e0b9ca7 Removed debug line. 2010-05-28 17:03:15 +02:00
Erik Verbruggen
8390d165bd Fixed missing include, and #undeffed debug code. 2010-05-28 17:02:32 +02:00
Kai Koehne
f7ed1eb879 QuickDesigner: Make metainfo system robust for different version numbers
With the inclusion of org.webkit 1.0 types some common ancestors are shared
with different version numbers. These used to override each other. With this
patch the hierarchy is preserved.

This commit includes several changes by Marco Bubke.

Reviewed-by: Marco Bubke
2010-05-28 16:38:34 +02:00
Marco Bubke
27688270fd Load plugins at the beginning of the meta info initializing
Reviewed-by: kkoehne
2010-05-28 16:38:29 +02:00
Erik Verbruggen
41bc5dac15 Added a utility method to search by line/column. 2010-05-28 16:29:53 +02:00
Erik Verbruggen
3eee397abd Moved ASTPath to its own header/source files. 2010-05-28 16:29:53 +02:00
Erik Verbruggen
d4e1a24daa Fixed off-by-1-token for symbol end offsets. 2010-05-28 16:29:52 +02:00
Friedemann Kleint
3330d15964 Qt Designer integration: Fix Help button in stylesheet editor.
Wire QDesignerIntegration's help signal to help manager.

Task-number: QTCREATORBUG-1505
Reviewed-by: kh <qtc-committer@nokia.com>
2010-05-28 15:58:55 +02:00
hjk
4c2c654c2a fakevim: fix (again) 'r' at last position of a line 2010-05-28 15:48:20 +02:00
Thorbjørn Lindeijer
76020b6152 Make sure bookmarks survive a document reload
While reloading a text document, the bookmarks got lost since their
associated QTextBlocks were deleted.

This patch makes sure that before reloading, the bookmarks are removed
non-persistently in the same way as when closing a document, and that
they are restored after the document was reloaded.

Currently, no effort is made to update the location of the bookmarks
based on the way the file changed.

Task-number: QTCREATORBUG-1281
Reviewed-by: dt
2010-05-28 15:44:59 +02:00
Roberto Raggi
1b41c06590 Always remove the duplicates from the completion, even when the items are not sorted. 2010-05-28 15:22:57 +02:00
Christian Kamm
a36d4b9b57 QmlJS: Update builtin type definitions.
Qt.labs.gestures and Qt.labs.filelistmodel weren't dumped before,
Qt.multimedia and Qt.widgets are gone.

Task-number: QTCREATORBUG-1507
Reviewed-by: Roberto Raggi
2010-05-28 15:22:50 +02:00
Leandro Melo
2dc7a6a1eb More functionality for the generic highlighter options. Other small changes. 2010-05-28 15:04:44 +02:00
Kai Koehne
7f1f9e14af Fix crashes when loading large .qmlproject's (Mac OS X)
There is a hard limit on the number of file handles that can be open at one point per process on Mac OS X (e.g. it's 2560 on Mac OS X Snow Leopard Server, as shown by ulimit -a). Opening one or several .qmlproject's with a large number of directories to watch easily exceeds this. The results are crashes later on, e.g. when threads cannot be created any more.

This patch implements a heuristic that the file system watcher used for .qmlproject files never uses more than half the number of available file handles. It also increases the number from rlim_cur to rlim_max - the old code in main.cpp failed, see last section in

 http://developer.apple.com/maac/library/documentation/Darwin/Reference/ManPages/man2/setrlimit.2.html

for details.

Reviewed-by: ckamm
Task-number: QTCREATORBUG-1487
Task-number: QTCREATORBUG-1486
2010-05-28 14:14:42 +02:00
Christian Kamm
68cec6a7c7 QmlJS: Fix folding information for multi-line comments after edits.
Since the highlighter doesn't run on the whole file, only on the changed
line, we need to store the information whether a block starts in a
multi-line comment.

Reviewed-by: Erik Verbruggen
2010-05-28 13:50:52 +02:00
hjk
381c54063c debugger: remove obsolete createBreakpointByFileAndLine() 2010-05-28 13:44:49 +02:00