1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

VerticalTabs: Disable scrollbars in other direction

This commit is contained in:
David Rosca 2018-02-17 17:06:14 +01:00
parent dd3c570c41
commit e5a599ee23
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ TabListView::TabListView(BrowserWindow *window, QWidget *parent)
setFlow(QListView::LeftToRight);
setFocusPolicy(Qt::NoFocus);
setFrameShape(QFrame::NoFrame);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);

View File

@ -41,6 +41,7 @@ TabTreeView::TabTreeView(BrowserWindow *window, QWidget *parent)
setMouseTracking(true);
setFocusPolicy(Qt::NoFocus);
setFrameShape(QFrame::NoFrame);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
setIndentation(0);