Improve stack widget ui

This commit is contained in:
itayc0hen 2019-12-06 18:35:03 +02:00 committed by Itay Cohen
parent ccd8e86052
commit 489b89dc7c

View File

@ -19,7 +19,9 @@ StackWidget::StackWidget(MainWindow *main, QAction *action) :
// Setup stack model // Setup stack model
viewStack->setFont(Config()->getFont()); viewStack->setFont(Config()->getFont());
viewStack->setModel(modelStack); viewStack->setModel(modelStack);
viewStack->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
viewStack->verticalHeader()->hide(); viewStack->verticalHeader()->hide();
viewStack->setShowGrid(false);
viewStack->setSortingEnabled(true); viewStack->setSortingEnabled(true);
viewStack->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); viewStack->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
ui->verticalLayout->addWidget(viewStack); ui->verticalLayout->addWidget(viewStack);