1
0
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:
Michail Vourlakos 2021-05-26 19:29:47 +03:00
parent 0d5c63f31d
commit 648099f746

View File

@ -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);
}