Skip to content

Commit

Permalink
Add tooltips to logs (#476)
Browse files Browse the repository at this point in the history
When logs are really long it's not possible to
see all the contents. The easiest solution is to
add simple tooltip to every log.

Signed-off-by: Marcin Pawlikowski <[email protected]>
  • Loading branch information
qjcina authored Jun 4, 2024
1 parent 8acd583 commit ff18f81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ TableModel::TableModel(const QString & /*data*/, QObject *parent)
return FieldNames::getColumnAlignment((FieldNames::Fields)index.column(),project->settings);
}

if ( role == Qt::ToolTipRole )
{
return msg.toStringPayload().simplified();
}

return QVariant();
}

Expand Down

0 comments on commit ff18f81

Please sign in to comment.