summaryrefslogtreecommitdiff
path: root/examples/webenginewidgets/simplebrowser/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webenginewidgets/simplebrowser/webview.cpp')
-rw-r--r--examples/webenginewidgets/simplebrowser/webview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/webenginewidgets/simplebrowser/webview.cpp b/examples/webenginewidgets/simplebrowser/webview.cpp
index 16a58ce6c..c8dccdf14 100644
--- a/examples/webenginewidgets/simplebrowser/webview.cpp
+++ b/examples/webenginewidgets/simplebrowser/webview.cpp
@@ -17,6 +17,8 @@
#include <QTimer>
#include <QStyle>
+using namespace Qt::StringLiterals;
+
WebView::WebView(QWidget *parent)
: QWebEngineView(parent)
, m_loadProgress(100)
@@ -147,13 +149,13 @@ QIcon WebView::favIcon() const
return favIcon;
if (m_loadProgress < 0) {
- static QIcon errorIcon(QStringLiteral(":dialog-error.png"));
+ static QIcon errorIcon(u":dialog-error.png"_s);
return errorIcon;
} else if (m_loadProgress < 100) {
- static QIcon loadingIcon(QStringLiteral(":view-refresh.png"));
+ static QIcon loadingIcon(u":view-refresh.png"_s);
return loadingIcon;
} else {
- static QIcon defaultIcon(QStringLiteral(":text-html.png"));
+ static QIcon defaultIcon(u":text-html.png"_s);
return defaultIcon;
}
}