void ProjectList::slotUpdateClipProperties(int id, QMap <QString, QString> properties) {
ProjectItem *item = getItemById(id);
if (item) {
- slotUpdateClipProperties(item, properties);
- if (properties.contains("colour")) slotRefreshClipThumbnail(item);
- }
+ slotUpdateClipProperties(item, properties);
+ if (properties.contains("colour") || properties.contains("resource")) slotRefreshClipThumbnail(item);
+ if (properties.contains("out")) item->changeDuration(properties.value("out").toInt());
+ }
}
void ProjectList::slotUpdateClipProperties(ProjectItem *clip, QMap <QString, QString> properties) {
void ProjectList::slotAddSlideshowClip() {
if (!m_commandStack) kDebug() << "!!!!!!!!!!!!!!!! NO CMD STK";
- SlideshowClip *dia = new SlideshowClip();
+ SlideshowClip *dia = new SlideshowClip(this);
if (dia->exec() == QDialog::Accepted) {
int height = 40;
int width = (int)(height * (double) m_render->renderWidth() / m_render->renderHeight());
QPixmap pix = KThumb::getImage(item->toXml(), item->referencedClip()->getProjectThumbFrame(), width, height);
- //QPixmap pix = KThumb::getFrame(item->toXml()), 0, width, height);
+ //QPixmap pix = KThumb::getFrame(item->toXml()), 0, width, height);
item->setIcon(0, pix);
}
}