Fixed bug with resizing QListWidget (black space).

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-08 18:20:01 +03:00
parent 0e5cb30801
commit 85d088179b

View File

@ -46,15 +46,19 @@ TapeConfigDialog::TapeConfigDialog(QWidget *parent)
canselButton(nullptr), canselButton(nullptr),
okButton(nullptr) okButton(nullptr)
{ {
this->setMaximumHeight(300);
contentsWidget = new QListWidget; contentsWidget = new QListWidget;
contentsWidget->setViewMode(QListView::IconMode); contentsWidget->setViewMode(QListView::IconMode);
contentsWidget->setIconSize(QSize(96, 84)); contentsWidget->setIconSize(QSize(96, 84));
contentsWidget->setMovement(QListView::Static); contentsWidget->setMovement(QListView::Static);
contentsWidget->setMaximumWidth(128); contentsWidget->setMaximumWidth(130);
contentsWidget->setMinimumHeight(250); contentsWidget->setMinimumWidth(130);
contentsWidget->setMinimumHeight(260);
contentsWidget->setSpacing(12); contentsWidget->setSpacing(12);
pagesWidget = new QStackedWidget; pagesWidget = new QStackedWidget;
pagesWidget->setMinimumWidth(550);
configurationPage = new TapeConfigurationPage(); configurationPage = new TapeConfigurationPage();
pagesWidget->addWidget(configurationPage); pagesWidget->addWidget(configurationPage);