mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Set minimum parts list width. Fixes #346.
This commit is contained in:
parent
8ca4831003
commit
2e5494c0df
1 changed files with 4 additions and 0 deletions
|
@ -570,6 +570,10 @@ 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();
|
||||
|
|
Loading…
Reference in a new issue