This commit is contained in:
Sebastian Kügler 2014-02-28 14:54:13 +01:00
parent f4225e95c2
commit f3cf993882

View File

@ -77,7 +77,7 @@ QQuickItem* DeclarativeDragArea::delegate() const
void DeclarativeDragArea::setDelegate(QQuickItem *delegate) void DeclarativeDragArea::setDelegate(QQuickItem *delegate)
{ {
if (m_delegate != delegate) { if (m_delegate != delegate) {
qDebug() << " ______________________________________________ " << delegate; //qDebug() << " ______________________________________________ " << delegate;
m_delegate = delegate; m_delegate = delegate;
emit delegateChanged(); emit delegateChanged();
} }
@ -219,7 +219,7 @@ void DeclarativeDragArea::mouseMoveEvent(QMouseEvent *event)
if (m_draggingJustStarted) { if (m_draggingJustStarted) {
m_draggingJustStarted = false; m_draggingJustStarted = false;
qDebug() << "************ DDDD new QDrag" << objectName(); //qDebug() << "************ DDDD new QDrag" << objectName();
QDrag *drag = new QDrag(parent()); QDrag *drag = new QDrag(parent());
DeclarativeMimeData* dataCopy = new DeclarativeMimeData(m_data); //Qt will take ownership of this copy and delete it. DeclarativeMimeData* dataCopy = new DeclarativeMimeData(m_data); //Qt will take ownership of this copy and delete it.
dataCopy->setText(objectName()); dataCopy->setText(objectName());
@ -288,7 +288,7 @@ void DeclarativeDragArea::mouseMoveEvent(QMouseEvent *event)
p.end(); p.end();
drag->setPixmap(pm); drag->setPixmap(pm);
} }
qDebug() << "DD pixmaps set for icons: " << icons; //qDebug() << "DD pixmaps set for icons: " << icons;
} }
} }
@ -312,19 +312,19 @@ bool DeclarativeDragArea::childMouseEventFilter(QQuickItem *item, QEvent *event)
switch (event->type()) { switch (event->type()) {
case QEvent::MouseButtonPress: { case QEvent::MouseButtonPress: {
QMouseEvent *me = static_cast<QMouseEvent *>(event); QMouseEvent *me = static_cast<QMouseEvent *>(event);
qDebug() << "press in dragarea"; //qDebug() << "press in dragarea";
mousePressEvent(me); mousePressEvent(me);
break; break;
} }
case QEvent::MouseMove: { case QEvent::MouseMove: {
QMouseEvent *me = static_cast<QMouseEvent *>(event); QMouseEvent *me = static_cast<QMouseEvent *>(event);
qDebug() << "move in dragarea"; //qDebug() << "move in dragarea";
mouseMoveEvent(me); mouseMoveEvent(me);
break; break;
} }
case QEvent::MouseButtonRelease: { case QEvent::MouseButtonRelease: {
QMouseEvent *me = static_cast<QMouseEvent *>(event); QMouseEvent *me = static_cast<QMouseEvent *>(event);
qDebug() << "release in dragarea"; //qDebug() << "release in dragarea";
mouseReleaseEvent(me); mouseReleaseEvent(me);
break; break;
} }