Do not show entry content if it has less than 15 characters
This commit is contained in:
parent
825fd9388b
commit
0c2757613b
1 changed files with 4 additions and 1 deletions
|
|
@ -260,8 +260,11 @@ int EntryModel::createItems(int offset, int limit)
|
|||
.replace(QChar::ObjectReplacementCharacter,QChar(0x0020)).trimmed();
|
||||
#endif
|
||||
QString content = content0.simplified();
|
||||
if (content.length()>1000)
|
||||
if (content.length()>1000) {
|
||||
content = content.left(997)+"...";
|
||||
} else if (content.length() < 15) {
|
||||
content.clear();
|
||||
}
|
||||
|
||||
doc.setHtml((*i).title);
|
||||
QString title = doc.toPlainText()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue