summaryrefslogtreecommitdiffstats
path: root/framework/src/webengineprofile.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-22 20:19:53 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-22 20:19:53 -0600
commitdfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd (patch)
treedf28c8dc60e9718e12093425497268b5021a0a1d /framework/src/webengineprofile.h
parent2844ef37db4c498f39ba9804483831a27b8aa412 (diff)
downloadkube-dfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd.tar.gz
kube-dfa1c2dab99115a1ad97f4e2e93ac07e2d0705fd.zip
Install the webengineprofile as singleton
This fixes the bug that the main process would hang on exit as long as we have a requestinterceptor installed. It's most likely a bug that this does not work, but the new solution anyways cleans up the code a bit, so that's a nice sideeffect. Fixes T5570
Diffstat (limited to 'framework/src/webengineprofile.h')
-rw-r--r--framework/src/webengineprofile.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/framework/src/webengineprofile.h b/framework/src/webengineprofile.h
new file mode 100644
index 00000000..16cea88b
--- /dev/null
+++ b/framework/src/webengineprofile.h
@@ -0,0 +1,28 @@
1/*
2 Copyright (c) 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#include <QQuickWebEngineProfile>
21
22class WebEngineProfile : public QQuickWebEngineProfile
23{
24 Q_OBJECT
25public:
26 WebEngineProfile(QObject *parent = nullptr);
27};
28