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

Function getDefaultTextColorString

lib/utils/status-control.cpp:66–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static QString getDefaultTextColorString()
67{
68 static QString defaultColorString;
69 static bool cacheReady = false;
70
71 if (cacheReady) {
72 return defaultColorString;
73 }
74
75 QLabel tempWidget;
76 const auto defaultColor =
77 tempWidget.palette().brush(QPalette::Text).color();
78 defaultColorString = colorToString(defaultColor);
79
80 cacheReady = true;
81 return defaultColorString;
82}
83
84StatusControl::StatusControl(QWidget *parent, bool noLayout)
85 : QWidget(parent),

Callers 1

SetStatusStyleSheetMethod · 0.85

Calls 1

colorToStringFunction · 0.85

Tested by

no test coverage detected