X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlist.h;h=b944eea1425c8ce91d24d6d1ec4939c5cdb1477a;hb=ac8c99168f151e2f351043d13500741ce1ca8966;hp=f1313809164d32924d0e3b657baeee8d21b43264;hpb=b01ea4492797423d21852d87ee942bb4b15783b6;p=kdenlive diff --git a/src/projectlist.h b/src/projectlist.h index f1313809..b944eea1 100644 --- a/src/projectlist.h +++ b/src/projectlist.h @@ -174,7 +174,7 @@ public: painter->setFont(font); QString subText = index.data(DurationRole).toString(); int usage = index.data(UsageRole).toInt(); - if (usage != 0) subText.append(QString(" (%1)").arg(usage)); + if (usage != 0) subText.append(QString::fromLatin1(" (%1)").arg(usage)); QRectF bounding; painter->drawText(r2, Qt::AlignLeft | Qt::AlignVCenter , subText, &bounding); int jobProgress = index.data(Qt::UserRole + 5).toInt(); @@ -202,7 +202,7 @@ public: } else if (jobProgress == JOBCRASHED) { QString jobText = index.data(Qt::UserRole + 7).toString(); if (!jobText.isEmpty()) { - QRectF txtBounding = painter->boundingRect(r2, Qt::AlignRight | Qt::AlignVCenter, " " + jobText + " "); + QRectF txtBounding = painter->boundingRect(r2, Qt::AlignRight | Qt::AlignVCenter, QLatin1Char(' ') + jobText + QLatin1Char(' ') ); painter->setPen(Qt::NoPen); painter->setBrush(option.palette.highlight()); painter->drawRoundedRect(txtBounding, 2, 2); @@ -298,7 +298,7 @@ public: void updatePalette(); public slots: - void updateAllClips(bool displayRatioChanged, bool fpsChanged, QStringList brokenClips); + void updateAllClips(bool displayRatioChanged, bool fpsChanged, const QStringList &brokenClips); void slotReplyGetImage(const QString &clipId, const QImage &img); void slotReplyGetImage(const QString &clipId, const QString &name, int width, int height); void slotReplyGetFileProperties(const QString &clipId, Mlt::Producer *producer, const stringMap &properties, const stringMap &metadata, bool replace); @@ -319,7 +319,7 @@ public slots: /** @brief Adds, edits or deletes a folder item. * * This is triggered by AddFolderCommand and EditFolderCommand. */ - void slotAddFolder(const QString foldername, const QString &clipId, bool remove, bool edit = false); + void slotAddFolder(const QString &foldername, const QString &clipId, bool remove, bool edit = false); void slotResetProjectList(); void slotOpenClip(); void slotEditClip();