Unbreak Qt 5.11 build
qGetPtrHelper/Q_DECLARE_PRIVATE only works with std::unique_ptr starting with Qt 5.12 unfortunately, so use a QScopedPointer instead here.