X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectitem.cpp;h=6b5f573e6e0b711d368e85193d3cb42086364c1d;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=46ec6989dbd8d14a635ea8a25321e734024458d1;hpb=f0867739c9a788a250a37174e0952e0e96e318b3;p=kdenlive diff --git a/src/projectitem.cpp b/src/projectitem.cpp index 46ec6989..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); @@ -309,7 +309,7 @@ bool ProjectItem::playlistHasProxies(const QString& path) file.close(); QString root = doc.documentElement().attribute("root"); QDomNodeList kdenliveProducers = doc.elementsByTagName("kdenlive_producer"); - for (int i = 0; i < kdenliveProducers.count(); i++) { + for (int i = 0; i < kdenliveProducers.count(); ++i) { QString proxy = kdenliveProducers.at(i).toElement().attribute("proxy"); if (!proxy.isEmpty() && proxy != "-") return true; }