Show scroll buttons on the sidebar when it's bigger than the window. Fixes issue #1061
This commit is contained in:
parent
0aa3cb4308
commit
bb186feda1
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user