72 QTableWidgetItem *item; |
72 QTableWidgetItem *item; |
73 |
73 |
74 qDebug() << "MonNodes reload"; |
74 qDebug() << "MonNodes reload"; |
75 |
75 |
76 QSqlQuery query("SELECT record,node,online,group_id,lastseen,net_address,up_interval FROM mon_nodes ORDER BY node"); |
76 QSqlQuery query("SELECT record,node,online,group_id,lastseen,net_address,up_interval FROM mon_nodes ORDER BY node"); |
77 const QStringList labels({tr("Node"), tr("Status"), tr("Group"), tr("Last seen"), tr("Address"), tr("Interval"), tr("Edit")}); |
77 const QStringList labels({tr("Node"), tr("Status"), tr("Group"), tr("Last seen"), tr("Address"), tr("Interval"), tr("Details")}); |
78 |
78 |
79 this->tableNodes->setColumnCount(7); |
79 this->tableNodes->setColumnCount(7); |
80 this->tableNodes->setColumnWidth(0, 200); /* Node */ |
80 this->tableNodes->setColumnWidth(0, 200); /* Node */ |
81 this->tableNodes->setColumnWidth(1, 100); /* Status */ |
81 this->tableNodes->setColumnWidth(1, 100); /* Status */ |
82 this->tableNodes->setColumnWidth(2, 150); /* Group */ |
82 this->tableNodes->setColumnWidth(2, 150); /* Group */ |