comparison cpp/qt_qtd/qtd_core.cpp @ 315:2049c3abd348 lifetime

more cleanup
author maxter <spambox@d-coding.com>
date Wed, 23 Dec 2009 23:54:39 +0200
parents 17b5e13364b7
children
comparison
equal deleted inserted replaced
314:80b52f5e97b6 315:2049c3abd348
9 * 9 *
10 */ 10 */
11 11
12 #include "qtd_core.h" 12 #include "qtd_core.h"
13 #include <iostream> 13 #include <iostream>
14 #include <QCryptographicHash>
15
16 extern "C" DLL_PUBLIC void* qtd_test_Object()
17 {
18 return new QCryptographicHash(QCryptographicHash::Md5);
19 }
20
21 extern "C" DLL_PUBLIC void qtd_test_delete_Object(void* obj)
22 {
23 delete (QCryptographicHash*)obj;
24 }
25 14
26 extern "C" DLL_PUBLIC QModelIndex qtd_to_QModelIndex(QModelIndexAccessor mia) 15 extern "C" DLL_PUBLIC QModelIndex qtd_to_QModelIndex(QModelIndexAccessor mia)
27 { 16 {
28 return * (QModelIndex *) (&mia) ; 17 return * (QModelIndex *) (&mia) ;
29 } 18 }