1. 05 Nov, 2014 - 5 commits
  2. 28 Oct, 2014 - 8 commits
  3. 13 Oct, 2014 - 5 commits
  4. 06 Oct, 2014 - 1 commit
  5. 03 Oct, 2014 - 1 commit
  6. 02 Oct, 2014 - 1 commit
  7. 01 Oct, 2014 - 15 commits
  8. 30 Sep, 2014 - 2 commits
    • Dyami Caliri's avatar
      Accessibility: Fix crash with invalid QAccessibleInterface · 138e14d7
      Dyami Caliri authored
      
      Windows accessibility can crash if it handles an event with an invalid
      QAccessibleInterface pointer (one whose object has been deleted).
      
      Task-number: QTBUG-41597
      Change-Id: Iba099f7cb732fd00f18f04bd951c6cdd94785871
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
      Reviewed-by: default avatarJan Arve Sæther <jan-arve.saether@digia.com>
      138e14d7
    • Eskil Abrahamsen Blomfeldt's avatar
      QPlainTextEdit: Fix crash on complex undo w/full width selection · 27bc4c4c
      Eskil Abrahamsen Blomfeldt authored
      Say you have a document of two blocks of text.
      
      When you select a block of text in the document and then replace this
      with a new empty block (by pressing enter) and then subsequently
      undo this action, the following three steps are performed as a
      chain of undo commands:
      
      1. Remove the empty block at the beginning of the document
      2. Insert a new empty block at the beginning of the document
      3. Insert the text back into the first block
      
      Since a block is removed and inserted in the same go, both blocks
      require a relayout, since the accumulated change spans both blocks.
      However, in QPlainTextDocumentLayout we would only look at the max
      of either removed chars or added chars. This would match the text
      length of the first block at this point, so we would only relayout
      that block. However, since we are also removing characters, the
      actual accumulated change to the document is larger. We should
      relayout any block touched by the sum of the added and removed
      character counts.
      
      Missing this, the paint event would later query
      block.layout()->lineForTextPosition(0) which would give an invalid
      line despite the fact that the block.length() > 0. This caused
      a crash in the paint event when the full width selection was
      turned on.
      
      Note that the logic here was only recently updated to include the
      removed characters at all in the logic, by the SHA1:
      2983cb95
      
      .
      
      [ChangeLog][QPlainTextEdit] Fixed a crash when using full width
      selections and issuing a complex undo command chain which removes
      and inserts an empty block in one go.
      
      Task-number: QTBUG-36415
      Change-Id: Iafe8a69e455e0c713a48714f10f0cace69c84f51
      Reviewed-by: default avatarAxel Rasmussen <axel.rasmussen1@gmail.com>
      Reviewed-by: default avatarKonstantin Ritt <ritt.ks@gmail.com>
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      27bc4c4c
  9. 29 Sep, 2014 - 2 commits