Fix text alignment issue with rtl mode

Multi-line text is not currently supported with text eliding
and the current beahvior is that it breaks in reverse mode.
I will simply remove the eliding flag for now.
This commit is contained in:
Jens Bache-Wiig
2010-03-29 13:42:21 +02:00
parent b253675ec8
commit 0af4d51b7a

View File

@@ -276,7 +276,7 @@ void FancyTabBar::paintTab(QPainter *painter, int tabIndex) const
boldFont.setBold(true);
painter->setFont(boldFont);
painter->setPen(selected ? QColor(255, 255, 255, 160) : QColor(0, 0, 0, 110));
int textFlags = Qt::AlignCenter | Qt::AlignBottom | Qt::ElideRight | Qt::TextWordWrap;
int textFlags = Qt::AlignCenter | Qt::AlignBottom | Qt::TextWordWrap;
if (enabled) {
painter->drawText(tabTextRect, textFlags, tabText);
painter->setPen(selected ? QColor(60, 60, 60) : Utils::StyleHelper::panelTextColor());