============================================================================
| 201 | |
| 202 | //============================================================================ |
| 203 | void DockManagerPrivate::loadStylesheet() |
| 204 | { |
| 205 | initResource(); |
| 206 | QString Result; |
| 207 | QString FileName = QStringLiteral(":ads/stylesheets/"); |
| 208 | FileName += CDockManager::testConfigFlag(CDockManager::FocusHighlighting) |
| 209 | ? QStringLiteral("focus_highlighting") : QStringLiteral("default"); |
| 210 | #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) |
| 211 | FileName += QStringLiteral("_linux"); |
| 212 | #endif |
| 213 | FileName += QStringLiteral(".css"); |
| 214 | QFile StyleSheetFile(FileName); |
| 215 | StyleSheetFile.open(QIODevice::ReadOnly); |
| 216 | QTextStream StyleSheetStream(&StyleSheetFile); |
| 217 | Result = StyleSheetStream.readAll(); |
| 218 | StyleSheetFile.close(); |
| 219 | _this->setStyleSheet(Result); |
| 220 | } |
| 221 | |
| 222 | |
| 223 | //============================================================================ |
no test coverage detected