Skip to content
Snippets Groups Projects
Commit 4575ffd9 authored by Eike Ziller's avatar Eike Ziller
Browse files

Fix size of fading indicator


In some situations text could be cut off.

Change-Id: Ib7499e679a9a9e048d217306c525b04eaf330967
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent e603cafb
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,7 @@ public:
{
m_pixmap = QPixmap();
m_label->setText(text);
layout()->setSizeConstraint(QLayout::SetFixedSize);
adjustSize();
if (QWidget *parent = parentWidget())
move(parent->rect().center() - rect().center());
......@@ -80,6 +81,7 @@ public:
{
m_label->hide();
m_pixmap.load(Utils::StyleHelper::dpiSpecificImageFile(uri));
layout()->setSizeConstraint(QLayout::SetNoConstraint);
resize(m_pixmap.size() / m_pixmap.devicePixelRatio());
if (QWidget *parent = parentWidget())
move(parent->rect().center() - rect().center());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment