svn path=/trunk/kdenlive/; revision=4076
// Add cut zones
QList <QPoint> cuts = clip->cutZones();
if (!cuts.isEmpty()) {
// Add cut zones
QList <QPoint> cuts = clip->cutZones();
if (!cuts.isEmpty()) {
- m_listView->blockSignals(true);
for (int i = 0; i < cuts.count(); i++) {
SubProjectItem *sub = new SubProjectItem(item, cuts.at(i).x(), cuts.at(i).y());
if (!clip->getClipHash().isEmpty()) {
for (int i = 0; i < cuts.count(); i++) {
SubProjectItem *sub = new SubProjectItem(item, cuts.at(i).x(), cuts.at(i).y());
if (!clip->getClipHash().isEmpty()) {
- m_listView->blockSignals(false);
}
if (getProperties && m_listView->isEnabled()) m_listView->blockSignals(false);
}
if (getProperties && m_listView->isEnabled()) m_listView->blockSignals(false);
void ProjectList::addClipCut(const QString &id, int in, int out)
{
void ProjectList::addClipCut(const QString &id, int in, int out)
{
- //m_doc->slotAddClipCut(id, in, out, groupName, groupId);
ProjectItem *clip = getItemById(id);
if (clip) {
DocClipBase *base = clip->referencedClip();
ProjectItem *clip = getItemById(id);
if (clip) {
DocClipBase *base = clip->referencedClip();
void ProjectList::removeClipCut(const QString &id, int in, int out)
{
void ProjectList::removeClipCut(const QString &id, int in, int out)
{
- //m_doc->slotAddClipCut(id, in, out, groupName, groupId);
ProjectItem *clip = getItemById(id);
if (clip) {
DocClipBase *base = clip->referencedClip();
ProjectItem *clip = getItemById(id);
if (clip) {
DocClipBase *base = clip->referencedClip();
if ((columnAt(event->pos().x()) == 1)) QTreeWidget::mouseDoubleClickEvent(event);
} else {
if ((columnAt(event->pos().x()) == 1) && (item->clipType() == SLIDESHOW || item->clipType() == TEXT || item->clipType() == COLOR)) QTreeWidget::mouseDoubleClickEvent(event);
if ((columnAt(event->pos().x()) == 1)) QTreeWidget::mouseDoubleClickEvent(event);
} else {
if ((columnAt(event->pos().x()) == 1) && (item->clipType() == SLIDESHOW || item->clipType() == TEXT || item->clipType() == COLOR)) QTreeWidget::mouseDoubleClickEvent(event);
- else if ((columnAt(event->pos().x()) == 2)) QTreeWidget::mouseDoubleClickEvent(event);
+ else if ((columnAt(event->pos().x()) == 2) && it->type() != QTreeWidgetItem::UserType + 1) QTreeWidget::mouseDoubleClickEvent(event);
else emit showProperties(item->referencedClip());
}
}
else emit showProperties(item->referencedClip());
}
}