MCPcopy Create free account
hub / github.com/KDE/labplot / loadStylesheet

Method loadStylesheet

src/3rdparty/Qt-Advanced-Docking-System/src/DockManager.cpp:203–220  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

201
202//============================================================================
203void 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//============================================================================

Callers 1

CDockManagerMethod · 0.80

Calls 3

initResourceFunction · 0.85
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected