1. 19 Oct, 2017 1 commit
  2. 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
      object).
      
      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>
      83210400
  3. 22 Sep, 2017 1 commit
  4. 22 Aug, 2017 1 commit
  5. 04 Aug, 2017 1 commit
  6. 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>
      3841d2fc
  7. 17 Jul, 2017 1 commit
  8. 10 Jul, 2017 1 commit
  9. 16 Jun, 2017 1 commit
  10. 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>
      f6715fe5
  11. 02 Feb, 2017 1 commit
  12. 20 Jan, 2017 1 commit
  13. 18 Jan, 2017 1 commit
  14. 17 Jan, 2017 1 commit
  15. 16 Jan, 2017 1 commit
  16. 12 Dec, 2016 1 commit
  17. 02 Nov, 2016 1 commit
  18. 01 Nov, 2016 1 commit
  19. 21 Oct, 2016 1 commit
  20. 13 Sep, 2016 1 commit
  21. 12 Aug, 2016 1 commit
  22. 08 Aug, 2016 1 commit
  23. 17 Jun, 2016 1 commit
  24. 04 Apr, 2016 1 commit
  25. 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
      progress.
      
      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>
      47c37556
  26. 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>
      0f61908a
  27. 17 Feb, 2016 2 commits
  28. 09 Feb, 2016 1 commit
  29. 05 Feb, 2016 1 commit
  30. 28 Jan, 2016 2 commits
  31. 26 Nov, 2015 1 commit
  32. 25 Nov, 2015 1 commit
    • Alessandro Portale's avatar
      Themed Icons: Introduce Utils::Icon · 033862f3
      Alessandro Portale authored
      Instead of describing icons via file name or in the themed icons case
      via
      a string that is a list of mask/color pairs, we have now a class for it.
      
      Icons are now listed in per-plugin *icons.h headers.
      
      RunControl::m_icon was The only place left where an icon property was in
      fact a string. This patch changes that member to be a Utils::Icon.
      
      Change-Id: Ibcfa8bb25e6d2e330c567ee7ccc0b97ead603177
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      033862f3
  33. 12 Nov, 2015 1 commit
  34. 23 Oct, 2015 1 commit
  35. 13 Oct, 2015 1 commit
  36. 12 Oct, 2015 1 commit
  37. 10 Sep, 2015 1 commit
  38. 15 Jun, 2015 1 commit
    • Jochen Becher's avatar
      Introduce dragging for all explorer nodes. · 431b25ad
      Jochen Becher authored
      Extend drop support with variant values. A drop may be a file drop or a
      value drop or both.
      
      Rename Utils::FileDropSupport to Utils::DropSupport and add methods to
      add not only files but any QVariant value to the mime data. Project
      explorer adds dragged nodes (which will be needed for future ModelEditor
      plugin).
      
      Change-Id: I799542c60fdecb3e64af0d3ba47b6caa9adbcfd7
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      431b25ad