Property appletInterface is exposed as QQuickItem instead of actual AppletQuickItem
This seems rather odd. Why is that? Historical reasons? TODO KF6 ?
// .h
QQuickItem *appletInterface() const;
void setAppletInterface(QQuickItem *appletInterface);
// .cpp
class DialogPrivate {
// ...
AppletQuickItem *appletInterface;
}
void Dialog::setAppletInterface(QQuickItem *appletInterface)
{
if (d->appletInterface == appletInterface) {
return;
}
d->appletInterface = qobject_cast<AppletQuickItem *>(appletInterface);
Q_EMIT appletInterfaceChanged();
}