1. 12 Mar, 2013 1 commit
  2. 05 Mar, 2013 1 commit
  3. 29 Jan, 2013 1 commit
  4. 08 Jan, 2013 1 commit
    • 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
  5. 11 Dec, 2012 1 commit
  6. 21 Nov, 2012 1 commit
  7. 08 Oct, 2012 1 commit
  8. 05 Oct, 2012 1 commit
  9. 19 Jul, 2012 1 commit
  10. 06 Mar, 2012 1 commit
  11. 26 Jan, 2012 1 commit
  12. 03 Nov, 2011 1 commit
  13. 04 Aug, 2011 1 commit
  14. 02 Aug, 2011 1 commit
  15. 18 Jul, 2011 1 commit
  16. 21 Jun, 2011 1 commit
  17. 06 May, 2011 1 commit
  18. 13 Apr, 2011 1 commit
  19. 31 Mar, 2011 1 commit
  20. 24 Feb, 2011 1 commit
  21. 12 Jan, 2011 2 commits
  22. 17 Dec, 2010 1 commit
  23. 01 Dec, 2010 1 commit
    • Thomas Hartmann's avatar
      QmlDesigner.metaInfo: replace old NodeMetaInfo with new implementation · 98eee9db
      Thomas Hartmann authored
      The new implementation is based on the QmlJS::Interpreter
      meta info system and gets its info from parsing qml and qmldumper
      instead of interogating QDeclarative classes.
      
      So we share this code with the Qml TextEditor and this approach is also
      way more flexible. It also work with different Qt versions.
      
      The meta info is now bound to a document/rewriter.
      
      The api has changed slightly.
      
      subComponentManager: cleanup
      The SubComponentManager does not have to provide meta info, anymore.
      
      propertyParser: cleanup
      Enums were never properly converted. here.
      
      metaInfo: remove old MetaInfo classes
      Removing the old MetaInfo classes and code
      98eee9db
  24. 24 Nov, 2010 1 commit
  25. 07 Sep, 2010 1 commit
  26. 11 Jun, 2010 1 commit
  27. 27 May, 2010 1 commit
  28. 23 Apr, 2010 1 commit
  29. 21 Apr, 2010 1 commit
  30. 19 Apr, 2010 1 commit
  31. 16 Apr, 2010 1 commit
  32. 08 Apr, 2010 1 commit
  33. 07 Apr, 2010 1 commit
  34. 31 Mar, 2010 1 commit
  35. 22 Mar, 2010 1 commit
  36. 11 Mar, 2010 1 commit
  37. 05 Mar, 2010 1 commit
  38. 02 Mar, 2010 1 commit
  39. 26 Feb, 2010 1 commit
    • Kai Koehne's avatar
      QmlDesigner: Fix compilation with latest changes of QDeclarative · dbfe2e7f
      Kai Koehne authored
      All files have been renamed from Qml to QDeclarative.
      Registration of types is now done in an initializer method.
      QmlView/QDeclarativeView doesn't have an execute method any more.
      QDeclarativeMetaObject became private API.
      QmlMetaProperty / QDeclarativeProperty has now different API.
      dbfe2e7f