Commit 453cf95a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Remove deprecated KF5 call

parent 978b4225
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "core.h" #include "core.h"
#include "klocalizedstring.h" #include "klocalizedstring.h"
#include "kxmlgui_version.h"
#include "profiles/profilemodel.hpp" #include "profiles/profilemodel.hpp"
#include <KMessageBox> #include <KMessageBox>
#include <KRecentDirs> #include <KRecentDirs>
......
...@@ -100,9 +100,9 @@ GLWidget::GLWidget(int id, QObject *parent) ...@@ -100,9 +100,9 @@ GLWidget::GLWidget(int id, QObject *parent)
, m_ClientWaitSync(nullptr) , m_ClientWaitSync(nullptr)
{ {
KDeclarative::KDeclarative kdeclarative; KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.setupEngine(engine()); kdeclarative.setupEngine(engine());
kdeclarative.setupContext(); KLocalizedContext *localizedContextObject = new KLocalizedContext(engine());
engine()->rootContext()->setContextObject(localizedContextObject);
m_texture[0] = m_texture[1] = m_texture[2] = 0; m_texture[0] = m_texture[1] = m_texture[2] = 0;
qRegisterMetaType<Mlt::Frame>("Mlt::Frame"); qRegisterMetaType<Mlt::Frame>("Mlt::Frame");
......
Markdown is supported
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