Remove deprecated KF5 call

parent 978b4225
......@@ -34,7 +34,6 @@
#include "core.h"
#include "klocalizedstring.h"
#include "kxmlgui_version.h"
#include "profiles/profilemodel.hpp"
#include <KMessageBox>
#include <KRecentDirs>
......
......@@ -100,9 +100,9 @@ GLWidget::GLWidget(int id, QObject *parent)
, m_ClientWaitSync(nullptr)
{
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(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;
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