| 1148 | public: |
| 1149 | using QProxyStyle::QProxyStyle; |
| 1150 | QSize sizeFromContents(ContentsType type, const QStyleOption* opt, |
| 1151 | const QSize& sz, const QWidget* w) const override { |
| 1152 | QSize s = QProxyStyle::sizeFromContents(type, opt, sz, w); |
| 1153 | if (type == CT_MenuBarItem) |
| 1154 | s.setHeight(s.height() + qRound(s.height() * 0.5)); |
| 1155 | if (type == CT_MenuItem) |
| 1156 | s = QSize(s.width() + 24, s.height() + 4); |
| 1157 | return s; |
| 1158 | } |
| 1159 | }; |
| 1160 | |
| 1161 | TestMenuStyle style; |
no outgoing calls
no test coverage detected