mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T190, improved display of text messages
* tooltip * using QStringBuilder
This commit is contained in:
@@ -81,5 +81,15 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
QVariant CTextMessageListModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (role == Qt::ToolTipRole)
|
||||
{
|
||||
// the underlying model object as summary
|
||||
const CTextMessage model(this->at(index));
|
||||
return model.asHtmlSummary("<br>");
|
||||
}
|
||||
return CListModelBase::data(index, role);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user