1. 27 Jul, 2017 1 commit
    • Andre Hartmann's avatar
      CppFindReferences: Fix file name case sensitivity on class renaming · c78ea5a7
      Andre Hartmann authored
      Utils::matchCaseReplacement searches for common prefix and suffix
      between old and new file name und leaves them unchanged. This leads
      to unexpected new file names.
      
      E.g. when renaming MainWindow to MyMainWindow, this function computes
      the prefix "m", the suffix "ainwindow.h" and only considers "yM" as
      the middle part that is actually renamed.
      
      Use a better algorithm to determine the new base name, and for
      unclear cases fall back to the "Lower case file names" option
      from Tools -> Options -> C++ -> File Naming.
      
      Task-number: QTCREATORBUG-18592
      Change-Id: I818f7d372102eb6e266123b2b4b6355f6fa28d64
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
      c78ea5a7
  2. 21 Jul, 2017 1 commit
  3. 16 May, 2017 1 commit
  4. 27 Apr, 2017 1 commit
  5. 22 Feb, 2017 1 commit
  6. 23 Nov, 2016 1 commit
  7. 01 Nov, 2016 1 commit
  8. 23 May, 2016 1 commit
  9. 19 Feb, 2016 1 commit
  10. 15 Feb, 2016 1 commit
  11. 19 Jan, 2016 1 commit
  12. 04 Nov, 2015 1 commit
  13. 12 Oct, 2015 1 commit
  14. 04 Feb, 2015 1 commit
    • Orgad Shaneh's avatar
      C++: Remove unneeded qualifications · 65e7db42
      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: I6fbe13ddc1485efe95c3156097bf41d90c0febac
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
      65e7db42
  15. 16 Jan, 2015 1 commit
  16. 14 Jan, 2015 1 commit
  17. 17 Dec, 2014 1 commit
  18. 09 Oct, 2014 1 commit
  19. 19 Sep, 2014 2 commits
  20. 04 Sep, 2014 1 commit
  21. 20 Aug, 2014 1 commit
  22. 23 May, 2014 2 commits
  23. 28 Apr, 2014 1 commit
  24. 12 Mar, 2014 1 commit
  25. 14 Jan, 2014 1 commit
  26. 08 Jan, 2014 1 commit
  27. 03 Dec, 2013 1 commit
  28. 29 Nov, 2013 1 commit
  29. 12 Nov, 2013 1 commit
    • Erik Verbruggen's avatar
      C++: Release more documents. · 566be099
      Erik Verbruggen authored
      - fix memory leak in find-usages
      - do not retain snapshot in search history
      - when an editor is invisible for more than 2 minutes, release the
        backing snapshot
      
      Retaining snapshots will retain their documents, and if done for too
      long, the memory consumption might grow. This is especially the case
      when switching to a different kit (Qt version): in that case, the new
      versions of headers will be indexed, while the old ones stay around.
      
      Task-number: QTCREATORBUG-5583
      Task-number: QTCREATORBUG-7645
      Task-number: QTCREATORBUG-9842
      
      Change-Id: I045eda1565e0a3fa702baeffaab9c12662f90289
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      566be099
  30. 18 Oct, 2013 1 commit
  31. 11 Sep, 2013 1 commit
  32. 04 Sep, 2013 1 commit
  33. 02 Sep, 2013 1 commit
  34. 30 Aug, 2013 1 commit
  35. 25 Jul, 2013 1 commit
  36. 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
  37. 03 Jun, 2013 1 commit
  38. 10 Apr, 2013 1 commit