Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
6935d476
Commit
6935d476
authored
Jul 20, 2020
by
Sashmita Raghav
Browse files
Add header files
parent
3f0ee4cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/model/subtitlemodel.cpp
View file @
6935d476
#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
...
...
src/doc/kdenlivedoc.h
View file @
6935d476
...
...
@@ -33,6 +33,7 @@
#include <qdom.h>
#include <kautosavefile.h>
#include "../bin/model/subtitlemodel.hpp"
#include "definitions.h"
#include "gentime.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment