Commit Graph

23 Commits

Author SHA1 Message Date
Erik Verbruggen
8e4fb678fd Removing SimpleToken 2010-07-02 11:18:51 +02:00
Erik Verbruggen
e3e8b1a5c0 Removed the TokenCache. 2010-07-02 11:18:51 +02:00
Thorbjørn Lindeijer
173cdff56c Merge branch '2.0'
Conflicts:
	src/plugins/cppeditor/cppquickfix.cpp
	src/plugins/mercurial/mercurialjobrunner.cpp
	src/plugins/subversion/subversionplugin.cpp
2010-06-15 13:22:33 +02:00
Thorbjørn Lindeijer
a6e5298591 Fixed handling of text wrapping and a text layout corner case
Due to using QTextCursor::columnNumber() instead of
QTextCursor::positionInBlock(), a lot of code would not work correctly
when used with wrapped lines.

In addition, there was an issue with columnNumber() returning 0 right
after inserting a character before the last character of a line.

Reviewed-by: mae
2010-06-15 12:25:01 +02:00
Erik Verbruggen
05639e4688 Merge branch 'origin/2.0' (early part) 2010-06-15 11:30:51 +02:00
Thorbjørn Lindeijer
6875a50d27 Don't pass QChar as const & since it's just a unsigned short
Reviewed-by: ogoffart
2010-06-14 16:10:35 +02:00
Erik Verbruggen
e42ca194c5 Introduced token caching to prevent repetetive tokenizing.
Also removed TokenUnderCursor as it's functionality is in the token cache.

Reviewed-by: ckamm
2010-06-14 10:10:05 +02:00
Erik Verbruggen
424b9724d6 Revert "Introduced a token cache for the C++ editor."
This reverts commit c2393df023.
2010-06-04 12:37:26 +02:00
Erik Verbruggen
c2393df023 Introduced a token cache for the C++ editor.
This should speed things up a bit, because before, the line was tokenized at
least 3 times.
2010-06-04 09:36:05 +02:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Roquette
32199de9d9 Added semicolon after } when creating unnamed enumeration
Task-number: QTCREATORBUG-643
Merge-request: 109
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2010-02-01 15:07:18 +01:00
Roberto Raggi
fa2eca8262 Insert semicolon when matching enum declarations.
Task-number: QTCREATORBUG-282
2009-11-16 18:15:33 +01:00
dt
5c9b3694e3 Remove debuggign output 2009-10-06 17:14:21 +02:00
Roberto Raggi
bdd0169c3c Don't override escaped quotes. 2009-10-05 16:21:30 +02:00
Roberto Raggi
b9ce92ec4d Remove all the synthesized characters when matching curly braces 2009-09-21 18:19:09 +02:00
Roberto Raggi
a49395a0ea Made the indenter more Qt friendly. Added support for moc keywords. 2009-09-21 16:10:17 +02:00
Roberto Raggi
5df7b96735 Renamed maybeOverrideCharacter() 2009-09-18 12:28:15 +02:00
Roberto Raggi
6c7c333128 Cleanup 2009-09-18 11:07:05 +02:00
Roberto Raggi
a5156e6283 Introduced MatchingText::shouldInsertNewline() and use it to insert lines after a class definition. 2009-09-18 10:59:31 +02:00
Roberto Raggi
9a799da6c9 Re-enable check for automatically inserted block end. 2009-09-17 18:54:12 +02:00
Roberto Raggi
da4fcd22ef Pass the lookahead character to matching text. 2009-09-17 18:39:10 +02:00
Roberto Raggi
82b80b9e39 Automagically insert matching characters. 2009-09-17 17:58:00 +02:00
Roberto Raggi
dfa6be721d Added the helper class MatchingText and use it to automagically insert text for curly braces. 2009-09-17 15:51:15 +02:00