Skip to content

Commit

Permalink
ActivityWidget: Show the subject in the Tooltip.
Browse files Browse the repository at this point in the history
the original text might be elided.
  • Loading branch information
dragotin committed Nov 16, 2015
1 parent ff76a84 commit ccb871c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/activitywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,19 @@ 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
break;
case ActivityItemDelegate::UserIconRole:
return QIcon(QLatin1String(":/client/resources/account.png"));
break;
case Qt::ToolTipRole:
case ActivityItemDelegate::ActionTextRole:
return a._subject;
break;
Expand Down

0 comments on commit ccb871c

Please sign in to comment.