| 190 | } |
| 191 | |
| 192 | QIcon CFrmWebView::favIcon() const |
| 193 | { |
| 194 | QIcon favIcon = icon(); |
| 195 | if (!favIcon.isNull()) |
| 196 | return favIcon; |
| 197 | |
| 198 | if (m_loadProgress < 0) { |
| 199 | static QIcon errorIcon("dialog-error"); |
| 200 | return errorIcon; |
| 201 | } |
| 202 | if (m_loadProgress < 100) { |
| 203 | static QIcon loadingIcon = QIcon::fromTheme("view-refresh"); |
| 204 | return loadingIcon; |
| 205 | } |
| 206 | |
| 207 | static QIcon defaultIcon("text-html"); |
| 208 | return defaultIcon; |
| 209 | } |
| 210 | |
| 211 | QWebEngineView *CFrmWebView::createWindow(QWebEnginePage::WebWindowType type) |
| 212 | { |
no outgoing calls
no test coverage detected