1. 25 Mar, 2013 2 commits
  2. 01 Feb, 2013 1 commit
  3. 29 Jan, 2013 1 commit
  4. 23 Jan, 2013 1 commit
  5. 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
  6. 20 Dec, 2012 2 commits
  7. 28 Nov, 2012 1 commit
  8. 05 Oct, 2012 3 commits
  9. 03 Sep, 2012 1 commit
  10. 19 Jul, 2012 1 commit
  11. 26 Jan, 2012 1 commit
  12. 03 Nov, 2011 1 commit
  13. 20 Jul, 2011 1 commit
  14. 15 Jul, 2011 1 commit
  15. 13 Jul, 2011 2 commits
  16. 06 Jul, 2011 1 commit
  17. 30 Jun, 2011 1 commit
  18. 28 Jun, 2011 1 commit
  19. 27 Jun, 2011 2 commits
  20. 24 Jun, 2011 1 commit
  21. 08 Jun, 2011 1 commit
    • Thomas Hartmann's avatar
      QmlDesigner.model: refactoring for nodeSource · 7939c270
      Thomas Hartmann authored
      I changed customParserSource into nodeSource and use it also for
      components. This means we do not use auxiliaryData anymore with some magic
      __component_data identifier.
      To distinguish between CustumParserSource and ComponentSource I introduced
      the enum NodeSourceType.
      Also in this patch I added auxiliaryData in the creation of a node. This was useful
      for prototyping and will help with prototyping/testing in the future.
      
      Change-Id: I2152c26c0c767f869f7dce7209abf43f594fd2ad
      Reviewed-on: http://codereview.qt.nokia.com/399
      
      Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
      7939c270
  22. 16 May, 2011 1 commit
  23. 06 May, 2011 2 commits
  24. 13 Apr, 2011 1 commit
  25. 05 Apr, 2011 1 commit
  26. 01 Apr, 2011 1 commit
  27. 01 Mar, 2011 2 commits
  28. 10 Feb, 2011 1 commit
  29. 02 Feb, 2011 1 commit
  30. 01 Feb, 2011 1 commit
  31. 12 Jan, 2011 2 commits