Display simplified RAW data when Contents column is actiev.

This commit is contained in:
Martin Rotter 2017-11-10 10:59:06 +01:00
parent eb777b9670
commit 6b72937992
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,10 @@ QVariant MessagesModel::data(const QModelIndex& idx, int role) const {
return dt.toString(m_customDateFormat);
}
}
else if (index_column == MSG_DB_CONTENTS_INDEX) {
// Do not display full contents here.
return data(idx, Qt::EditRole).toString().mid(0, 64).simplified() + QL1S("...");
}
else if (index_column == MSG_DB_AUTHOR_INDEX) {
const QString author_name = QSqlQueryModel::data(idx, role).toString();