Commit cff1ad62 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from deprecated KDeclarative API

parent 56746387
Pipeline #166476 passed with stage
in 2 minutes and 20 seconds
......@@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KCrash>
#include <KDeclarative/KQuickAddons/QuickViewSharedEngine>
#include <KDeclarative/QmlObjectSharedEngine>
#include <KLocalizedContext>
#include <KWindowSystem>
#include <kdeclarative/kdeclarative.h>
......@@ -310,9 +311,8 @@ KQuickAddons::QuickViewSharedEngine *UnlockApp::createViewForScreen(QScreen *scr
});
// first create KDeclarative, to be sure that it created a KIO Network Factory
KDeclarative::KDeclarative declarative;
declarative.setDeclarativeEngine(view->engine());
declarative.setupBindings();
KDeclarative::KDeclarative::setupEngine(view->engine());
view->engine()->rootContext()->setContextObject(new KLocalizedContext(view->engine()));
if (!m_testing) {
if (QX11Info::isPlatformX11()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment