1. 11 Sep, 2013 1 commit
  2. 05 Sep, 2013 1 commit
  3. 03 Sep, 2013 1 commit
  4. 02 Sep, 2013 1 commit
    • Christian Kandeler's avatar
      Remove superfluous include paths from project files. · 72d17382
      Christian Kandeler authored
      
      
      A lot of our build system files specify unneeded include
      paths. These roughly fall into the following categories:
          a) Paths that are already set in more general files
             such as qtcreator.pri.
          b) Paths that serve no purpose at all, possibly
             left over from earlier versions of the project.
          c) Paths that act as workarounds for wrong include
             statements of the form '#include "xyz.h"', where
             xyz.h is not in the same directory as the including
            file.
      This patch removes such path specifications and fixes the offending
      include statements from case c).
      Tested on Linux, Windows and OSX with qmake and qbs.
      
      Change-Id: I039a8449f8a65df0d616b4c08081145c18ae4b15
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
      72d17382
  5. 22 Aug, 2013 1 commit
  6. 09 Jul, 2013 1 commit
  7. 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
  8. 03 Jun, 2013 1 commit
  9. 15 May, 2013 1 commit
  10. 19 Apr, 2013 1 commit
  11. 08 Apr, 2013 1 commit
  12. 04 Apr, 2013 1 commit
  13. 12 Mar, 2013 1 commit
  14. 29 Jan, 2013 1 commit
  15. 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
  16. 15 Oct, 2012 1 commit
  17. 05 Oct, 2012 1 commit
  18. 19 Jul, 2012 1 commit
  19. 17 Apr, 2012 1 commit
  20. 14 Mar, 2012 1 commit
  21. 06 Mar, 2012 1 commit
  22. 20 Feb, 2012 1 commit
  23. 15 Feb, 2012 1 commit
  24. 26 Jan, 2012 1 commit
  25. 24 Jan, 2012 1 commit
  26. 23 Jan, 2012 2 commits
    • Leandro Melo's avatar
      C++: Fix "reference" file in symbol finder · b97b45a3
      Leandro Melo authored
      
      
      Througout the initial review the singleton was transformed into an
      ordinary class, but a error was introduced: The "reference" file was
      incorrectly assumed to be the editors file, which is wrong, since
      it should be the declaration file.
      
      Change-Id: Iad3e25a690fa8bd07a18184b24b10f8dea965332
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      b97b45a3
    • Leandro Melo's avatar
      C++: Improve file accuracy when finding symbols · 466ea484
      Leandro Melo authored
      
      
      This patch introduces a priority-based mechanism when searching for certains
      symbols in the snapshot. The priority corresponds to how similar the file path
      from the "reference" symbol is to the file path from the "candidate" symbol.
      This solves a variety of issues when matching "equivalent" symbols but that
      are in another file/project, such as when following a function declaration,
      a forward class declaration, or adding a definition through a quickfix.
      
      There's now a symbol finder which will compute the "best" search order and cache
      the most recent results. A consequence is that following symbols in some cases
      is slower, but not apparently significatly.
      
      Note: The "find" functions were moved from the Snapshot to the new SymbolFinder
      class.
      
      Task-number: QTCREATORBUG-6697
      Task-number: QTCREATORBUG-6792
      
      Change-Id: Ia518f014275fec1f4d0cb3224bd4e06a9df6d557
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      466ea484
  27. 03 Nov, 2011 1 commit
  28. 18 Oct, 2011 1 commit
  29. 28 Sep, 2011 1 commit
  30. 19 Aug, 2011 1 commit
    • Christian Kamm's avatar
      Refactoring changes: Cleanup and improvements. · 8a6d767a
      Christian Kamm authored
      Previously RefactoringFiles were usually passed around by value.
      However, since a RefactoringFile may sometimes own a QTextDocument
      (when it was read from a file), that's not great and caused the
      file to be reread after every copy.
      
      With this change RefactoringFile becomes noncopyable and is always
      owned by a shared pointer.
      
      This change also allowed having const RefactoringFiles which is
      useful because they can be safely used from other threads. See
      CppRefactoringChanges::fileNoEditor.
      
      Change-Id: I9045921d6d0f6349f9558ff2a3d8317ea172193b
      Reviewed-on: http://codereview.qt.nokia.com/3084
      
      Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
      8a6d767a
  31. 19 May, 2011 1 commit
  32. 10 May, 2011 1 commit
  33. 06 May, 2011 1 commit
  34. 19 Apr, 2011 1 commit
  35. 18 Apr, 2011 1 commit
  36. 13 Apr, 2011 1 commit
  37. 31 Mar, 2011 1 commit
  38. 22 Feb, 2011 1 commit
    • hjk's avatar
      texteditor: merge ITextEditable into ITextEditor · f576ad9f
      hjk authored
      rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
      rename BaseTextEditor{,Widget} subclasses
      rename editableInterface->editorInterface
      rename createEditableInterface->createEditor
      minor cleanups after renamings
      f576ad9f
  39. 12 Jan, 2011 1 commit