mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Use QDateTime::fromSecsSinceEpoch in Qt 6 instead of QDateTime::fromTime_t
This commit is contained in:
parent
f53a30a0e4
commit
f7888e3e6d
17 changed files with 57 additions and 37 deletions
|
@ -424,7 +424,7 @@ void GroupTreeWidget::fillGroupItems(QTreeWidgetItem *categoryItem, const QList<
|
|||
}
|
||||
|
||||
/* Set last post */
|
||||
if(itemInfo.lastpost == QDateTime::fromTime_t(0))
|
||||
if(itemInfo.lastpost == DateTime::DateTimeFromTime_t(0))
|
||||
{
|
||||
item->setText(GTW_COLUMN_LAST_POST, tr("Never"));
|
||||
item->setData(GTW_COLUMN_LAST_POST, ROLE_SORT, QVariant());// To allow them not be sorted with ->setNoDataAsLast(true)
|
||||
|
@ -458,7 +458,7 @@ void GroupTreeWidget::fillGroupItems(QTreeWidgetItem *categoryItem, const QList<
|
|||
if(!IS_GROUP_SUBSCRIBED(itemInfo.subscribeFlags))
|
||||
tooltip += "\n" + QString::number(itemInfo.max_visible_posts) + " messages available" ;
|
||||
// if(itemInfo.max_visible_posts) // wtf? this=0 when there are some posts definitely exist - lastpost is recent
|
||||
if(itemInfo.lastpost == QDateTime::fromTime_t(0))
|
||||
if(itemInfo.lastpost == DateTime::DateTimeFromTime_t(0))
|
||||
tooltip += "\n" + tr("Last Post") + ": " + tr("Never") ;
|
||||
else
|
||||
tooltip += "\n" + tr("Last Post") + ": " + DateTime::formatLongDateTime(itemInfo.lastpost) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue