Commit 1d1c509a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Remove useless KF5 check

parent e2c29714
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include "utils/clipboardproxy.hpp" #include "utils/clipboardproxy.hpp"
#include <KDeclarative/KDeclarative> #include <KDeclarative/KDeclarative>
#include <kdeclarative_version.h>
// #include <QUrl> // #include <QUrl>
#include <QAction> #include <QAction>
#include <QQmlContext> #include <QQmlContext>
...@@ -56,12 +55,8 @@ TimelineWidget::TimelineWidget(QWidget *parent) ...@@ -56,12 +55,8 @@ TimelineWidget::TimelineWidget(QWidget *parent)
{ {
KDeclarative::KDeclarative kdeclarative; KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine()); kdeclarative.setDeclarativeEngine(engine());
#if KDECLARATIVE_VERSION >= QT_VERSION_CHECK(5, 45, 0)
kdeclarative.setupEngine(engine()); kdeclarative.setupEngine(engine());
kdeclarative.setupContext(); kdeclarative.setupContext();
#else
kdeclarative.setupBindings();
#endif
setClearColor(palette().window().color()); setClearColor(palette().window().color());
registerTimelineItems(); registerTimelineItems();
// Build transition model for context menu // Build transition model for context menu
......
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