From ff18f8103f9a5a6154c4aee846b5a81320b73682 Mon Sep 17 00:00:00 2001 From: Marcin Pawlikowski Date: Tue, 4 Jun 2024 13:23:33 +0200 Subject: [PATCH] Add tooltips to logs (#476) 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 --- src/tablemodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tablemodel.cpp b/src/tablemodel.cpp index 98c6c6dd..3103801f 100644 --- a/src/tablemodel.cpp +++ b/src/tablemodel.cpp @@ -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(); }