mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-12 17:17:50 +03:00
viewsdialog:reduce single menu width
This commit is contained in:
parent
0d5c63f31d
commit
648099f746
@ -53,7 +53,7 @@ QSize CustomMenuItemWidget::minimumSizeHint() const
|
||||
QStyleOptionMenuItem opt;
|
||||
QSize contentSize = fontMetrics().size(Qt::TextSingleLine | Qt::TextShowMnemonic, m_action->text());
|
||||
contentSize.setHeight(contentSize.height() + 9);
|
||||
contentSize.setWidth(contentSize.width() + 4 * contentSize.height());
|
||||
contentSize.setWidth(contentSize.width() + 1.5 * contentSize.height());
|
||||
return style()->sizeFromContents(QStyle::CT_MenuItem, &opt, contentSize, this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user