diff --git a/src/style/adwaita.cpp b/src/style/adwaita.cpp index f751d50..700bd97 100644 --- a/src/style/adwaita.cpp +++ b/src/style/adwaita.cpp @@ -1675,9 +1675,15 @@ QSize Adwaita::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt case CT_MenuItem: { return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget) + QSize(24, 0); } + + // FIXME: is it necessary to set MenuBar size? Height should be already set by MenuBarItem to 30px and setting + // width to 30px doesn't really make sense to me. Resolves: https://github.com/MartinBriza/adwaita-qt/issues/34 + + /* case CT_MenuBar: { return QSize(30, 30); } + */ case CT_ComboBox: { return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget) + QSize(4, 6); }