From 0966a8e90fd331117d15f57452701bf74568bbfc Mon Sep 17 00:00:00 2001 From: Zach H Date: Fri, 13 Nov 2020 15:36:20 -0500 Subject: [PATCH] Fix #566 by allowing for DeckName/Comments to be resized to the max, and even hidden! (#4157) --- cockatrice/src/tab_deck_editor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/tab_deck_editor.cpp b/cockatrice/src/tab_deck_editor.cpp index aab5f2da..bcb46501 100644 --- a/cockatrice/src/tab_deck_editor.cpp +++ b/cockatrice/src/tab_deck_editor.cpp @@ -26,8 +26,6 @@ #include #include #include -#include -#include #include #include #include @@ -89,6 +87,7 @@ void TabDeckEditor::createDeckDock() commentsLabel = new QLabel(); commentsLabel->setObjectName("commentsLabel"); commentsEdit = new QTextEdit; + commentsEdit->setMinimumHeight(nameEdit->minimumSizeHint().height()); commentsEdit->setObjectName("commentsEdit"); commentsLabel->setBuddy(commentsEdit); connect(commentsEdit, SIGNAL(textChanged()), this, SLOT(updateComments())); @@ -147,7 +146,7 @@ void TabDeckEditor::createDeckDock() auto *split = new QSplitter; split->setObjectName("deckSplitter"); split->setOrientation(Qt::Vertical); - split->setChildrenCollapsible(false); + split->setChildrenCollapsible(true); split->addWidget(topWidget); split->addWidget(bottomWidget); split->setStretchFactor(0, 1);