1. 17 Jan, 2013 2 commits
  2. 12 Jan, 2013 1 commit
  3. 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
  4. 29 Dec, 2012 2 commits
  5. 28 Nov, 2012 1 commit
  6. 27 Nov, 2012 1 commit
  7. 05 Oct, 2012 1 commit
  8. 25 Sep, 2012 1 commit
    • 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
  9. 20 Sep, 2012 2 commits
  10. 27 Aug, 2012 1 commit
    • Christian Kandeler's avatar
      Utils: Introduce HostOsInfo class. · e669f054
      Christian Kandeler authored
      
      
      The class' member functions are intended to be used
      instead of the Q_OS_* macros in all contexts where
      the latter are not syntactically required.
      This lowers the likelihood of changes made on one
      platform breaking the build on another, e.g. due to
      the code model missing symbols in #ifdef'ed out code
      when refactoring.
      
      Change-Id: I4a54788591b4c8f8d589b8368a6c683d4155c9fa
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      e669f054
  11. 20 Aug, 2012 1 commit
  12. 06 Aug, 2012 1 commit
  13. 19 Jul, 2012 1 commit
  14. 19 Jun, 2012 1 commit
  15. 25 May, 2012 1 commit
  16. 23 May, 2012 1 commit
  17. 22 May, 2012 1 commit
  18. 10 May, 2012 1 commit
  19. 10 Apr, 2012 1 commit
  20. 03 Apr, 2012 1 commit
  21. 26 Mar, 2012 1 commit
  22. 15 Mar, 2012 1 commit
  23. 12 Mar, 2012 2 commits
  24. 09 Mar, 2012 1 commit
  25. 06 Mar, 2012 1 commit
  26. 02 Mar, 2012 1 commit
  27. 01 Mar, 2012 1 commit
  28. 23 Feb, 2012 1 commit
  29. 20 Feb, 2012 1 commit
  30. 15 Feb, 2012 1 commit
  31. 13 Feb, 2012 1 commit
  32. 10 Feb, 2012 2 commits
  33. 08 Feb, 2012 1 commit
    • Thomas Hartmann's avatar
      Wizards: changes the structure of Wizards · 95a028e8
      Thomas Hartmann authored
      
      
      This patch introduces platforms as a top level topic when choosing
      a wizard. Also I changed the categories and priorities.
      
      Details:
      
      1. I did change the way the dialog/view is structured in newdialog.cpp
      
      2. I added platformName() and supportsPlatform() to BaseQtVersion.
         I needed two functions because the Simulator does not provide a platform
         and therefore has no platformName but supports two platforms.
         I still have to turn the platform names into proper constants.
      
      3. I changed the categories and priorities to get the layout that was
         discussed. (I had to touch quite alot of files but this is mostly trivial)
      
      4. I added a combobox that allows filtering for platforms.
      
      5. I added flags() to IWizard to indicate that a wizard is platform independent.
      
      Change-Id: I86c7ad628a431ad06505c76580885c6e6c3ddc23
      Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
      95a028e8
  34. 26 Jan, 2012 1 commit
  35. 25 Jan, 2012 1 commit