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. 27 Nov, 2012 1 commit
  3. 09 Oct, 2012 1 commit
  4. 05 Oct, 2012 1 commit
  5. 02 Oct, 2012 1 commit
  6. 01 Oct, 2012 1 commit
  7. 24 Sep, 2012 1 commit
  8. 19 Jul, 2012 1 commit
  9. 23 May, 2012 1 commit
  10. 11 May, 2012 1 commit
  11. 03 May, 2012 1 commit
  12. 06 Mar, 2012 1 commit
  13. 20 Feb, 2012 1 commit
  14. 15 Feb, 2012 1 commit
  15. 13 Feb, 2012 1 commit
  16. 31 Jan, 2012 1 commit
  17. 26 Jan, 2012 1 commit
  18. 24 Jan, 2012 1 commit
  19. 09 Jan, 2012 1 commit
  20. 02 Dec, 2011 1 commit
  21. 10 Nov, 2011 1 commit
  22. 03 Nov, 2011 1 commit
  23. 09 Aug, 2011 1 commit
  24. 06 May, 2011 1 commit
  25. 14 Apr, 2011 1 commit
  26. 13 Apr, 2011 1 commit
  27. 06 Apr, 2011 1 commit
  28. 22 Feb, 2011 1 commit
    • hjk's avatar
      texteditor: merge ITextEditable into ITextEditor · f576ad9f
      hjk authored
      rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
      rename BaseTextEditor{,Widget} subclasses
      rename editableInterface->editorInterface
      rename createEditableInterface->createEditor
      minor cleanups after renamings
      f576ad9f
  29. 12 Jan, 2011 2 commits
  30. 17 Dec, 2010 1 commit
  31. 09 Sep, 2010 1 commit
  32. 25 Jun, 2010 2 commits
  33. 26 Mar, 2010 1 commit
  34. 05 Mar, 2010 1 commit
  35. 15 Feb, 2010 1 commit
  36. 27 Jan, 2010 1 commit
  37. 11 Jan, 2010 2 commits
    • Thorbjørn Lindeijer's avatar
      Fixed crash when leaving session with invalid bookmarks or breakpoints · 2b46f828
      Thorbjørn Lindeijer authored
      When the bookmark could not be added to the editor due to being on a
      non-existing line, it would not be cleaned up properly when the editor
      was closed, resulting in a crash when it later tried to remove itself
      from the no longer existing editor.
      
      In addition to fixing the crash, bookmarks that are not on valid lines
      are now automatically removed when you try to navigate to them.
      
      Task-number: QTCREATORBUG-545
      Reviewed-by: mae
      2b46f828
    • Tobias Hunger's avatar
      Fix typos · 592e494d
      Tobias Hunger authored
      Reviewed-by: thorbjorn
      592e494d