Set minimum height for parts list.

This commit is contained in:
Leonardo Zide 2019-05-11 16:07:27 -07:00
parent edc2d70cb0
commit d793373923

View file

@ -570,13 +570,17 @@ void lcPartSelectionListView::UpdateViewMode()
void lcPartSelectionListView::SetIconSize(int Size)
{
setIconSize(QSize(Size, Size));
int Width = Size + 2 * frameWidth() + 6;
if (verticalScrollBar())
Width += verticalScrollBar()->sizeHint().width();
setMinimumWidth(Width);
lcSetProfileInt(LC_PROFILE_PARTS_LIST_ICONS, Size);
mListModel->SetIconSize(Size);
UpdateViewMode();
int Width = Size + 2 * frameWidth() + 6;
if (verticalScrollBar())
Width += verticalScrollBar()->sizeHint().width();
int Height = Size + 2 * frameWidth() + 2;
if (horizontalScrollBar())
Height += horizontalScrollBar()->sizeHint().height();
setMinimumSize(Width, Height);
}
void lcPartSelectionListView::startDrag(Qt::DropActions SupportedActions)