X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectitem.cpp;h=6b5f573e6e0b711d368e85193d3cb42086364c1d;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=7b4591e068e50b1e2172c0ee44e64eec0769c3e1;hpb=e0fa1332f109b6455207ea701da386b2fddddf09;p=kdenlive diff --git a/src/projectitem.cpp b/src/projectitem.cpp index 7b4591e0..6b5f573e 100644 --- a/src/projectitem.cpp +++ b/src/projectitem.cpp @@ -54,7 +54,7 @@ ProjectItem::ProjectItem(QTreeWidgetItem * parent, DocClipBase *clip, const QSiz buildItem(pixmapSize); } -void ProjectItem::buildItem(QSize pixmapSize) +void ProjectItem::buildItem(const QSize &pixmapSize) { setSizeHint(0, QSize(itemHeight * 3, itemHeight)); if (m_clip->isPlaceHolder()) setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDropEnabled); @@ -154,7 +154,7 @@ void ProjectItem::changeDuration(int frames) setData(0, DurationRole, itemdata + Timecode::getEasyTimecode(GenTime(frames, KdenliveSettings::project_fps()), KdenliveSettings::project_fps())); } -void ProjectItem::setProperties(QMap props) +void ProjectItem::setProperties(const QMap &props) { if (m_clip == NULL) return; m_clip->setProperties(props);