1. 24 Jan, 2013 2 commits
  2. 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
  3. 28 Nov, 2012 3 commits
  4. 05 Oct, 2012 1 commit
  5. 20 Aug, 2012 1 commit
  6. 06 Aug, 2012 1 commit
  7. 19 Jul, 2012 1 commit
  8. 19 Jun, 2012 1 commit
  9. 18 Apr, 2012 1 commit
  10. 15 Feb, 2012 1 commit
  11. 03 Feb, 2012 1 commit
  12. 26 Jan, 2012 1 commit
  13. 14 Nov, 2011 1 commit
  14. 03 Nov, 2011 1 commit
  15. 27 Oct, 2011 1 commit
  16. 14 Oct, 2011 1 commit
  17. 19 Sep, 2011 1 commit
  18. 29 Aug, 2011 1 commit
  19. 10 May, 2011 1 commit
  20. 06 May, 2011 1 commit
  21. 13 Apr, 2011 1 commit
  22. 28 Mar, 2011 1 commit
  23. 17 Feb, 2011 2 commits
  24. 16 Feb, 2011 1 commit
  25. 20 Jan, 2011 1 commit
  26. 12 Jan, 2011 2 commits
  27. 11 Jan, 2011 1 commit
    • con's avatar
      Allow optional plugin dependencies. · 4116504c
      con authored
      Adds a 'type' attribute to the 'dependency' tag, with possible values
      'required' and 'optional'.
      Optional dependencies may not be linked against. You'll need to use the
      new dynamic methods in plugin manager (retrieving objects and calling
      methods by name) if you want to access functionality of optional
      dependencies.
      4116504c
  28. 06 Jan, 2011 1 commit
  29. 17 Dec, 2010 1 commit
  30. 25 Oct, 2010 1 commit
  31. 27 Sep, 2010 1 commit
  32. 13 Jul, 2010 1 commit
  33. 19 May, 2010 1 commit
  34. 12 May, 2010 2 commits
    • Lasse Holmstedt's avatar
      Fixed crash when using -noload to disable multiple plugins · 425f4b74
      Lasse Holmstedt authored
      The noload behavior is also changed: it now always shows the plugins in
      About Plugins... menu, even though -noload was used. When using -noload,
      the enabled state of the plugin is not saved, so if the command line
      arg is removed, the plugin will be loaded normally.
      
      Reviewed-by: con
      425f4b74
    • Lasse Holmstedt's avatar
      Fixed crash when using -noload to disable multiple plugins · bc00f859
      Lasse Holmstedt authored
      The noload behavior is also changed: it now always shows the plugins in
      About Plugins... menu, even though -noload was used. When using -noload,
      the enabled state of the plugin is not saved, so if the command line
      arg is removed, the plugin will be loaded normally.
      
      Reviewed-by: con
      bc00f859