Add tooltip to callstack

This commit is contained in:
2019-02-22 19:32:20 -06:00
parent dc041d669d
commit d6fe3874c0
4 changed files with 19 additions and 58 deletions

View File

@@ -48,6 +48,17 @@ QVariant CallStackModel::data(const QModelIndex &index, int role) const {
if (role == Qt::DisplayRole) {
const auto &f = m_frames[index.row()];
switch (index.column()) {
case Column::Function:
return f.function;
case Column::Source:
return QString("%1:%2").arg(f.file).arg(f.line);
default:
return {};
}
} else if (role == Qt::ToolTipRole) {
const auto &f = m_frames[index.row()];
switch (index.column()) {
case Column::Function:
return f.function;