1. 13 Mar, 2015 1 commit
  2. 26 Feb, 2015 1 commit
  3. 06 Feb, 2015 1 commit
    • Orgad Shaneh's avatar
      TextEditor: Remove unneeded qualifications · b556ba50
      Orgad Shaneh authored
      
      
      Mostly done using the following ruby script:
      Dir.glob('**/*.cpp').each { |file|
        next if file =~ %r{src/shared/qbs|/qmljs/}
        s = File.read(file)
        s.scan(/^using namespace (.*);$/) {
          ns = $1
          t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
            before = $1
            char = $2
            if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
              m
            else
              before + char
            end
          }
          if t != s
            puts file
            File.open(file, 'w').write(t)
          end
        }
      }
      
      Change-Id: Ief087658e2adc337ee02c49f0fb406597114df07
      Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
      Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
      b556ba50
  4. 16 Jan, 2015 1 commit
  5. 10 Dec, 2014 1 commit
  6. 09 Oct, 2014 1 commit
  7. 26 Sep, 2014 1 commit
  8. 25 Sep, 2014 2 commits
  9. 28 Jul, 2014 1 commit
  10. 25 Jul, 2014 1 commit
  11. 02 Jul, 2014 1 commit
  12. 28 Apr, 2014 1 commit
  13. 12 Mar, 2014 1 commit
  14. 15 Jan, 2014 1 commit
  15. 14 Jan, 2014 1 commit
  16. 08 Jan, 2014 1 commit
  17. 24 Sep, 2013 1 commit
  18. 04 Sep, 2013 1 commit
  19. 02 Sep, 2013 1 commit
  20. 17 Jul, 2013 1 commit
  21. 05 Jun, 2013 1 commit
    • Eike Ziller's avatar
      Switch less often to edit mode · 7c8db798
      Eike Ziller authored
      
      
      This change
      * Removes IMode::type, ModeManager::activateModeType, and
        IEditor::preferredModeType, and adds IEditor::isDesignModePreferred
        instead
      * Adapts the mode switching code in EditorManager to handle multiple
        windows, for example switching to edit mode should only happen if
        the editor/view is in the main window. Otherwise the editor window
        should be raised and focused
      * Renames EditorManager::NoActivate --> DoNotChangeCurrentEditor
      * Reverts the EditorManager::ModeSwitch logic to switch mode or
        make the current editor visible by default, introducing
        DoNotMakeVisible flag instead
      * Fixes a few instances where EditorManager::ModeSwitch should have been
        used
      
      One non-trivial problem left: If you open a .ui file and switch to an
      external editor window, edit mode is activated, because the current
      editor no longer is a .ui file, which means that the design mode gets
      deactivated.
      
      Change-Id: I76c5c2391eb4090143b778fb103acff3a5a1ff41
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      7c8db798
  22. 03 Jun, 2013 1 commit
  23. 10 Apr, 2013 1 commit
  24. 08 Apr, 2013 1 commit
  25. 27 Mar, 2013 2 commits
  26. 13 Feb, 2013 1 commit
  27. 29 Jan, 2013 1 commit
  28. 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
  29. 14 Dec, 2012 1 commit
  30. 05 Oct, 2012 1 commit
  31. 13 Sep, 2012 1 commit
  32. 19 Jul, 2012 2 commits
  33. 05 Jun, 2012 1 commit
  34. 22 May, 2012 1 commit
  35. 11 May, 2012 1 commit
  36. 29 Mar, 2012 1 commit
  37. 20 Feb, 2012 1 commit