MCPcopy Create free account
hub / github.com/KDE/kdevelop / ViewBarStackedLayout

Class ViewBarStackedLayout

kdevplatform/sublime/viewbarcontainer.cpp:16–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace {
15
16class ViewBarStackedLayout : public QStackedLayout
17{
18 Q_OBJECT
19
20public:
21 QSize sizeHint() const override
22 {
23 if (currentWidget()) {
24 return currentWidget()->sizeHint();
25 }
26 return QStackedLayout::sizeHint();
27 }
28
29 QSize minimumSize() const override
30 {
31 if (currentWidget()) {
32 return currentWidget()->minimumSize();
33 }
34 return QStackedLayout::minimumSize();
35 }
36};
37
38}
39

Callers

nothing calls this directly

Calls 2

sizeHintFunction · 0.85
sizeHintMethod · 0.45

Tested by

no test coverage detected