MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / getHorizontalScrollBarHeight

Function getHorizontalScrollBarHeight

lib/utils/ui-helpers.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static int getHorizontalScrollBarHeight(QListWidget *list)
49{
50 if (!list) {
51 return 0;
52 }
53 auto horizontalScrollBar = list->horizontalScrollBar();
54 if (!horizontalScrollBar || !horizontalScrollBar->isVisible()) {
55 return 0;
56 }
57 return horizontalScrollBar->height();
58}
59
60void SetHeightToContentHeight(QListWidget *list)
61{

Callers 1

SetHeightToContentHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected