setAcceptsHoverEvents(true);
connect(this , SIGNAL(prepareAudioThumb(double, int, int, int)) , this, SLOT(slotPrepareAudioThumb(double, int, int, int)));
- setBrush(QColor(141, 166, 215));
if (m_clipType == VIDEO || m_clipType == AV || m_clipType == SLIDESHOW || m_clipType == PLAYLIST) {
+ setBrush(QColor(141, 166, 215));
m_hasThumbs = true;
startThumbTimer = new QTimer(this);
startThumbTimer->setSingleShot(true);
colour = colour.replace(0, 2, "#");
setBrush(QColor(colour.left(7)));
} else if (m_clipType == IMAGE || m_clipType == TEXT) {
+ setBrush(QColor(141, 166, 215));
m_startPix = KThumb::getImage(KUrl(clip->getProperty("resource")), (int)(KdenliveSettings::trackheight() * KdenliveSettings::project_display_ratio()), KdenliveSettings::trackheight());
m_endPix = m_startPix;
} else if (m_clipType == AUDIO) {
+ setBrush(QColor(141, 215, 166));
connect(clip, SIGNAL(gotAudioData()), this, SLOT(slotGotAudioData()));
}
}
QColor paintColor;
if (parentItem()) paintColor = QColor(255, 248, 149);
else paintColor = brush().color();
- if (isSelected() || parentItem() && parentItem()->isSelected()) paintColor = paintColor.darker();
+ if (isSelected() || (parentItem() && parentItem()->isSelected())) paintColor = paintColor.darker();
QRectF br = rect();
QRectF exposed = option->exposedRect;
QRectF mapped = painter->matrix().mapRect(br);
//Fill clip rectangle
QRectF bgRect = br;
bgRect.setLeft(br.left() + xoffset);
- if (m_clipType == AUDIO || isAudioOnly()) paintColor.setAlpha(80);
painter->fillRect(bgRect, paintColor);
//painter->setClipPath(resultClipPath, Qt::IntersectClip);
void ClipItem::setAudioOnly(bool force)
{
m_audioOnly = force;
+ if (m_audioOnly) setBrush(QColor(141, 215, 166));
+ else setBrush(QColor(141, 166, 215));
}
bool ClipItem::isAudioOnly() const