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

Method SetStatusStyleSheet

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

Source from the content-addressed store, hash-verified

174}
175
176void StatusControl::SetStatusStyleSheet(bool stopped) const
177{
178 auto style = QString("QLabel{ "
179 "background-color: ");
180 if (stopped) {
181 style += getDefaultBackgroundColorString() + "; ";
182 } else {
183 style += "transparent; ";
184 }
185 style += "border-style: outset; "
186 "border-width: 2px; "
187 "border-radius: 7px; "
188 "border-color: " +
189 getDefaultTextColorString() + "; }";
190 _status->setStyleSheet(style);
191}
192
193StatusDockWidget::StatusDockWidget(QWidget *parent) : QFrame(parent)
194{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected