Qt: Set uniformRowHeights for some of our trees.

Set the uniformRowHeights property for a few of our QTreeWidgets. This
can improve performance, particularly when we have many items.

Change-Id: I2685646a533aa7accfb3a8578b5198894d873fb2
Reviewed-on: https://code.wireshark.org/review/18476
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2016-10-26 10:15:07 -07:00
parent a7bc4b8146
commit 5afe1a70df
6 changed files with 21 additions and 0 deletions

View File

@ -16,6 +16,9 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeWidget" name="tableTreeWidget">
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<column>
<property name="text">
<string>Table Name</string>

View File

@ -16,6 +16,9 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeWidget" name="hierStatsTreeWidget">
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<attribute name="headerDefaultSectionSize">
<number>50</number>
</attribute>

View File

@ -55,6 +55,9 @@
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="itemsExpandable">
<bool>false</bool>
</property>
@ -112,6 +115,9 @@
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="itemsExpandable">
<bool>false</bool>
</property>

View File

@ -24,6 +24,9 @@
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="itemsExpandable">
<bool>false</bool>
</property>

View File

@ -16,6 +16,9 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeWidget" name="statsTreeWidget">
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>

View File

@ -25,6 +25,9 @@
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="uniformRowHeights">
<bool>true</bool>
</property>
<property name="itemsExpandable">
<bool>false</bool>
</property>