Skip to content
Snippets Groups Projects
  1. May 15, 2013
  2. Apr 04, 2013
  3. Feb 06, 2013
  4. Jan 29, 2013
  5. Jan 08, 2013
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      
      #!/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: default avatarhjk <qthjk@ovi.com>
      29a93998
  6. Nov 28, 2012
  7. Oct 05, 2012
  8. Sep 26, 2012
  9. Jul 19, 2012
  10. May 07, 2012
    • Aurindam Jana's avatar
      QmlJSInterpreter: QML Plugin types · d4c2c3f2
      Aurindam Jana authored
      
      A Component in .qmltypes can have an array of exports which
      may differ in type names and versions.
      Consider the type names to be aliases and create a CppComponentValue
      for each of the alias corresponding to the best available version.
      
      Change-Id: I759ae0c68441e805b0502bf2d203c524bf1a7a7c
      Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@nokia.com>
      d4c2c3f2
  11. Apr 30, 2012
  12. Mar 13, 2012
  13. Feb 15, 2012
  14. Jan 26, 2012
  15. Dec 12, 2011
  16. Dec 07, 2011
  17. Dec 02, 2011
  18. Nov 29, 2011
  19. Nov 25, 2011
    • Christian Kamm's avatar
      QmlJS: Speed up ValueOwner construction. · 097850c8
      Christian Kamm authored
      
      * Don't build all default values (including the global object)
        separately for each ValueOwner instance.
      * Instead, keep all global, immutable values in a single, shared
        instance.
      
      While refactoring, some cases where we *modified* the global object had
      to be removed:
      
      * C++ context properties no longer get injected into the global object,
        instead they now have their own scope just above the global one.
      * The Qt object's prototype no longer gets modified in Link. Instead,
        it's now a reference to the "Qt" object provided in a qmltypes file.
      * The whole concept of a function 'Activation' that could potentially
        affect the global object was removed.
      
      Change-Id: Id382faf965efa747fcc7a9b0bc2c90429d84d61b
      Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
      097850c8
  20. Nov 16, 2011
  21. Nov 15, 2011
  22. Nov 07, 2011
  23. Nov 03, 2011
  24. Oct 31, 2011
  25. Oct 21, 2011
  26. Oct 18, 2011
  27. Oct 13, 2011
  28. Oct 12, 2011
  29. Oct 06, 2011
  30. Sep 28, 2011
  31. Sep 27, 2011
  32. Sep 26, 2011
    • Christian Kamm's avatar
      QmlJS: Separate metaObjectRevision from minor version number. · fdd0a15e
      Christian Kamm authored
      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: default avatarFawzi Mohamed <fawzi.mohamed@nokia.com>
      fdd0a15e
  33. Sep 19, 2011
Loading