MCPcopy Create free account
hub / github.com/KDAB/GammaRay / sizeHint

Method sizeHint

ui/sidepane.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53SidePane::~SidePane() = default;
54
55QSize SidePane::sizeHint() const
56{
57 static const int widthMargin = 10;
58
59 if (!model())
60 return QSize(0, 0);
61
62 const int width = sizeHintForColumn(0) + widthMargin;
63 const int height = QListView::sizeHint().height();
64
65 return { width, height };
66}
67
68void SidePane::setModel(QAbstractItemModel *model)
69{

Callers 1

showPopupMethod · 0.45

Calls 1

QSizeClass · 0.85

Tested by

no test coverage detected