| 175 | } |
| 176 | |
| 177 | QIcon 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 | |
| 195 | QWebEngineView *WebView::createWindow(QWebEnginePage::WebWindowType type) |
| 196 | { |
no outgoing calls
no test coverage detected