Sort grid items properly

Supersedes #21856.
This commit is contained in:
Chocobo1
2024-12-14 02:53:01 +08:00
parent c887a6f7d8
commit 0a36171999
13 changed files with 973 additions and 1246 deletions

View File

@@ -20,29 +20,15 @@
<string>User statistics</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelWaste">
<item row="0" column="0">
<widget class="QLabel" name="labelAlltimeULText">
<property name="text">
<string notr="true">TextLabel</string>
<string>All-time upload:</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="labelPeersText">
<property name="text">
<string>Connected peers:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelGlobalRatioText">
<property name="text">
<string>All-time share ratio:</string>
</property>
</widget>
</item>
<item row="4" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelPeers">
<item row="0" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelAlltimeUL">
<property name="text">
<string notr="true">TextLabel</string>
</property>
@@ -62,6 +48,13 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="labelGlobalRatioText">
<property name="text">
<string>All-time share ratio:</string>
</property>
</widget>
</item>
<item row="2" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelGlobalRatio">
<property name="text">
@@ -76,15 +69,22 @@
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelAlltimeULText">
<item row="3" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelWaste">
<property name="text">
<string>All-time upload:</string>
<string notr="true">TextLabel</string>
</property>
</widget>
</item>
<item row="0" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelAlltimeUL">
<item row="4" column="0">
<widget class="QLabel" name="labelPeersText">
<property name="text">
<string>Connected peers:</string>
</property>
</widget>
</item>
<item row="4" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelPeers">
<property name="text">
<string notr="true">TextLabel</string>
</property>
@@ -113,13 +113,6 @@
</property>
</widget>
</item>
<item row="1" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelTotalBuf">
<property name="text">
<string notr="true">TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelTotalBufText">
<property name="text">
@@ -127,6 +120,13 @@
</property>
</widget>
</item>
<item row="1" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelTotalBuf">
<property name="text">
<string notr="true">TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -136,17 +136,10 @@
<string>Performance statistics</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="3" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelJobsTime">
<item row="0" column="0">
<widget class="QLabel" name="labelWriteStarveText">
<property name="text">
<string notr="true">TextLabel</string>
</property>
</widget>
</item>
<item row="2" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelQueuedJobs">
<property name="text">
<string notr="true">TextLabel</string>
<string>Write cache overload:</string>
</property>
</widget>
</item>
@@ -157,6 +150,13 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelReadStarveText">
<property name="text">
<string>Read cache overload:</string>
</property>
</widget>
</item>
<item row="1" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelReadStarve">
<property name="text">
@@ -171,10 +171,10 @@
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="labelWriteStarveText">
<item row="2" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelQueuedJobs">
<property name="text">
<string>Write cache overload:</string>
<string notr="true">TextLabel</string>
</property>
</widget>
</item>
@@ -185,10 +185,10 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelReadStarveText">
<item row="3" column="1" alignment="Qt::AlignmentFlag::AlignRight">
<widget class="QLabel" name="labelJobsTime">
<property name="text">
<string>Read cache overload:</string>
<string notr="true">TextLabel</string>
</property>
</widget>
</item>