mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-27 08:33:27 +01:00
better formatting of tooltip valies in article list
This commit is contained in:
parent
b35c977545
commit
2a172bf3ef
@ -26,7 +26,7 @@
|
||||
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="4.0.3" date="2021-09-30"/>
|
||||
<release version="4.0.3" date="2021-10-01"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
@ -344,14 +344,12 @@ QVariant MessagesModel::data(const QModelIndex& idx, int role) const {
|
||||
return QVariant();
|
||||
}
|
||||
else {
|
||||
QVariant dta = m_cache->containsData(idx.row())
|
||||
? m_cache->data(idx)
|
||||
: QSqlQueryModel::data(idx);
|
||||
QString txt = dta.toString().size() > 300
|
||||
? (dta.toString().left(300) + QSL("..."))
|
||||
: dta.toString().left(300);
|
||||
|
||||
return txt;
|
||||
if (idx.column() == MSG_DB_SCORE_INDEX) {
|
||||
return data(idx, Qt::ItemDataRole::EditRole);
|
||||
}
|
||||
else {
|
||||
return data(idx, Qt::ItemDataRole::DisplayRole);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user