SystemMonitorTab: add network polling

This commit is contained in:
Ly-sec
2025-11-27 16:10:36 +01:00
parent 4e4a974f2c
commit 3f02b28ecc
14 changed files with 73 additions and 4 deletions

View File

@@ -433,4 +433,39 @@ ColumnLayout {
}
}
}
// Network
NText {
Layout.fillWidth: true
Layout.topMargin: Style.marginM
text: I18n.tr("settings.system-monitor.network-section.label")
pointSize: Style.fontSizeM
}
RowLayout {
Layout.fillWidth: true
spacing: Style.marginM
ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginM
NText {
Layout.alignment: Qt.AlignHCenter
horizontalAlignment: Text.AlignHCenter
text: I18n.tr("settings.system-monitor.polling-interval.label")
pointSize: Style.fontSizeS
}
NSpinBox {
Layout.alignment: Qt.AlignHCenter
from: 250
to: 10000
stepSize: 250
value: Settings.data.systemMonitor.networkPollingInterval
onValueChanged: Settings.data.systemMonitor.networkPollingInterval = value
suffix: " ms"
}
}
}
}