From 489b89dc7c9279362b798ecf7d705ea81da9de75 Mon Sep 17 00:00:00 2001 From: itayc0hen Date: Fri, 6 Dec 2019 18:35:03 +0200 Subject: [PATCH] Improve stack widget ui --- src/widgets/StackWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/StackWidget.cpp b/src/widgets/StackWidget.cpp index 2c9755bd..3627d3bb 100644 --- a/src/widgets/StackWidget.cpp +++ b/src/widgets/StackWidget.cpp @@ -19,7 +19,9 @@ StackWidget::StackWidget(MainWindow *main, QAction *action) : // Setup stack model viewStack->setFont(Config()->getFont()); viewStack->setModel(modelStack); + viewStack->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); viewStack->verticalHeader()->hide(); + viewStack->setShowGrid(false); viewStack->setSortingEnabled(true); viewStack->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); ui->verticalLayout->addWidget(viewStack);