From 85d088179b43a92f0d8fd2e04579174bfa0290d8 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 8 Oct 2015 18:20:01 +0300 Subject: [PATCH] Fixed bug with resizing QListWidget (black space). --HG-- branch : develop --- src/app/tape/dialogs/tapeconfigdialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/tape/dialogs/tapeconfigdialog.cpp b/src/app/tape/dialogs/tapeconfigdialog.cpp index ce28b15ec..1c1c3eff3 100644 --- a/src/app/tape/dialogs/tapeconfigdialog.cpp +++ b/src/app/tape/dialogs/tapeconfigdialog.cpp @@ -46,15 +46,19 @@ TapeConfigDialog::TapeConfigDialog(QWidget *parent) canselButton(nullptr), okButton(nullptr) { + this->setMaximumHeight(300); + contentsWidget = new QListWidget; contentsWidget->setViewMode(QListView::IconMode); contentsWidget->setIconSize(QSize(96, 84)); contentsWidget->setMovement(QListView::Static); - contentsWidget->setMaximumWidth(128); - contentsWidget->setMinimumHeight(250); + contentsWidget->setMaximumWidth(130); + contentsWidget->setMinimumWidth(130); + contentsWidget->setMinimumHeight(260); contentsWidget->setSpacing(12); pagesWidget = new QStackedWidget; + pagesWidget->setMinimumWidth(550); configurationPage = new TapeConfigurationPage(); pagesWidget->addWidget(configurationPage);