Commit de2f7604 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Using float for clip begin and end (so that matches vlc's position)

parent c3c2933d
......@@ -26,7 +26,7 @@
#include "Clip.h"
Clip::Clip( Media* parent ) : m_parent( parent ), m_begin( 0 ), m_end( Clip::UntilEndOfMedia )
Clip::Clip( Media* parent ) : m_parent( parent ), m_begin( 0.0f ), m_end( Clip::UntilEndOfMedia )
{
init();
}
......@@ -46,12 +46,12 @@ void Clip::init()
computeLength();
}
qint64 Clip::getBegin() const
float Clip::getBegin() const
{
return m_begin;
}
qint64 Clip::getEnd() const
float Clip::getEnd() const
{
return m_end;
}
......
......@@ -38,14 +38,14 @@ class Clip : public QObject
Q_OBJECT
public:
static const qint64 UntilEndOfMedia = -1;
static const float UntilEndOfMedia = -1.0;
Clip( Media* parent );
Clip( Clip* creator, qint64 begin, qint64 end );
virtual ~Clip();
qint64 getBegin() const;
qint64 getEnd() const;
float getBegin() const;
float getEnd() const;
qint64 getLength() const;
Media* getParent();
const QUuid& getUuid() const;
......@@ -55,8 +55,8 @@ class Clip : public QObject
void init();
Media* m_parent;
qint64 m_begin;
qint64 m_end;
float m_begin;
float m_end;
qint64 m_length;
QUuid m_uuid;
};
......
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