Mercurial > projects > qtd
view cpp/qt_core/test/Objects.cpp @ 405:9d6e4703a458
Make QObject::property()/setProperty() accessible from D.
It is specified to be private in the type system back from QtJambi because the functions take a char pointer instead of a QString, but the conversion functions were missing so far.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Thu, 17 Mar 2011 23:09:43 +0100 |
parents | a032df77b6ab |
children |
line wrap: on
line source
#include <QObject> #include <QEvent> extern "C" void* qtd_test_QObject_create(void* parent) { return new QObject((QObject*)parent); } extern "C" void qtd_test_QObject_delete(void* nativeId) { delete (QObject*)nativeId; } extern "C" void qtd_test_QObject_event(void* nativeId) { QEvent event(QEvent::None); ((QObject*)nativeId)->event(&event); }