X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlist.h;h=993501f0c5dd4da7c8d30cd88d042b3463fa00a0;hb=459decee5e330552ef73b7cb363dbbe38fdc7e87;hp=55ceaafc78759ea9d0984d53f3ce7f34bc2176df;hpb=74de34413d4c59b225533ab3cf3e28ab5dd12df9;p=kdenlive diff --git a/src/projectlist.h b/src/projectlist.h index 55ceaafc..993501f0 100644 --- a/src/projectlist.h +++ b/src/projectlist.h @@ -33,6 +33,7 @@ #include #include +#include #ifdef NEPOMUK #include @@ -79,6 +80,12 @@ public: } QStyleOptionViewItemV2 opt = setOptions(index, option); QPixmap pixmap = decoration(opt, index.data(Qt::DecorationRole)); + if ((index.flags() & (Qt::ItemIsDragEnabled)) == false) { + KIcon icon("dialog-close"); + QPainter p(&pixmap); + p.drawPixmap(1, 1, icon.pixmap(16, 16)); + p.end(); + } QRect decorationRect = pixmap.rect(); //QRect(QPoint(0, 0), option.decorationSize).intersected(pixmap.rect()); const int textMargin = QApplication::style()->pixelMetric(QStyle::PM_FocusFrameHMargin) + 1; decorationRect.moveTo(r1.topLeft() + QPoint(0, 1));