diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2021-06-08 16:28:58 +0200 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2021-06-10 18:28:52 +0200 |
commit | 740b8c94f27930a33298c81c2284d1f0a9e2f11b (patch) | |
tree | 097150a08452efb33444b3228111fd02679dddf7 /examples/webengine/minimal | |
parent | b8804bf868c9f9b18a8b1caa9f512659113ddb98 (diff) | |
download | qtwebengine-740b8c94f27930a33298c81c2284d1f0a9e2f11b.tar.gz |
Fix some compiler warnings
- Remove deprecated Qt::AA_EnableHighDpiScaling and Qt::AA_UseHighDpiPixmaps
from examples. High-DPI scaling is always enabled.
- Reorder initialization of members of QWebEngineDownloadRequestPrivate.
Also remove m_ prefix from public members' name.
- Remove unused parameters from methods of DummyDelegate.
- Add missing overrides in auto tests.
Pick-to: 6.2
Change-Id: I18d6973b8bee574b37b73fbaaa8d57002ac8ba2d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webengine/minimal')
-rw-r--r-- | examples/webengine/minimal/doc/src/minimal.qdoc | 4 | ||||
-rw-r--r-- | examples/webengine/minimal/main.cpp | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/examples/webengine/minimal/doc/src/minimal.qdoc b/examples/webengine/minimal/doc/src/minimal.qdoc index 4fc62bddb..1e629f689 100644 --- a/examples/webengine/minimal/doc/src/minimal.qdoc +++ b/examples/webengine/minimal/doc/src/minimal.qdoc @@ -56,10 +56,6 @@ \l{WebEngineProfile::cachePath} and \l{WebEngineProfile::persistentStoragePath}). - We also set the Qt::AA_EnableHighDpiScaling attribute. This lets the web - view automatically scale on high-dpi displays. Then we instantiate a - QGuiApplication object. - Next, we call \l{QtWebEngine::initialize}, which makes sure that OpenGL contexts can be shared between the main process and the dedicated renderer process (\c QtWebEngineProcess). This method needs to be called before diff --git a/examples/webengine/minimal/main.cpp b/examples/webengine/minimal/main.cpp index 86109f97a..fde716451 100644 --- a/examples/webengine/minimal/main.cpp +++ b/examples/webengine/minimal/main.cpp @@ -55,7 +55,6 @@ int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName("QtExamples"); - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QtWebEngine::initialize(); QGuiApplication app(argc, argv); |