summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qtabbar_p.h
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-11-17 12:22:11 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-11-17 12:22:11 (GMT)
commit4c7d869bc103de36b5a97dd50f323f7af680656e (patch)
tree4a97b51a7678ad0fd220ae47d97d6ed1e806ad4f /src/gui/widgets/qtabbar_p.h
parent5c4fce677e58b17fdc7ee19803b9939f56530b06 (diff)
downloadQt-4c7d869bc103de36b5a97dd50f323f7af680656e.zip
Qt-4c7d869bc103de36b5a97dd50f323f7af680656e.tar.gz
Qt-4c7d869bc103de36b5a97dd50f323f7af680656e.tar.bz2
Fix for tabwidget elidemode being overriden by stylesheet
Setting a stylesheet or reparenting a widget into a widget using style sheet would cause the elidemode to be reset. Instead we now keep the elidemode whenever it has been explicitly set by the user rather than querying from the style again. Task-number: QT-1914 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/widgets/qtabbar_p.h')
-rw-r--r--src/gui/widgets/qtabbar_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qtabbar_p.h b/src/gui/widgets/qtabbar_p.h
index 9f3285b..2854cde 100644
--- a/src/gui/widgets/qtabbar_p.h
+++ b/src/gui/widgets/qtabbar_p.h
@@ -75,7 +75,7 @@ class QTabBarPrivate : public QWidgetPrivate
public:
QTabBarPrivate()
:currentIndex(-1), pressedIndex(-1), shape(QTabBar::RoundedNorth), layoutDirty(false),
- drawBase(true), scrollOffset(0), expanding(true), closeButtonOnTabs(false),
+ drawBase(true), scrollOffset(0), elideModeSetByUser(false), expanding(true), closeButtonOnTabs(false),
selectionBehaviorOnRemove(QTabBar::SelectRightTab), paintWithOffsets(true), movable(false),
dragInProgress(false), documentMode(false), movingTab(0)
#ifdef Q_WS_MAC
@@ -186,6 +186,7 @@ public:
void makeVisible(int index);
QSize iconSize;
Qt::TextElideMode elideMode;
+ bool elideModeSetByUser;
bool useScrollButtons;
bool expanding;