mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
plasma: position multiple net monitors correctly in system-monitor applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
67bbb46469
commit
2538f86984
1 changed files with 3 additions and 1 deletions
|
@ -642,6 +642,7 @@ void SystemMonitorWidget::slotUpdateLayout()
|
|||
|
||||
m_requestsensors.clear();
|
||||
m_cpuframe->setVisible(true);
|
||||
int netrow = 1;
|
||||
foreach (const QByteArray &sensor, m_systemmonitorclient->sensors()) {
|
||||
const KSensorType ksensortype = kSensorType(sensor);
|
||||
Q_ASSERT(ksensortype != KSensorType::UnknownSensor);
|
||||
|
@ -653,8 +654,9 @@ void SystemMonitorWidget::slotUpdateLayout()
|
|||
this, knetid,
|
||||
m_receivercolor, m_transmittercolor
|
||||
);
|
||||
m_layout->addItem(netmonitor, 1, 0);
|
||||
m_layout->addItem(netmonitor, netrow, 0);
|
||||
m_netmonitors.append(netmonitor);
|
||||
netrow++;
|
||||
}
|
||||
|
||||
if (ksensortype == KSensorType::PartitionFreeSensor) {
|
||||
|
|
Loading…
Add table
Reference in a new issue