Skip to content
Snippets Groups Projects
  1. Oct 18, 2013
  2. Sep 11, 2013
  3. Sep 04, 2013
  4. Sep 02, 2013
  5. Aug 30, 2013
  6. Jul 25, 2013
  7. Jun 05, 2013
    • 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
  8. Jun 03, 2013
  9. Apr 10, 2013
  10. Apr 08, 2013
  11. Apr 03, 2013
  12. Feb 01, 2013
  13. Jan 29, 2013
  14. 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
  15. Dec 14, 2012
  16. Nov 22, 2012
  17. Oct 24, 2012
  18. Oct 17, 2012
  19. Oct 15, 2012
  20. Oct 05, 2012
  21. Sep 13, 2012
  22. Jul 19, 2012
  23. Jun 06, 2012
  24. Jun 05, 2012
  25. May 22, 2012
  26. May 11, 2012
  27. Apr 04, 2012
  28. Mar 29, 2012
  29. Mar 27, 2012
  30. Mar 16, 2012
  31. Mar 14, 2012
  32. Feb 15, 2012
  33. Feb 09, 2012
  34. Feb 07, 2012
  35. Jan 26, 2012
  36. Jan 24, 2012
Loading