1. 03 Jan, 2022 1 commit
  2. 11 Dec, 2021 1 commit
  3. 30 Nov, 2021 2 commits
  4. 29 Nov, 2021 1 commit
  5. 09 Nov, 2021 1 commit
    • Nyan Pasu's avatar
      Fix hang in line-break algorithm · 36185dbe
      Nyan Pasu authored
      findBreak() previously mixed QFontMetrics::boundingRect().width() (the
      width a string takes up, including left/right overhangs) and
      QFontMetrics::horizontalAdvance() (which excludes overhangs). This
      resulted in inconsistent behaviors within the function.
      
      For borderline strings where fm->boundingRect(text).width() >= maxWidth
      but fm->horizontalAdvance(text) < maxWidth, the code would not return
      early, and would never exit the binary search loop because halfWidth <
      maxWidth even when halfPos == text.length(). In fact, bottomPos gets set
      to text.length() + 1 and the loop continues forever.
      
      By consistently using QFontMetrics::boundingRect().width(), we make sure
      the binary search loop always breaks out. It would be nice to add a
      (halfWidth < maxWidth && halfPos < breakPos) check, but it's not
      strictly necessary.
      
      BUG: 428917
      36185dbe
  6. 08 Nov, 2021 1 commit
  7. 31 Oct, 2021 1 commit
  8. 04 Oct, 2021 1 commit
  9. 20 Sep, 2021 2 commits
  10. 14 Sep, 2021 2 commits
  11. 27 Aug, 2021 1 commit
  12. 04 Aug, 2021 1 commit
  13. 12 Jul, 2021 1 commit
  14. 10 Jul, 2021 1 commit
  15. 05 Jul, 2021 1 commit
  16. 05 Jun, 2021 1 commit
  17. 07 May, 2021 1 commit
  18. 14 Apr, 2021 1 commit
  19. 07 Apr, 2021 1 commit
  20. 13 Mar, 2021 1 commit
  21. 03 Mar, 2021 1 commit
  22. 24 Feb, 2021 1 commit
  23. 14 Feb, 2021 1 commit
  24. 29 Jan, 2021 1 commit
  25. 14 Jan, 2021 1 commit
  26. 12 Jan, 2021 1 commit
  27. 02 Jan, 2021 1 commit
  28. 28 Dec, 2020 3 commits
  29. 27 Dec, 2020 1 commit
  30. 02 Dec, 2020 1 commit
  31. 22 Nov, 2020 1 commit
  32. 08 Nov, 2020 1 commit
  33. 06 Nov, 2020 3 commits