Skip to content

Commit

Permalink
Fix unwanted file list resizing
Browse files Browse the repository at this point in the history
When the last file was closed, the file list would change size to
only take up a small part of the screen, due to incorrect stretch
parameters being passed in.
  • Loading branch information
Colin Ward authored and hitman-codehq committed Jan 26, 2025
1 parent 11a507d commit 3608c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Qt/QtGadgetTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void CQtGadgetTree::construct(const std::string &a_title)
setColumnCount(1);
setHeaderLabel(a_title.c_str());
setFocusPolicy(Qt::NoFocus);
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);

/* And connect the itemClicked() slot so that we are notified when an item is clicked */
connect(this, SIGNAL(itemClicked(QTreeWidgetItem*, int)), SLOT(itemClicked()));
Expand Down

0 comments on commit 3608c6c

Please sign in to comment.