svn path=/branches/KDE4/; revision=2137
setFlags(QGraphicsItem::ItemClipsToShape | QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
setTrack(info.track);
m_startPos = info.startPos;
- m_maxDuration = info.endPos - info.startPos;
+ m_cropDuration = info.endPos - info.startPos;
}
void AbstractClipItem::moveTo(int x, double scale, int offset, int newTrack) {
double origX = rect().x();
m_clipType = clip->clipType();
m_cropStart = GenTime();
- m_cropDuration = m_maxDuration;
+ m_maxDuration = m_cropDuration;
setAcceptDrops(true);
audioThumbReady = clip->audioThumbCreated();
/*
m_secondClip = NULL;
m_cropStart = GenTime();
m_fps = fps;
- m_cropDuration = m_maxDuration;
+ m_maxDuration = GenTime(10000, fps);
//m_referenceClip = clipa;
if (params.isNull()) {
QDomDocument doc;