show expanded/long timedate format on tooltip, fix #621
This commit is contained in:
parent
91573ec11d
commit
158d69a569
@ -365,6 +365,12 @@ QVariant MessagesModel::data(const QModelIndex& idx, int role) const {
|
|||||||
return TextFactory::shorten(data(idx, Qt::ItemDataRole::DisplayRole).toString(),
|
return TextFactory::shorten(data(idx, Qt::ItemDataRole::DisplayRole).toString(),
|
||||||
TEXT_TOOLTIP_LIMIT);
|
TEXT_TOOLTIP_LIMIT);
|
||||||
}
|
}
|
||||||
|
else if (idx.column() == MSG_DB_DCREATED_INDEX) {
|
||||||
|
return qApp->localization()->loadedLocale().toString(
|
||||||
|
QDateTime::fromMSecsSinceEpoch(data(idx,
|
||||||
|
Qt::ItemDataRole::EditRole).toLongLong()).toLocalTime(),
|
||||||
|
QLocale::FormatType::LongFormat);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return data(idx, Qt::ItemDataRole::DisplayRole);
|
return data(idx, Qt::ItemDataRole::DisplayRole);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user