]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.h
Use QLatin1String
[kdenlive] / src / projectlist.h
index f1313809164d32924d0e3b657baeee8d21b43264..b944eea1425c8ce91d24d6d1ec4939c5cdb1477a 100644 (file)
@@ -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();