1. 30 Jun, 2017 1 commit
    • Christian Stenger's avatar
      AutoTest: Speed up finding parent items · 4edc715b
      Christian Stenger authored
      We normally add new results to the last added
      item, so processing the search for the parent
      from bottom to top makes more sense and avoids
      iterating over almost every item.
      
      Change-Id: Iede08b9c0d4c80227d2e8fea9b002354f01d5b35
      Reviewed-by: default avatarhjk <hjk@qt.io>
      4edc715b
  2. 05 Apr, 2017 1 commit
    • hjk's avatar
      TreeModel/Find: Save a few cycles when searching · 2a623770
      hjk authored
      Calls parent() only ~two out of three times and remove some
      function calls in the TreeModel::parent() implementation,
      reducing the overall footprint of this bit from ~5 to ~1.5%
      when searching something in the project tree (test case
      was Creator-in-Creator, and searching for 'dddddddddd',
      resulting in 8 complete scans of the tree.
      
      Task-number: QTCREATORBUG-17956
      Change-Id: I4e46ef0467dd2aea58a7c944e1a2ee5c01e6fbba
      Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
      2a623770
  3. 08 Feb, 2017 1 commit
    • hjk's avatar
      Utils: Introduce TreeItem::{begin,end} · 196dbbe0
      hjk authored
      ... and use this to reduce the number of explicit uses of m_children.
      
      Despite of being shorter code by itself it is a step towards having
      an explicit LeafItem object that doesn't explicitly store a(n empty)
      vector of child nodes.
      
      Change-Id: If8db85e2f1134dd1578a78d31235bf57a28f863a
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
      196dbbe0
  4. 11 Jan, 2017 1 commit
  5. 05 Jan, 2017 1 commit
    • Marco Bubke's avatar
      Utils: Fix warnings in Treemodel · a8c14b55
      Marco Bubke authored
      We made a implicit const cast. Like it is said C-style can be harmful
      because they are not const safe etc..
      
      Change-Id: I6b41c10c18d37af4caf58574359fdce7d4a420ca
      Reviewed-by: default avatarhjk <hjk@qt.io>
      a8c14b55
  6. 03 Aug, 2016 3 commits
  7. 01 Aug, 2016 1 commit
  8. 27 Jul, 2016 1 commit
    • hjk's avatar
      Utils: Streamline TreeModel API · 53415cec
      hjk authored
      The LeveledTreeModel case is general enough to cover
      the UniformTreeModel case, so merge them and rename to
      TreeModel. The former TreeModel is now BaseTreeModel.
      
      BaseTreeModels should not be instantiated directly,
      a tree model with non-uniform basic items is available
      as TreeModel<>.
      
      Done-with: Eike Ziller <eike.ziller@qt.io>
      Change-Id: I64a65617ab68c0cde39cf65f4bc092ef808ee6fb
      Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
      53415cec
  9. 12 Jul, 2016 1 commit
  10. 07 Jul, 2016 1 commit
  11. 06 Jul, 2016 1 commit
  12. 17 Jun, 2016 1 commit
  13. 15 Jun, 2016 1 commit
  14. 13 Jun, 2016 1 commit
  15. 12 May, 2016 1 commit
  16. 04 May, 2016 1 commit
    • hjk's avatar
      TreeView: Announce sorting tree items · 8390f9e8
      hjk authored
      This is likely to be overkill but seems to fix a regression introduced
      by e73a9c1b: Persistent model indices owned by the selection
      model of the watch view lose their model pointer and consequently
      cause error messages to be emitted and potentially cause crashes.
      
      Change-Id: I3334ca25bb5e2facf51d03c50647f95f55786498
      Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
      8390f9e8
  17. 19 Jan, 2016 1 commit
  18. 10 Nov, 2015 1 commit
  19. 28 Sep, 2015 1 commit
  20. 13 Jul, 2015 1 commit
  21. 23 Jun, 2015 1 commit
  22. 11 Jun, 2015 1 commit
  23. 10 Jun, 2015 1 commit
  24. 04 Jun, 2015 1 commit
  25. 23 Apr, 2015 1 commit
  26. 22 Apr, 2015 4 commits
  27. 20 Mar, 2015 1 commit
  28. 16 Mar, 2015 1 commit
    • Eike Ziller's avatar
      Plugin view: Fix sorting · 7450a09a
      Eike Ziller authored
      Broke after moving to Utils::TreeModel. Use QSortFilterProxyModel on top
      of TreeModel (can later be used for filtering as well).
      Additionally we need to make sure to report changes only for the changed
      column now, because otherwise QSortFilterProxyModel thinks that the
      change could make re-sorting necessary, and does that in a non-stable
      way.
      
      Change-Id: I9fd12c55a45aba4c05f8e318ae8ea9a4ab9f3310
      Task-number: QTCREATORBUG-14107
      Reviewed-by: default avatarRobert Loehning <robert.loehning@theqtcompany.com>
      Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
      7450a09a
  29. 23 Feb, 2015 1 commit
  30. 09 Feb, 2015 3 commits
  31. 29 Jan, 2015 1 commit
  32. 28 Jan, 2015 2 commits