28 QAbstractTableModel(parent)
41 return runningTaskList.size();
51 const unsigned int& row =
index.row();
52 const unsigned int& column =
index.column();
53 std::unique_lock lock(taskListsMutex);
55 if (row >= runningTaskList.size())
60 const RunningTaskIceBase& entry = runningTaskList.at(row);
69 return QString::fromStdString(entry.name);
85 return entry.workload * 100.0f;
90 QString date = QString::fromStdString(IceUtil::Time::microSeconds(entry.startTime).toDateTime());
91 return date.remove(0, date.indexOf(
' ') + 1);
97 QString date = QString::fromStdString(IceUtil::Time::microSeconds(entry.lastFeedbackTime).toDateTime());
98 return date.remove(0, date.indexOf(
' ') + 1);
104 return QString::number(entry.threadId);
127 case Qt::DisplayRole:
128 case Qt::ToolTipRole:
129 if (orientation == Qt::Horizontal)
146 return "lastFeedbackTime";
157 return QAbstractTableModel::headerData(section, orientation, role);
164 std::unique_lock lock(taskListsMutex);
165 this->runningTaskList = runningTaskList;