Dear MITK users,

as a consequence of bug 17534 [1] we have implemented some changes to the Mime 
types used for communicating TreeItem and DataNode pointer lists via Qt Drag 
and Drop. These changes will be part of the next release:

The MIME types "application/x-mitk-datanodes" and 
"application/x-qabstractitemmodeldatalist" have been deprecated. They are 
currently still supported for backwards compatibility but this will probably 
change after a few releases
You can instead use QmitkMimeTypes::DataNodePtrs and 
QmitkMimeTypes::DataStorageTreeItemPtrs respectively, which are defined in the 
new QmitkMimeTypes class
Instead of being stored as a comma separated list of pointers, they are now 
streamed into and out of a byte array. This should eliminate 32/64 bit issues 
due to casting between different data types.

We have implemented the following functions for your ease of access:
QList<mitk::DataNode *> QmitkMimeTypes::ToDataNodePtrList(const QByteArray &ba)
QList<mitk::DataNode *> QmitkMimeTypes::ToDataNodePtrList(const QMimeData 
*mimeData)

QList<QmitkDataStorageTreeModel::TreeItem *> 
QmitkDataStorageTreeModel::ToTreeItemPtrList(const QMimeData* mimeData)
QList<QmitkDataStorageTreeModel::TreeItem *> 
QmitkDataStorageTreeModel::ToTreeItemPtrList(const QByteArray& ba)

You can take a look at these changes in the corresponding branch [2]. Please 
let us know if you are relying on some properties of the old MIME types which 
are not covered by the new system.

Best,
Caspar

[1] http://bugs.mitk.org/show_bug.cgi?id=17534
[2] 
http://mitk.org/git/?p=MITK.git;a=shortlog;h=refs/heads/bug-17534-fix-64-bit-pointer-crash


----------------------------------------------------------------------

Dr. rer. nat. Caspar Jonas Goch
Medical Image Computing
Scientist

German Cancer Research Center (DKFZ)
Foundation under Public Law
Im Neuenheimer Feld 280
69120 Heidelberg
Germany
phone: +49 6221 42-3544
fax:      +49 6221 42-2345

c.g...@dkfz.de<mailto:c.g...@dkfz.de>
www.dkfz.de<http://www.dkfz.de/>

[cid:image003.png@01CFD8BF.6ACBFBA0]

Management Board: Prof. Dr. Dr. h.c. Otmar D. Wiestler, Prof. Dr. Josef Puchta
VAT-ID No.: DE143293537

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to