Enhance pimpl support in qmodelingobject

Change-Id: I4db7e416bc363462751af9797b398ba369e7b417
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>