view cpp/qt_core/test/Objects.cpp @ 389:d37abad3def9

Added missing ?const? to qt.core.QModelIndex.object. Previously, QModelIndex.internalPointer was const, while QModelIndex.object was not, even if they in fact do the same thing.
author David Nadlinger <code@klickverbot.at>
date Fri, 27 Aug 2010 14:44:09 +0200
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);
}