Commit 6935d476 authored by Sashmita Raghav's avatar Sashmita Raghav

Add header files

parent 3f0ee4cb
#include "subtitlemodel.hpp"
#include "core.h"
#include "project/projectmanager.h"
#include "timeline2/model/snapmodel.hpp"
SubtitleModel::SubtitleModel(std::weak_ptr<DocUndoStack> undo_stack, QObject *parent)
: QAbstractListModel(parent)
......@@ -31,7 +31,7 @@ std::shared_ptr<SubtitleModel> SubtitleModel::getModel()
}
void SubtitleModel::parseSubtitle()
{
{ qDebug()<<"Parsing started";
//QModelIndex index;
//int paramName = m_model->data(index, AssetParameterModel::NameRole).toInt();
//QString filename(m_asset->get(paramName.toUtf8().constData()));
......@@ -207,6 +207,7 @@ void SubtitleModel::addSubtitle(GenTime start, GenTime end, QString str)
model->m_subtitleList[start] = {str, end};
model->endInsertRows();
model->addSnapPoint(start);
qDebug()<<"Added to model";
}
QHash<int, QByteArray> SubtitleModel::roleNames() const
......
......@@ -33,6 +33,7 @@
#include <qdom.h>
#include <kautosavefile.h>
#include "../bin/model/subtitlemodel.hpp"
#include "definitions.h"
#include "gentime.h"
......
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