Show scroll buttons on the sidebar when it's bigger than the window. Fixes issue #1061

This commit is contained in:
David Sansome 2010-12-11 12:01:19 +00:00
parent 0aa3cb4308
commit bb186feda1

View File

@ -630,6 +630,8 @@ void FancyTabWidget::SetMode(Mode mode) {
break;
}
tab_bar_->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
mode_ = mode;
emit ModeChanged(mode);
update();
@ -670,6 +672,7 @@ void FancyTabWidget::MakeTabBar(QTabBar::Shape shape, bool text, bool icons,
QTabBar* bar = new QTabBar(this);
bar->setShape(shape);
bar->setDocumentMode(true);
bar->setUsesScrollButtons(true);
if (shape == QTabBar::RoundedWest) {
bar->setIconSize(QSize(22, 22));