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);
setData(0, DurationRole, itemdata + Timecode::getEasyTimecode(GenTime(frames, KdenliveSettings::project_fps()), KdenliveSettings::project_fps()));
}
-void ProjectItem::setProperties(QMap <QString, QString> props)
+void ProjectItem::setProperties(const QMap<QString, QString> &props)
{
if (m_clip == NULL) return;
m_clip->setProperties(props);
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;
}