58 const int row =
index.row();
59 const int column =
index.column();
60 std::unique_lock lock(taskListsMutex);
62 if (row < 0 || row >=
static_cast<int>(periodicTaskList.size()))
67 const PeriodicTaskIceBase& entry = periodicTaskList.at(row);
76 return QString::fromStdString(entry.name);
92 return entry.intervalMs;
98 if (entry.workloadList.empty())
102 return *entry.workloadList.rbegin() * 100.0f;
105 return QString::number(0.001 * entry.lastCycleDuration,
'f', 1);
110 QString date = QString::fromStdString(
111 IceUtil::Time::microSeconds(entry.startTime).toDateTime());
112 return date.remove(0, date.indexOf(
' ') + 1);
118 QString date = QString::fromStdString(
119 IceUtil::Time::microSeconds(entry.lastCycleStartTime).toDateTime());
120 return date.remove(0, date.indexOf(
' ') + 1);
126 return QString::number(entry.threadId);
149 case Qt::DisplayRole:
150 case Qt::ToolTipRole:
151 if (orientation == Qt::Horizontal)
162 return "Interval (ms)";
168 return "Last cycle duration (ms)";
174 return "Last cycle start";
184 return QAbstractTableModel::headerData(section, orientation, role);