mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix date format for files
This commit is contained in:
parent
782bce2c05
commit
ae69638a6f
@ -185,7 +185,7 @@ void ChatForm::startFileSend(ToxFile file)
|
||||
if (file.friendId != f->friendId)
|
||||
return;
|
||||
QLabel *author = new QLabel(Widget::getInstance()->getUsername());
|
||||
QLabel *date = new QLabel(QTime::currentTime().toString("mm:ss"));
|
||||
QLabel *date = new QLabel(QTime::currentTime().toString("hh:mm"));
|
||||
QScrollBar* scroll = chatArea->verticalScrollBar();
|
||||
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
||||
author->setAlignment(Qt::AlignTop | Qt::AlignRight);
|
||||
@ -221,7 +221,7 @@ void ChatForm::onFileRecvRequest(ToxFile file)
|
||||
if (file.friendId != f->friendId)
|
||||
return;
|
||||
QLabel *author = new QLabel(f->getName());
|
||||
QLabel *date = new QLabel(QTime::currentTime().toString("mm:ss"));
|
||||
QLabel *date = new QLabel(QTime::currentTime().toString("hh:mm"));
|
||||
QScrollBar* scroll = chatArea->verticalScrollBar();
|
||||
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
||||
author->setAlignment(Qt::AlignTop | Qt::AlignRight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user