Add tooltip to callstack
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user