From ccb871c30b24d624641539caac6a417e9682c339 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 16 Nov 2015 16:44:52 +0100 Subject: [PATCH] ActivityWidget: Show the subject in the Tooltip. the original text might be elided. --- src/gui/activitywidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index cbb06dba237..731c0262cc2 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -73,13 +73,11 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const switch (role) { case ActivityItemDelegate::PathRole: - case Qt::ToolTipRole: list = FolderMan::instance()->findFileInLocalFolders(a._file); if( list.count() > 0 ) { return QVariant(list.at(0)); } return QVariant(); - break; case ActivityItemDelegate::ActionIconRole: return QVariant(); // FIXME once the action can be quantified, display on Icon @@ -87,6 +85,7 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const case ActivityItemDelegate::UserIconRole: return QIcon(QLatin1String(":/client/resources/account.png")); break; + case Qt::ToolTipRole: case ActivityItemDelegate::ActionTextRole: return a._subject; break;