z.B. will ich das aus QAbstractItemView
Code: Alles auswählen
void QAbstractItemView::dropEvent(QDropEvent *event)
{
Q_D(QAbstractItemView);
if (dragDropMode() == InternalMove) {
if (event->source() != this || !(event->possibleActions() & Qt::MoveAction))
return;
}
QModelIndex index;
int col = -1;
int row = -1;
if (d->dropOn(event, &row, &col, &index)) {
if (d->model->dropMimeData(event->mimeData(),
dragDropMode() == InternalMove ? Qt::MoveAction : event->dropAction(), row, col, index)) {
if (dragDropMode() == InternalMove)
event->setDropAction(Qt::MoveAction);
event->accept();
}
}
stopAutoScroll();
setState(NoState);
d->viewport->update();
}
und d-> und dropOn werden nicht erkannt. Ich hab überall gesucht, woher d herkommt, aber nicht gefunden. Sind das selbstdefinierte Regeln von Qt die nicht dem C++Standard entsprechen? Wie gehe ich damit um?