void GraphicsWatcherManager::updateSensorsList(const QString ¤tRobotModel) { mWatcher->clearTrackingObjects(); int index = 0; for (const PortInfo &port : configuredPorts(currentRobotModel)) { const DeviceInfo device = currentConfiguration(currentRobotModel, port); /// @todo It must depend on port, port must return its variable const QString variableName = port.reservedVariable(); if (!device.isNull() && !variableName.isEmpty()) { mWatcher->addTrackingObject(index, variableName, QString("%1: %2").arg(port.name() , device.friendlyName())); ++index; } } }