Commit d374d877 authored by Nicolas Carion's avatar Nicolas Carion

remove binController from timeline view classes

parent 46c0ed1e
......@@ -31,7 +31,7 @@
TimelineTabs::TimelineTabs(QWidget *parent)
: QTabWidget(parent)
, m_mainTimeline(new TimelineWidget(pCore->window()->actionCollection(), pCore->binController(), this))
, m_mainTimeline(new TimelineWidget(pCore->window()->actionCollection(), this))
{
setTabBarAutoHide(true);
setTabsClosable(true);
......
......@@ -47,9 +47,8 @@
const int TimelineWidget::comboScale[] = {1, 2, 5, 10, 25, 50, 125, 250, 500, 750, 1500, 3000, 6000, 12000};
TimelineWidget::TimelineWidget(KActionCollection *actionCollection, std::shared_ptr<BinController> binController, QWidget *parent)
TimelineWidget::TimelineWidget(KActionCollection *actionCollection, QWidget *parent)
: QQuickWidget(parent)
, m_binController(binController)
{
registerTimelineItems();
m_transitionModel = TransitionTreeModel::construct(true, this);
......
......@@ -24,7 +24,6 @@
#include "assets/assetlist/model/assetfilter.hpp"
#include "assets/assetlist/model/assettreemodel.hpp"
#include "mltcontroller/bincontroller.h"
#include "timeline2/model/timelineitemmodel.hpp"
#include <QQuickWidget>
......@@ -38,7 +37,7 @@ class TimelineWidget : public QQuickWidget
Q_OBJECT
public:
TimelineWidget(KActionCollection *actionCollection, std::shared_ptr<BinController> binController, QWidget *parent = Q_NULLPTR);
TimelineWidget(KActionCollection *actionCollection, QWidget *parent = Q_NULLPTR);
~TimelineWidget();
/* @brief Sets the model shown by this widget */
void setModel(std::shared_ptr<TimelineItemModel> model);
......@@ -59,7 +58,6 @@ public slots:
void zoneUpdated(const QPoint &zone);
private:
std::shared_ptr<BinController> m_binController;
ThumbnailProvider *m_thumbnailer;
TimelineController *m_proxy;
static const int comboScale[];
......
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