Oops, only set the proxy style on the small sidebar

This commit is contained in:
David Sansome 2010-10-10 13:12:42 +00:00
parent c376ad4217
commit 683b882461
1 changed files with 5 additions and 2 deletions

View File

@ -663,8 +663,11 @@ void FancyTabWidget::MakeTabBar(QTabBar::Shape shape, bool text, bool icons) {
QTabBar* bar = new QTabBar(this);
bar->setShape(shape);
bar->setDocumentMode(true);
bar->setIconSize(QSize(22, 22));
bar->setStyle(proxy_style_.get());
if (shape == QTabBar::RoundedWest) {
bar->setStyle(proxy_style_.get());
bar->setIconSize(QSize(22, 22));
}
if (shape == QTabBar::RoundedNorth)
top_layout_->insertWidget(0, bar);