Adapt to Qt5 meta-object changes