1. 11 Nov, 2014 - 3 commits
  2. 10 Nov, 2014 - 4 commits
  3. 07 Nov, 2014 - 5 commits
  4. 06 Nov, 2014 - 2 commits
  5. 05 Nov, 2014 - 6 commits
  6. 04 Nov, 2014 - 4 commits
    • Fawzi Mohamed's avatar
      qv4: assign split edges to the correct loop group · 25b6fae1
      Fawzi Mohamed authored
      
      edge splitting had a strange logic to assign the inserted statement to a loop,
      which would go wrong for example for the statement just after the loop header.
      I guess that was done to increase the likelihood that the goto removed from the
      final instructions.
      Given that we are talking about critical edges it is always possible to emit
      them in a bad order, and I do not think that the old logic was really better
      than simply always use the loop group of the target which is always correct.
      It might be worthwhile to ensure that the block it is emitted just before the
      target block, or improve the handling of empty gotos in the backend, but in this
      patch we go for the simplest solution.
      If one would notice worse code, either one of the provious improvements could be
      done, or the old logic could be kept, changing just the if (container == 0) to
      container = toBB->containingGroup();
      
      Change-Id: I26a488e9e2cb2b692fa8187ee658fb4dd98bfa8b
      Task-number: QTBUG-41766
      Reviewed-by: default avatarBernd Lamecker <bernd.lamecker@basyskom.com>
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      25b6fae1
    • Liang Jian's avatar
      Fix memory leak in QQmlLocaleData · 6cbb84d2
      Liang Jian authored
      
      Call the correct destructor in QQmlLocaleData::destroy() to prevent memory
      leak.
      
      Change-Id: Id5b7657443521fbb46486bfbc5575d914c7c7b71
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      6cbb84d2
    • Eskil Abrahamsen Blomfeldt's avatar
      Fix disappearing nodes when adding in two levels of batch root · 326c4d80
      Eskil Abrahamsen Blomfeldt authored
      
      When having e.g. a clip node inside another clip node and adding
      children to the innermost, we would get into the situation where
      we did a partial rebuild for the outermost root, but its available
      render order count would not be updated to reflect the change
      deeper down in the tree. Since the z range would be based on the
      outermost batch root's knowledge of the maximum render order in
      the tree, what would happen is that the z of the rendered nodes
      would increase steadily until they went outside of the viewing
      volume and disappeared.
      
      When decreasing the available order count of a batch root, we need
      to also decrease the available order count of its parents. If any
      of them drop below zero, we need to rebuild the render lists.
      
      [ChangeLog][QtQuick] Fixed nodes sometimes disappearing when
      adding many new nodes to the tree.
      
      Change-Id: I39c34acf0e1e0e87601f0fcd983f8da38cee029f
      Task-number: QTBUG-42096
      Reviewed-by: default avatarGunnar Sletta <gunnar@sletta.org>
      326c4d80
    • Liang Jian's avatar
      Fix memory leak in QV4::QQmlSequence · c748f51f
      Liang Jian authored
      
      Use the correct destructor in QV4::QQmlSequence::destroy() to prevent
      memory leak
      
      Change-Id: If9531f731abe5cd9aecfb9642ebf4f5108978f99
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      c748f51f
  7. 03 Nov, 2014 - 1 commit
  8. 02 Nov, 2014 - 1 commit
  9. 31 Oct, 2014 - 4 commits
    • Thiago Macieira's avatar
      Don't use qDebug and qWarning for formatted output · be9c969b
      Thiago Macieira authored
      
      They are not meant to be used like that. If you want formatted output to
      the console, use stdio.h functions or std::cout. Otherwise, you get
      something like:
      
       $ qmlscene -h
       [233103.196] (126848)(usage|?qmlscene?|__libc_start_main|?qmlscene?): Usage: qmlscene [options] <filename>
       [233103.197] (126848)(usage|?qmlscene?|__libc_start_main|?qmlscene?):
       [233103.197] (126848)(usage|?qmlscene?|__libc_start_main|?qmlscene?):  Options:
       [233103.198] (126848)(usage|?qmlscene?|__libc_start_main|?qmlscene?):   --maximized ............................... Run maximized
       [...]
      
      I've replaced all qDebug with puts/printf and most qWarning with fprintf
      to stderr. In my opinion, some of the qWarnings aren't errors, so I
      replaced those with puts/printf too.
      
      Change-Id: I3e493950bc4a588059fec6c7441b010c2780dffd
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      be9c969b
    • Lars Knoll's avatar
      Get rid of !this and similar constructs · 0704d2be
      Lars Knoll authored
      
      The C++ standard doesn't allow calling member functions
      on a mull object. Fix all such places, by moving the checks
      to the caller where required.
      
      Change-Id: I10fb22acaf0324d8ffd3a6d8e19152e5d32f56bb
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      0704d2be
    • Lars Knoll's avatar
      Don't allocate less memory than required · e6794882
      Lars Knoll authored
      
      When switching from a simple to a sparse array,
      keep the previously allocated size, to not corrupt
      memory.
      
      Change-Id: I33f0fb049a2ad6f24ee3703f2c333855830fe9d2
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      e6794882
    • Eskil Abrahamsen Blomfeldt's avatar
      BorderImage: Fix white area when size changes after first paint · 87755d04
      Eskil Abrahamsen Blomfeldt authored
      
      When e.g. growing the size of the border image in an animation,
      we would not get updates of the paint nodes when the size was
      so small that the bounded target rect and source rect did not
      change (when the size was smaller than the sum of the borders).
      Since this can happen, we also need to detect when the size
      changes and update the node for this case.
      
      Task-number: QTBUG-42022
      Change-Id: I0849d740f363e66a3a4fd6de23fc9d7399ab0779
      Reviewed-by: default avatarGunnar Sletta <gunnar@sletta.org>
      87755d04
  10. 30 Oct, 2014 - 3 commits
  11. 29 Oct, 2014 - 2 commits
    • J-P Nurmi's avatar
      Repeater & itemviews: fix setModel() JS array handling · cf959b4b
      J-P Nurmi authored
      
      QVariant comparison in setModel() started failing because
      JS arrays are now passed as a QJSValue. Re-assigning the
      same array content should not trigger a model change.
      
      This change restores the old behavior it had before, when
      JS arrays were passed as QVariantLists.
      
      Change-Id: I1882b3531f2893b116dbd817edeecab1ae812ce8
      Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
      cf959b4b
    • Daniel d'Andrada's avatar
      Remove mouse grabber if touch used for mouse emulation has been grabbed · 4b7dc1cf
      Daniel d'Andrada authored
      
      If an item grabs a touch that is currently being used for mouse pointer
      emulation, the current mouse grabber should lose the mouse as mouse
      events will no longer be generated from that touch point.
      
      Example of what happens without this patch:
      -User touches a MouseArea. It gets pressed.
      -Some other item grabs that touch.
      -This touch eventually ends.
      -The MouseArea would still be pressed.
      And what will happens instead after this patch:
      -User touches a MouseArea. It gets pressed.
      -Some other item grabs that touch.
      -The MouseArea gets canceled and released
      -This touch eventually ends.
      
      Change-Id: I24114f18be564553a4a768243bb20379affe7a8f
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
      4b7dc1cf
  12. 28 Oct, 2014 - 3 commits
  13. 27 Oct, 2014 - 2 commits