Kai Koehne
e2584f69d4
Replace QLatin1String("x") with QLatin1Char('x') where possible
...
Change-Id: I2f90c8ae7b5e968b9de882833f8661ab540a9232
Reviewed-by: hjk <hjk121@nokiamail.com >
2014-09-04 14:50:00 +02:00
Fawzi Mohamed
4dc438db5e
qmljs: switch to the new category logging
...
Change-Id: Id4e43779590939e9d6dd2d0dab536f70e721f097
Reviewed-by: Kai Koehne <kai.koehne@digia.com >
2014-07-01 11:31:12 +02:00
Robert Loehning
746c5d8863
Incremented year in copyright info
...
Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com >
Reviewed-by: Kai Koehne <kai.koehne@digia.com >
2014-01-08 08:29:47 +01:00
Friedemann Kleint
7dce2f9899
Clean headers in QmlJs.
...
Ran script to remove inludes on a trial-and-error basis and
manually corrected it (Parser excluded).
Change-Id: I5ec6e1076430009bb72094411b2c3386f8bea548
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com >
2013-04-04 10:08:07 +02:00
Oswald Buddenhagen
1fda2111d4
Merge remote-tracking branch 'origin/2.6'
...
Conflicts:
src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in
src/plugins/debugger/qtmessageloghandler.cpp
src/plugins/debugger/qtmessagelogwindow.cpp
src/plugins/madde/maemodeployconfigurationwidget.cpp
src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp
src/plugins/qmldesigner/designercore/include/widgetqueryview.h
src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp
src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp
src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h
src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
src/plugins/qnx/bardescriptormagicmatcher.h
src/plugins/qt4projectmanager/profilekeywords.cpp
src/plugins/remotelinux/deployablefilesperprofile.cpp
src/plugins/remotelinux/deployablefilesperprofile.h
src/plugins/remotelinux/deploymentinfo.cpp
src/plugins/remotelinux/deploymentsettingsassistant.cpp
src/plugins/remotelinux/profilesupdatedialog.cpp
tests/auto/icheckbuild/ichecklib.cpp
tests/auto/icheckbuild/parsemanager.cpp
tests/auto/icheckbuild/parsemanager.h
Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
2013-01-31 16:25:33 +01:00
Robert Loehning
298531e370
Incremented year in copyright info
...
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205
Reviewed-by: Kai Koehne <kai.koehne@digia.com >
2013-01-29 16:27:03 +01:00
Orgad Shaneh
29a93998df
Remove braces for single lines of conditions
...
#!/usr/bin/env ruby
Dir.glob('**/*.cpp') { |file|
# skip ast (excluding paste, astpath, and canv'ast'imer)
next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
s = File.read(file)
next if s.include?('qlalr')
orig = s.dup
s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
res = $&
if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
res
else
res.gsub!('} else', 'else')
res.gsub!(/\n +} *\n/m, "\n")
res.gsub(/ *{$/, '')
end
}
s.gsub!(/ *$/, '')
File.open(file, 'wb').write(s) if s != orig
}
Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
Reviewed-by: hjk <qthjk@ovi.com >
2013-01-08 10:48:18 +01:00
Orgad Shaneh
5ea0937167
QmlJS: Compile with QT_NO_CAST_FROM_ASCII
...
Change-Id: I0c5654a978f47a4db5428936fd44633f21394830
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com >
2012-11-28 11:11:47 +01:00
hjk
386ca7c8dd
Adjust license headers
...
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825
Reviewed-by: Eike Ziller <eike.ziller@digia.com >
2012-10-05 17:12:56 +02:00
hjk
6a7cf405bd
rename QtDebug to QDebug
...
More uniform.
Change-Id: I1c6057981f4c2b3170a4e69f0674fe4caf1143a2
Reviewed-by: Robert Loehning <robert.loehning@nokia.com >
2012-08-06 14:55:08 +02:00
Eike Ziller
e0e8cf3ada
Contact -> qt-project.org
...
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com >
2012-07-19 13:23:21 +02:00
Erik Verbruggen
3fa55b7ab9
Removed module names from #include directives.
...
Getting the #include directives ready for Qt5. This includes the
new-project wizards.
Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com >
2012-02-15 16:24:46 +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
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
Tobias Hunger
aa2acec14c
Fix/add copyright headers
...
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
hjk
8397663964
Update license.
2011-04-13 11:49:28 +02:00
Friedemann Kleint
a9a5e3ea17
Exported header cleanup.
2011-01-20 14:03:07 +01:00
con
d1023c7614
It's 2011 now.
...
Reviewed-by: hjk
2011-01-12 09:46:24 +01:00
con
04e32b0049
License headers.
2010-12-17 16:03:42 +01:00
Erik Verbruggen
0970a8e6d2
Moved quick-exit check back to the indenter.
...
Reviewed-by: ckamm
2010-04-30 13:36:09 +02:00
Christian Kamm
722ba33770
QmlJS: Add CompletionContextFinder to allow context sensitive completion
...
The plan is to use this to reduce the number of applicable
completion options, for instance for enum completion or property
names.
Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
bd71243407
QmlJS: Move parts of the indenter to the new LineInfo.
...
LineInfo can tell whether lines are finished or not.
Done-with: Erik Verbruggen
2010-04-29 16:05:24 +02:00
Christian Kamm
3067f441df
QmlJS: Fix switch statement indentation.
...
Task-number: QTCREATORBUG-756
2010-04-21 10:52:07 +02:00
Christian Kamm
6a12c99bd1
QmlJSEditor: Improve indentation of square brackets.
...
Task-number: QTCREATORBUG-583
Reviewed-by: Roberto Raggi
2010-04-14 15:19:56 +02:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Roberto Raggi
fd26a8c8ec
Get rid of the QmlJS prefix.
2010-02-15 12:56:03 +01:00
Roberto Raggi
80b5a6b50a
Removed useless code.
2010-01-29 15:29:45 +01:00
Roberto Raggi
fbbc27be32
Get rid off unused regexp QmlJSIndenter::label.
2010-01-29 15:01:49 +01:00
Roberto Raggi
206dafcd94
Removed unused code.
2010-01-29 14:58:41 +01:00
Roberto Raggi
913e248366
Fixed the indentation of if-else statements.
2010-01-29 11:31:41 +01:00
Roberto Raggi
fa925ccd5a
Say hello to the new incremental scanner for QML/JS.
2010-01-28 13:13:23 +01:00
Roberto Raggi
f995022af7
Insert the semicolon at the end of the trimmed line only when it is stricly necessary.
2010-01-26 12:56:05 +01:00
Roberto Raggi
e722570f06
Inserted a fake semicolon at the end of the trimmed line.
2010-01-26 11:58:20 +01:00
Roberto Raggi
e87cd6d1a8
Fixed indentation of QML/JS for-statements.
2010-01-19 13:57:59 +01:00
Roberto Raggi
6b6b827d9b
Added helper method QmlJSIndenter::tokenText().
2010-01-19 12:59:31 +01:00
Roberto Raggi
60ad6c478c
Moved QmlJSScanner::Token in the QmlJS namespace.
2010-01-19 12:54:17 +01:00
Roberto Raggi
1bc838fd2b
Handle comments at the end of braceless control statements.
2010-01-19 12:50:48 +01:00
Roberto Raggi
669c2de681
Implemented token-based version of QmlJSIndenter::matchBracelessControlStatement().
2010-01-18 18:31:17 +01:00
Roberto Raggi
c943d8e4f1
Renamed classes and files to use the QmlJS prefix.
2010-01-18 16:59:20 +01:00