| 174 | } |
| 175 | |
| 176 | void 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 | |
| 193 | StatusDockWidget::StatusDockWidget(QWidget *parent) : QFrame(parent) |
| 194 | { |
nothing calls this directly
no test coverage detected