1. 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
  2. 28 Nov, 2012 1 commit
  3. 05 Oct, 2012 1 commit
  4. 22 Aug, 2012 2 commits
  5. 06 Aug, 2012 1 commit
  6. 19 Jul, 2012 1 commit
  7. 23 Mar, 2012 1 commit
  8. 26 Jan, 2012 1 commit
  9. 03 Nov, 2011 1 commit
  10. 20 Sep, 2011 1 commit
  11. 19 Sep, 2011 1 commit
  12. 06 Sep, 2011 1 commit
  13. 15 Jul, 2011 1 commit
  14. 12 Jul, 2011 2 commits
  15. 11 Jul, 2011 1 commit
  16. 06 Jul, 2011 2 commits
  17. 30 Jun, 2011 2 commits
  18. 29 Jun, 2011 3 commits
  19. 28 Jun, 2011 2 commits
  20. 06 May, 2011 1 commit
  21. 13 Apr, 2011 1 commit
  22. 30 Mar, 2011 1 commit
  23. 22 Mar, 2011 1 commit
  24. 08 Mar, 2011 2 commits
  25. 02 Mar, 2011 1 commit
    • Marco Bubke's avatar
      QmlDesigner: Larger canvas size · e293e467
      Marco Bubke authored
      Many qml documents have items outside of the root item area. The scene
      rectangle is now much bigger so you can scroll the items around.
      e293e467
  26. 10 Feb, 2011 2 commits
  27. 01 Feb, 2011 1 commit
  28. 20 Jan, 2011 1 commit
  29. 19 Jan, 2011 1 commit
  30. 12 Jan, 2011 2 commits