Commit 0b245ba5 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix HUD Dialogs text alignment

parent a841445f
......@@ -379,8 +379,10 @@ Q_DECL_UNUSED static void paintItemViewText(QPainter *p, const QString &text, co
textLayout.endLayout();
int y = QStyle::alignedRect(Qt::LayoutDirectionAuto, Qt::AlignVCenter, textLayout.boundingRect().size().toSize(), options.rect).y();
// draw the text
const auto pos = QPointF(options.rect.x(), options.rect.y());
const auto pos = QPointF(options.rect.x(), y);
textLayout.draw(p, pos);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment