From b8a78abe06bc841e781d93022848cad3f7fa9bb5 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 11 Dec 2010 15:01:01 +0000 Subject: [PATCH] Don't wrap text in the loading indicator. Fixes issue #1028 --- src/widgets/multiloadingindicator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/multiloadingindicator.cpp b/src/widgets/multiloadingindicator.cpp index 9749ae61c..cf91b92b2 100644 --- a/src/widgets/multiloadingindicator.cpp +++ b/src/widgets/multiloadingindicator.cpp @@ -81,5 +81,6 @@ void MultiLoadingIndicator::paintEvent(QPaintEvent*) { kVerticalPadding, width() - kHorizontalPadding*2 - spinner_->sizeHint().width() - kSpacing, height() - kVerticalPadding*2); - p.drawText(text_rect, fontMetrics().elidedText(text_, Qt::ElideRight, text_rect.width())); + p.drawText(text_rect, Qt::TextSingleLine | Qt::AlignLeft, + fontMetrics().elidedText(text_, Qt::ElideRight, text_rect.width())); }