aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-06-07 21:43:41 +0200
committerJean-Baptiste Mardelle <[email protected]>2015-06-07 21:43:41 +0200
commit3e3a95f78bcf3c877f179d0f196bb751b68236af (patch)
tree0c08112ae5931308768f2cf3b23c2845ab00dbae
parentaaf2819f771e6cfa7c7b9d404c1c5ddea545c7be (diff)
Fix deprecated QPixmap::grabWidget
-rw-r--r--src/effectstack/effectstackview2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effectstack/effectstackview2.cpp b/src/effectstack/effectstackview2.cpp
index c2b1c2f..5200405 100644
--- a/src/effectstack/effectstackview2.cpp
+++ b/src/effectstack/effectstackview2.cpp
@@ -452,7 +452,7 @@ void EffectStackView2::startDrag()
effect.setAttribute("clipstart", m_clipref->cropStart().frames(KdenliveSettings::project_fps()));
}
doc.appendChild(doc.importNode(effect, true));
- pixmap = QPixmap::grabWidget(m_draggedEffect->title);
+ pixmap = m_draggedEffect->title->grab();
}
else if (m_draggedGroup) {
doc = m_draggedGroup->effectsData();
@@ -462,7 +462,7 @@ void EffectStackView2::startDrag()
else {
doc.documentElement().setAttribute("clipstart", m_clipref->cropStart().frames(KdenliveSettings::project_fps()));
}
- pixmap = QPixmap::grabWidget(m_draggedGroup->title());
+ pixmap = m_draggedGroup->title()->grab();
}
else return;
QDrag *drag = new QDrag(this);