MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / insertScrollbarStyleSheet

Function insertScrollbarStyleSheet

src/share/WizWebEngineView.cpp:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void insertScrollbarStyleSheet(QWebEngineProfile *profile)
137{
138 QString strTheme = Utils::WizStyleHelper::themeName();
139 QDir skinFolder = WizGetSkinResourcePath(strTheme);
140 if (skinFolder.exists("webkit_scrollbar.css")) {
141 QString source;
142 bool ok = WizLoadUnicodeTextFromFile(
143 skinFolder.absoluteFilePath("webkit_scrollbar.css"),
144 source, "UTF-8");
145 if (ok)
146 insertStyleSheet(profile, "webkit_scrollbar", source);
147 }
148
149}
150
151WizWebEnginePage::WizWebEnginePage(const WizWebEngineInjectObjectCollection& objects, QWebEngineProfile *profile, QObject* parent)
152 : QWebEnginePage(profile, parent)

Callers 2

WizMainWindowMethod · 0.85
createWebEngineProfileFunction · 0.85

Calls 3

WizGetSkinResourcePathFunction · 0.85
insertStyleSheetFunction · 0.85

Tested by

no test coverage detected