MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / sizeFromContents

Method sizeFromContents

tests/test_editor.cpp:1150–1158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected