diff options
Diffstat (limited to 'examples/webenginewidgets/simplebrowser/webview.cpp')
-rw-r--r-- | examples/webenginewidgets/simplebrowser/webview.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/webenginewidgets/simplebrowser/webview.cpp b/examples/webenginewidgets/simplebrowser/webview.cpp index e024f9126..e41d4334e 100644 --- a/examples/webenginewidgets/simplebrowser/webview.cpp +++ b/examples/webenginewidgets/simplebrowser/webview.cpp @@ -17,8 +17,6 @@ #include <QTimer> #include <QStyle> -using namespace Qt::StringLiterals; - WebView::WebView(QWidget *parent) : QWebEngineView(parent) { @@ -148,15 +146,16 @@ QIcon WebView::favIcon() const return favIcon; if (m_loadProgress < 0) { - static QIcon errorIcon(u":dialog-error.png"_s); + static QIcon errorIcon(QStringLiteral(":dialog-error.png")); return errorIcon; } + if (m_loadProgress < 100) { - static QIcon loadingIcon(u":view-refresh.png"_s); + static QIcon loadingIcon(QStringLiteral(":view-refresh.png")); return loadingIcon; } - static QIcon defaultIcon(u":text-html.png"_s); + static QIcon defaultIcon(":text-html.png"); return defaultIcon; } |