Wireshark-commits: [Wireshark-commits] master-2.0 5fd5ebc: Qt: Defer proto tree column content resi

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 11 Mar 2016 20:43:02 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5fd5ebc8964ddfdd673c7089ef8776ef0d1a5c69
Submitter: Gerald Combs (gerald@xxxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

5fd5ebc by Gerald Combs (gerald@xxxxxxxxxxxxx):

    Qt: Defer proto tree column content resizing.
    
    Try to avoid the following call graph:
    
    ProtoTree::expandAll
      ...
        ProtoTree::expand
          ...
            QTreeView::resizeColumnToContents
    
    QTreeView::resizeColumnToContents calls sizeHintForColumn, which
    iterates over a number of items (default 1000). Calling it from
    ProtoTree::expand can lead to excessive wheel-spinning.
    
    Add a single-shot timer for resizeColumnToContents. This is similar to
    what QTreeView does internally when columns are resized.
    
    Bug: 12228
    Change-Id: I7b50c1486b3a25817efae58efbb8c9e961dbdab0
    Reviewed-on: https://code.wireshark.org/review/14411
    Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    (cherry picked from commit 28bfb3210537ce60895e10526f0a3e8cdfbd279d)
    Reviewed-on: https://code.wireshark.org/review/14430
    

Actions performed:

    from  7d41cd3   Add IAX2 and Skinny calls to VoIP calls window
    adds  5fd5ebc   Qt: Defer proto tree column content resizing.


Summary of changes:
 ui/qt/proto_tree.cpp |   59 +++++++++++++++++++++++++++++++++++++++++++-------
 ui/qt/proto_tree.h   |    8 ++++++-
 2 files changed, 58 insertions(+), 9 deletions(-)