Skip to content

Commit 256bc4c

Browse files
committed
Add objectNames for values on ServerInfo tab
1 parent 313a767 commit 256bc4c

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

src/qml/server-info/ServerInfoTabs.qml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,53 +52,77 @@ Repeater {
5252

5353
text: qsTr("Redis Version")
5454
font.pointSize: 12
55-
color: "grey"
55+
color: "grey"
5656
}
5757

58-
Label { id: redisVersionLabel; text: "N/A"; font.pointSize: 12 }
58+
Label {
59+
id: redisVersionLabel
60+
text: "N/A"
61+
font.pointSize: 12
62+
objectName: "rdm_server_info_redis_version"
63+
}
5964

6065
Text {
6166
Layout.preferredWidth: tab.width / 5
6267

6368
text: qsTr("Used memory")
6469
font.pointSize: 12
65-
color: "grey"
70+
color: "grey"
6671
}
6772

68-
Label { id: usedMemoryLabel; text: "N/A"; font.pointSize: 12 }
73+
Label {
74+
id: usedMemoryLabel;
75+
text: "N/A";
76+
font.pointSize: 12
77+
objectName: "rdm_server_info_used_memory"
78+
}
6979

7080
Text {
7181
Layout.preferredWidth: tab.width / 5
7282

7383
text: qsTr("Clients")
7484
font.pointSize: 12
75-
color: "grey"
85+
color: "grey"
7686
}
7787

78-
Label { id: connectedClientsLabel; text: "N/A"; font.pointSize: 12 }
88+
Label {
89+
id: connectedClientsLabel;
90+
text: "N/A";
91+
font.pointSize: 12
92+
objectName: "rdm_server_info_clients"
93+
}
7994

8095
Text {
8196
Layout.preferredWidth: tab.width / 5
8297

8398
text: qsTr("Commands Processed")
8499
font.pointSize: 12
85100
color: "grey"
86-
wrapMode: Text.WordWrap
101+
wrapMode: Text.WordWrap
87102
}
88103

89-
Label { id: totalCommandsProcessedLabel; text: "N/A"; font.pointSize: 12 }
104+
Label {
105+
id: totalCommandsProcessedLabel;
106+
text: "N/A";
107+
font.pointSize: 12
108+
objectName: "rdm_server_info_cmd_processed"
109+
}
90110

91111

92112
Text {
93113
Layout.preferredWidth: tab.width / 5
94114

95115
text: qsTr("Uptime")
96116
font.pointSize: 12
97-
color: "grey"
117+
color: "grey"
98118
}
99119

100-
Label { id: uptimeLabel; text: "N/A"; font.pointSize: 12 }
101-
120+
Label {
121+
id: uptimeLabel;
122+
text: "N/A";
123+
font.pointSize: 12
124+
objectName: "rdm_server_info_uptime"
125+
}
102126

103127
Connections {
104128
target: tab.model? tab.model : null

0 commit comments

Comments
 (0)