Hi, El Friday 05 October 2007 18:05:07 Olivier Goffart escribió: > Le vendredi 5 octobre 2007, Rafael Fernández López a écrit : > > Hi, > > > > I really don't know what you mean here... but if you have a view you can > > use: > > > > itemView->setDragDrop(QAbstractItemView::NoDragDrop); > > You mean setDragDropMode ?
For some reason I missed the "Mode" ending :) > > Maybe is that what you want ? > > No this is not. I want to be able to drag account between identities. > I have a QTreeWidget with InternalMove dragdropmode. > > I have used QTreeWidgetItem::flags to disable dragging of identities (only > account should be draged), and disable droping on others account. > But i can't disable dropping on the root element. Yeah, "flags" from the model should do it... Sorry I don't know the chosen implementation there. On flags you could try to check the parent() of the given index, if it is invalid then it should be the root index, and then return the flag you want... Hope that helps... Bye, Rafael Fernández López.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
