1. 14 Jan, 2015 1 commit
    • Daniel Teske's avatar
      Refactor ProjectExplorer::Node and remove NodesWatcher · 70c9c51e
      Daniel Teske authored
      
      
      The idea behind NodesWatcher was that it was the central place
      to catch node related signals, so that users didn't need to
      connect to each individual node and the nodes didn't need to
      be QObjects. Somehow Nodes ended up being QObjects anyway.
      
      Both the recently added ProjectTree and the FlatModels consume
      the signals the NodesWatcher sends. Unfortunately there's a
      ordering dependency between the ProjectTree and the FlatModels.
      
      This patch removes all NodesWatcher and instead makes the
      ProjectTree singleton the emitter of various project tree
      related signals. The ProjectTree also ensures that the ordering
      between the FlatModel and itself is taken into account.
      
      And it makes Node not derive from QObject, saving some memory
      in that process.
      
      Task-number: QTCREATORBUG-13756
      Change-Id: I8b0d357863f1dc1d2d440ce8172502594138b9fb
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
      70c9c51e
  2. 03 Dec, 2014 1 commit
  3. 14 Oct, 2014 1 commit
  4. 09 Oct, 2014 1 commit
  5. 30 Sep, 2014 1 commit
  6. 26 Sep, 2014 1 commit
  7. 23 Sep, 2014 1 commit
  8. 11 Sep, 2014 2 commits
  9. 10 Sep, 2014 1 commit
  10. 19 Jun, 2014 1 commit
  11. 18 Mar, 2014 1 commit
  12. 03 Mar, 2014 1 commit
  13. 27 Feb, 2014 1 commit
    • Tobias Hunger's avatar
      ProjectNodes: Do not try to sort directories not yet mapped · 60be34ee
      Tobias Hunger authored
      
      
      Do not try to sort directories that were not yet mapped into the
      FlatModel. This avoids an assert where QModelIndex is out of range
      (-1) because the data for that directory is not yet available in
      the model.
      
      Do not bother to map the data, just forget the request to sort in
      this case as the data will be sorted when it gets mapped anyway.
      
      Task-number: QBS-521
      Change-Id: I19de7513405e6a0b84c988a2a86f763e3135811d
      Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
      60be34ee
  14. 20 Feb, 2014 1 commit
  15. 19 Feb, 2014 2 commits
  16. 18 Feb, 2014 1 commit
  17. 08 Jan, 2014 1 commit
  18. 13 Sep, 2013 1 commit
  19. 26 Aug, 2013 1 commit
  20. 10 Jun, 2013 1 commit
  21. 26 Mar, 2013 1 commit
  22. 01 Feb, 2013 1 commit
  23. 31 Jan, 2013 1 commit
  24. 29 Jan, 2013 1 commit
  25. 21 Jan, 2013 1 commit
  26. 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
  27. 04 Dec, 2012 1 commit
  28. 28 Nov, 2012 1 commit
  29. 16 Nov, 2012 1 commit
  30. 05 Oct, 2012 1 commit
  31. 20 Sep, 2012 1 commit
    • Christian Kandeler's avatar
      Do not use QAbstractItemModel::reset(). · 938612c3
      Christian Kandeler authored
      
      
      Change-Id: Ie49bdf576a6d3543aef6df133b27c8827775c935
      Rationale:
          a) It is conceptually cleaner to do the changes to the model
             in between calls to beginResetModel() and endResetModel,
             respectively.
          b) The function is deprecated in Qt 5, for exactly that reason.
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      938612c3
  32. 19 Jul, 2012 1 commit
  33. 23 May, 2012 1 commit
  34. 08 May, 2012 1 commit
    • Daniel Teske's avatar
      ProjectExplorer: Remove hack for virtual folders · e8ee8988
      Daniel Teske authored
      
      
      Previously virtual folders, that is the "Sources", "Headers" folders used a
      hack. This patch removes that hack, by introducing the following changes
      - The FlatModel and the ProjectExplorer::Nodes now don't require path() to
        be unique. Thus allowing the virtual folders to all return the same for
        path(). [1]
      
      - Introducing a new node type "VirtualFolder" which is sorted according to
        a priority.
      
      - Introducing a few new virtuals for displayName and toolip(), which can
        be overriden.
      
      [1] Note that all the project managers do require path() to be unique for
      some types of nodes.
      
      That also fixes:
      Task-number: QTCREATORBUG-7100
      
      Change-Id: I76b730f4c4254e2894467603bbe9a30e356a0bcc
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
      Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
      e8ee8988
  35. 17 Apr, 2012 2 commits
  36. 06 Mar, 2012 1 commit
  37. 15 Feb, 2012 1 commit