| 64 | } |
| 65 | |
| 66 | static 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 | |
| 84 | StatusControl::StatusControl(QWidget *parent, bool noLayout) |
| 85 | : QWidget(parent), |
no test coverage detected