1. 24 May, 2013 1 commit
  2. 06 May, 2013 1 commit
  3. 24 Apr, 2013 1 commit
  4. 23 Apr, 2013 1 commit
  5. 22 Apr, 2013 1 commit
  6. 19 Apr, 2013 1 commit
  7. 18 Apr, 2013 3 commits
  8. 15 Apr, 2013 1 commit
  9. 12 Apr, 2013 1 commit
  10. 09 Apr, 2013 1 commit
  11. 27 Mar, 2013 1 commit
  12. 20 Mar, 2013 2 commits
  13. 19 Mar, 2013 1 commit
  14. 18 Mar, 2013 1 commit
  15. 12 Mar, 2013 1 commit
  16. 08 Mar, 2013 1 commit
    • Mitch Curtis's avatar
      CPP, QmlJs editors: don't indent when moving commented lines up/down. · e53ae818
      Mitch Curtis authored
      Currently, pressing Ctrl + Shift + Up/Down with a commented block of
      text selected will indent that block if the line two lines above the
      block is indented. This is undesirable, because the indenting for that
      block is incorrect when it is uncommented. See the following example:
      
      Step 1:
      void f()
      {
          int x;
      
      //    int y;
      }
      
      Step 2 - After Ctrl + Shift + Up:
      void f()
      {
          int x;
          //    int y;
      
      }
      
      Step 3 - After uncommenting the block:
      void f()
      {
          int x;
              int y;
      
      }
      
      This patch tells the CPP and QmlJs editors not to indent commented
      blocks when moving them. Blocks that are not entirely within comments
      (excluding whitespace) are not affected.
      
      Tested with (C++ and JavaScript, respectively):
      http://paste.kde.org/688778/
      http://paste.kde.org/688784/
      
      
      
      Change-Id: I35414e6dfd5a1084fd997594e711ea9932231981
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      e53ae818
  17. 05 Mar, 2013 1 commit
  18. 14 Feb, 2013 1 commit
  19. 11 Feb, 2013 1 commit
  20. 29 Jan, 2013 1 commit
  21. 24 Jan, 2013 1 commit
  22. 22 Jan, 2013 1 commit
  23. 11 Jan, 2013 4 commits
  24. 10 Jan, 2013 1 commit
  25. 09 Jan, 2013 1 commit
  26. 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
  27. 28 Nov, 2012 1 commit
  28. 26 Nov, 2012 2 commits
  29. 22 Nov, 2012 1 commit
  30. 16 Nov, 2012 1 commit
  31. 12 Nov, 2012 2 commits
  32. 09 Nov, 2012 1 commit