Commit ac91125b authored by luyikei's avatar luyikei

Timeline: Don't use singleton

parent 48a5ba61
......@@ -129,6 +129,7 @@ MainWindow::~MainWindow()
m_projectPreview->stop();
m_clipPreview->stop();
delete m_importController;
delete m_timeline;
}
void
......
......@@ -29,8 +29,6 @@
#include <QtQml/QQmlContext>
#include <QUrl>
Timeline* Timeline::m_instance = nullptr;
Timeline::Timeline( MainWindow* parent )
: QObject( parent )
, m_view( new QQuickView )
......
......@@ -68,7 +68,6 @@ protected:
virtual void changeEvent( QEvent *e ) { Q_UNUSED( e ) }
private:
static Timeline* m_instance;
QQuickView* m_view;
QWidget* m_container;
};
......
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