summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-05-06 14:52:03 +0200
committerjasplin <qt-info@nokia.com>2009-05-06 14:57:58 +0200
commit4395513385ed639e54b1ebf5c0f1a919f9a9622b (patch)
tree43253c701b93f1ebf0b5ac1868422cb2e951e58b /src/gui/widgets
parentda1416cef6b1d24156739ded101df895ee4e80d9 (diff)
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/gui/widgets')
-rw-r--r--src/gui/widgets/qtabbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp
index b562b1fb28..69221bacdb 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();
}