1. 07 Dec, 2017 1 commit
  2. 27 Nov, 2017 1 commit
  3. 23 Nov, 2017 1 commit
    • Marco Bubke's avatar
      Utils: Add simple LineColumn class · bb2f9574
      Marco Bubke authored
      There are many places where line and column are returned by writable
      parameters which is not so readable. This simple class makes it easier
      to return line and column as one value.
      Change-Id: I4836088e76d0ee5decd713ab616fde2f8a97c74b
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
  4. 20 Nov, 2017 1 commit
  5. 14 Nov, 2017 1 commit
  6. 02 Nov, 2017 1 commit
  7. 27 Oct, 2017 1 commit
  8. 19 Oct, 2017 1 commit
  9. 05 Oct, 2017 1 commit
  10. 25 Sep, 2017 1 commit
    • Tobias Hunger's avatar
      Benchmarks: Provide infrastructure for benchmarks · 83210400
      Tobias Hunger authored
      ... and use it for the profiling report.
      Instantiate a Utils::Benchmarker(...) to report a data point (which
      will be created at destruction time, reporting the live-time of the
      Alternatively you can use Utils::Benchmarker::report(...) to record
      your data point.
      Independent of how you create a datapoint, it will be reported through
      the qtc.benchmark logging category and can get pushed to a database
      from a script parsing creator's output.
      Note: The plugin-loading uses the existing -profiling infrastructure,
      so you need to start Creator with -profile to see data points.
      Change-Id: I18e6b84137d0f49ee5e12e7c3d75323005ce5a29
      Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
  11. 22 Sep, 2017 1 commit
  12. 22 Aug, 2017 1 commit
  13. 04 Aug, 2017 1 commit
  14. 26 Jul, 2017 1 commit
    • Eike Ziller's avatar
      Locator: Fix diverse issues with drawing highlighted text · 3841d2fc
      Eike Ziller authored
      To draw the result items with highlighted parts, we split the text to
      draw into "before highlight", "highlight" and "after highlight", and
      painted them separately. This had several issues:
      It breaks the text layout. Characters within a text are often started at
      subpixels, which was not so visible in the static search results, but
      lead to ugly artifacts while typing in Locator (enter a search term, and
      then continue adding characters that still match the first found item,
      and watch the effect in the "after highlight" part).
      It needs a lot of custom painting code. Properly supporting text elide
      modes is hard, scaling to more than one highlight as well. Reusing parts
      of the QItemDelegate base functions also has its issues, e.g. that
      clipping doesn't work well.
      Instead, QItemDelegate::drawDisplay should make it possible to set
      format ranges for the text it draws. This patch copies part of
      QItemDelegate to be able to add this parameter. Unfortunately Qt
      currently has a bug (QTBUG-62019) that character backgrounds are not
      painted far enough (1 pixel to the right has the wrong background), which
      looks very ugly in selected items in the search results. So we use the
      new delegate only for Locator for now, to be used later for the search
      results too, when that bug is fixed.
      Task-number: QTCREATORBUG-18532
      Change-Id: Idf59b2c2bcfa6b188a810f7a3128a81e7e6fffb1
      Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
  15. 17 Jul, 2017 1 commit
  16. 10 Jul, 2017 1 commit
  17. 16 Jun, 2017 1 commit
  18. 03 Mar, 2017 1 commit
    • hjk's avatar
      Utils: Add a ObjectPool convenience class template · f6715fe5
      hjk authored
      The ObjectPool class template provides parts of the functionality
      of the global PluginManager object pool but is intented to be
      used with smaller set objects, typically with same base type (e.g.
      factories) only.
      The ObjectPool takes ownership of add items if and only if the item does
      not have a QObject parent.
      Items owned by the Object pool are destructed when the pool is
      destructed, the other items are taken care of by their QObject parent
      according to the usual parent/child behavior.
      Change-Id: I60886095c8b04eae017e1fb56774b1bf66dbefa1
      Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
  19. 02 Feb, 2017 1 commit
  20. 20 Jan, 2017 1 commit
  21. 18 Jan, 2017 1 commit
  22. 17 Jan, 2017 1 commit
  23. 16 Jan, 2017 1 commit
  24. 12 Dec, 2016 1 commit
  25. 02 Nov, 2016 1 commit
  26. 01 Nov, 2016 1 commit
  27. 21 Oct, 2016 1 commit
  28. 13 Sep, 2016 1 commit
  29. 12 Aug, 2016 1 commit
  30. 08 Aug, 2016 1 commit
  31. 17 Jun, 2016 1 commit
  32. 04 Apr, 2016 1 commit
  33. 26 Feb, 2016 1 commit
    • Eike Ziller's avatar
      mapReduce: Support progress information and add (unordered) map · 47c37556
      Eike Ziller authored
      If a container is given to mapReduce, it takes the responsibility to
      report progress information for the whole operation. If the map function
      reports its own progress, that is taken into account for the overall
      The (so far only unordered) Utils::map operation can be used to replace
      MultiTask, by passing a member function of the items in the container as
      a map function.
      Change-Id: I18ca38a6ad2899d73f590bfe59bf2e6eb2f1a57a
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
  34. 22 Feb, 2016 1 commit
    • Marco Bubke's avatar
      Utils: Add sized array · 0f61908a
      Marco Bubke authored
      Sometimes you need a very small array which has a size and max size.
      QVarLengthArray is simular but has some size and run time overhead and it
      has no max size. It will instead malloc. So this array is for very small
      collections under 256 values which never allocate and have only a size
      overhead of a byte.
      Change-Id: Ia392c750d566c4accc6077c3dc4d9d4ae501e599
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
  35. 17 Feb, 2016 2 commits
  36. 09 Feb, 2016 1 commit
  37. 05 Feb, 2016 1 commit
  38. 28 Jan, 2016 2 commits