MCPcopy Create free account
hub / github.com/YACReader/yacreader / setUpDefaultLayout

Method setUpDefaultLayout

YACReaderLibrary/empty_container_info.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24QVBoxLayout *EmptyContainerInfo::setUpDefaultLayout(bool addStretch)
25{
26 auto layout = new QVBoxLayout;
27
28 layout->addSpacing(100);
29 layout->addWidget(iconLabel);
30 layout->addSpacing(30);
31 layout->addWidget(titleLabel);
32 if (addStretch)
33 layout->addStretch();
34
35 setLayout(layout);
36 return layout;
37}
38
39void EmptyContainerInfo::paintEvent(QPaintEvent *)
40{

Callers

nothing calls this directly

Calls 1

addSpacingMethod · 0.80

Tested by

no test coverage detected