From 80e2c7a47b51a09247c86b220be4abcf298e3f69 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 29 Aug 2018 14:10:36 +0200 Subject: WebUI example: Reduce duplications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Declare scheme name and about URL in one place. Change-Id: Id8eb69f2a8516dd21e6abedc2adda828a5a9e18c Reviewed-by: Jüri Valdmann --- examples/webenginewidgets/webui/webuihandler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/webenginewidgets/webui/webuihandler.h') diff --git a/examples/webenginewidgets/webui/webuihandler.h b/examples/webenginewidgets/webui/webuihandler.h index f9d7b91df..f2ac0dcef 100644 --- a/examples/webenginewidgets/webui/webuihandler.h +++ b/examples/webenginewidgets/webui/webuihandler.h @@ -62,6 +62,9 @@ public: void requestStarted(QWebEngineUrlRequestJob *job) override; static void registerUrlScheme(); + + const static QByteArray schemeName; + const static QUrl aboutUrl; }; #endif // !WEBUIHANDLER_H -- cgit v1.2.1