MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / favIcon

Method favIcon

src/web/simplebrowser/webview.cpp:177–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177QIcon WebView::favIcon() const
178{
179 QIcon favIcon = icon();
180 if (!favIcon.isNull())
181 return favIcon;
182
183 if (m_loadProgress < 0) {
184 static QIcon errorIcon(QStringLiteral(":dialog-error.png"));
185 return errorIcon;
186 } else if (m_loadProgress < 100) {
187 static QIcon loadingIcon(QStringLiteral(":view-refresh.png"));
188 return loadingIcon;
189 } else {
190 static QIcon defaultIcon(QStringLiteral(":text-html.png"));
191 return defaultIcon;
192 }
193}
194
195QWebEngineView *WebView::createWindow(QWebEnginePage::WebWindowType type)
196{

Callers 2

handleCurrentChangedMethod · 0.80
createBackgroundTabMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected