mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-01 01:46:57 +01:00
Display simplified RAW data when Contents column is actiev.
This commit is contained in:
parent
eb777b9670
commit
6b72937992
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user