1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(UI): improve unclear message about text being resized in chatform

This commit is contained in:
Zetok Zalbavar 2017-04-02 18:38:27 +01:00
parent a4a5d29b65
commit c8ed535bba
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -173,6 +173,14 @@ ChatMessage::Ptr ChatMessage::createTypingNotification()
return msg;
}
/**
* @brief Create message placeholder while chatform restructures text
*
* It can take a while for chatform to resize large amounts of text, thus
* a message placeholder is needed to inform users about it.
*
* @return created message
*/
ChatMessage::Ptr ChatMessage::createBusyNotification()
{
ChatMessage::Ptr msg = ChatMessage::Ptr(new ChatMessage);
@ -180,7 +188,7 @@ ChatMessage::Ptr ChatMessage::createBusyNotification()
baseFont.setPixelSize(baseFont.pixelSize() + 2);
baseFont.setBold(true);
msg->addColumn(new Text(QObject::tr("Resizing"), baseFont, false, ""),
msg->addColumn(new Text(QObject::tr("Reformatting text in progress.."), baseFont, false, ""),
ColumnFormat(1.0, ColumnFormat::VariableSize, ColumnFormat::Center));
return msg;