diff options
author | jasplin <qt-info@nokia.com> | 2009-05-06 12:52:03 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-05-06 12:57:58 (GMT) |
commit | 4395513385ed639e54b1ebf5c0f1a919f9a9622b (patch) | |
tree | 43253c701b93f1ebf0b5ac1868422cb2e951e58b /src | |
parent | da1416cef6b1d24156739ded101df895ee4e80d9 (diff) | |
download | Qt-4395513385ed639e54b1ebf5c0f1a919f9a9622b.zip Qt-4395513385ed639e54b1ebf5c0f1a919f9a9622b.tar.gz Qt-4395513385ed639e54b1ebf5c0f1a919f9a9622b.tar.bz2 |
Fixed bug in QTabBar::setTabButton() for a scrolled tab bar.
This fix ensures that the current tab is visible after calling
setTabButton() on a scrolled tab bar.
Reviewed-by: bnilsen
Task-number: 252472
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qtabbar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp index b562b1f..69221ba 100644 --- a/src/gui/widgets/qtabbar.cpp +++ b/src/gui/widgets/qtabbar.cpp @@ -1085,7 +1085,7 @@ void QTabBar::setTabData(int index, const QVariant & data) } /*! - Returns the datad of the tab at position \a index, or a null + Returns the data of the tab at position \a index, or a null variant if \a index is out of range. */ QVariant QTabBar::tabData(int index) const @@ -2222,6 +2222,7 @@ void QTabBar::setTabButton(int index, ButtonPosition position, QWidget *widget) d->tabList[index].rightWidget = widget; } d->layoutTabs(); + d->refresh(); update(); } |