Skip to content
Snippets Groups Projects
  1. Jan 17, 2013
  2. Jan 11, 2013
  3. Jan 10, 2013
  4. Jan 09, 2013
  5. Jan 08, 2013
    • 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. Dec 30, 2012
  7. Dec 12, 2012
  8. Dec 11, 2012
  9. Nov 07, 2012
  10. Oct 29, 2012
  11. Oct 26, 2012
  12. Oct 05, 2012
  13. Sep 27, 2012
  14. Sep 26, 2012
  15. Sep 25, 2012
    • Christian Kandeler's avatar
      Replace all remaining functions deprecated in Qt 5, if possible. · 89fa7823
      Christian Kandeler authored
      
      These are:
          - QInputDialog::getInteger() [-> getInt()]
          - QKeySequence::operator QString() [-> toString()]
          - QRegion::intersect() [-> intersected()]
          - qVariantCanConvert() [-> QVariant::canConvert()]
      
      Plus some left-over occurrences of qFindChild() and
      QAbstractItemModel::reset() that were missed by the
      respective earlier patches.
      
      All deprecated features still left are not trivially
      replaceable, i.e. the code using them cannot be made
      to compile with both Qt 4 and Qt 5.
      
      Change-Id: I32541681bbf66b0fef78f5c7025521f9ff84f463
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      89fa7823
  16. Sep 20, 2012
  17. Jul 31, 2012
  18. Jul 19, 2012
  19. Jul 02, 2012
  20. Jun 26, 2012
  21. Jun 05, 2012
  22. May 25, 2012
  23. May 23, 2012
  24. May 22, 2012
  25. May 11, 2012
  26. May 02, 2012
  27. Apr 26, 2012
  28. Apr 17, 2012
  29. Mar 12, 2012
  30. Mar 05, 2012
  31. Feb 21, 2012
  32. Feb 20, 2012
  33. Feb 15, 2012
  34. Jan 31, 2012
  35. Jan 26, 2012
Loading