]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.cpp
Make it easier to see the job related thumbnail overlays
[kdenlive] / src / projectlist.cpp
index aea4ddfe0685515c1d3fef2cd451a1dd3b680510..eca508b16bbd4fb1d176bd7f82a8be092784846d 100644 (file)
@@ -1299,11 +1299,14 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
     
     KUrl url = clip->fileURL();
 #ifdef USE_NEPOMUK
-    if (!url.isEmpty() && KdenliveSettings::activate_nepomuk()) {
+    if (!url.isEmpty() && KdenliveSettings::activate_nepomuk() && clip->getProperty("description").isEmpty()) {
         // if file has Nepomuk comment, use it
         Nepomuk::Resource f(url.path());
         QString annotation = f.description();
-        if (!annotation.isEmpty()) item->setText(1, annotation);
+        if (!annotation.isEmpty()) {
+            item->setText(1, annotation);
+            clip->setProperty("description", annotation);
+        }
         item->setText(2, QString::number(f.rating()));
     }
 #endif
@@ -2847,9 +2850,8 @@ void ProjectList::slotProcessJobs()
             if (job->addClipToProject) {
                 emit addClip(destination, QString(), QString());
             }
-        }
-        else if (job->jobStatus == JOBCRASHED) {
-            emit updateJobStatus(job->clipId(), job->jobType, JOBCRASHED, job->errorMessage());
+        } else if (job->jobStatus == JOBCRASHED || job->jobStatus == JOBABORTED) {
+            emit updateJobStatus(job->clipId(), job->jobType, job->jobStatus, job->errorMessage());
         }
     }
     // Thread finished, cleanup & update count
@@ -3095,13 +3097,16 @@ void ProjectList::processThumbOverlays(ProjectItem *item, QPixmap &pix)
     if (item->hasProxy()) {
         QPainter p(&pix);
         QColor c = QPalette().base().color();
-        c.setAlpha(160);
+        c.setAlpha(200);
         QBrush br(c);
         p.setBrush(br);
         p.setPen(Qt::NoPen);
-        QRect r(1, 1, 10, 10);
-        p.drawRect(r);
+        QRect r(1, 1, 15, 15);
+        p.drawRoundedRect(r, 2, 2);
         p.setPen(QPalette().text().color());
+        QFont font = p.font();
+        font.setBold(true);
+        p.setFont(font);
         p.drawText(r, Qt::AlignCenter, i18nc("The first letter of Proxy, used as abbreviation", "P"));
     }
 }