summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-05 18:24:54 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-05-05 18:24:54 (GMT)
commitd32782a91982c50c72aed170f3bab2024ff8b4f3 (patch)
treedadd2a370d5230c5ae5cc1b9f315bf56c9396af6 /src
parent5727fe3657ee311c7b00e174f662464a67ff59bb (diff)
downloadQt-d32782a91982c50c72aed170f3bab2024ff8b4f3.zip
Qt-d32782a91982c50c72aed170f3bab2024ff8b4f3.tar.gz
Qt-d32782a91982c50c72aed170f3bab2024ff8b4f3.tar.bz2
Show text in tabs of a QTabBar while compileing with QT_NO_TABWIDGET
Spotted by looking at the code Reviewed-by: bnilsen
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/qtabbar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp
index 49de8c1..ce1ac09 100644
--- a/src/gui/widgets/qtabbar.cpp
+++ b/src/gui/widgets/qtabbar.cpp
@@ -176,12 +176,11 @@ void QTabBar::initStyleOption(QStyleOptionTab *option, int tabIndex) const
if (tw->cornerWidget(Qt::TopRightCorner) || tw->cornerWidget(Qt::BottomRightCorner))
option->cornerWidgets |= QStyleOptionTab::RightCornerWidget;
}
+#endif
QRect textRect = style()->subElementRect(QStyle::SE_TabBarTabText, option, this);
-
option->text = fontMetrics().elidedText(option->text, d->elideMode, textRect.width(),
Qt::TextShowMnemonic);
-#endif
}
/*!