}
void CameraConfig::classBegin() {
+#if defined(QT4)
+ QDeclarativeParserStatus::classBegin();
+#elif defined(QT5)
+ QQmlParserStatus::classBegin();
+#endif
+
// Nothing
}
void CameraConfig::componentComplete() {
+#if defined(QT4)
+ QDeclarativeParserStatus::componentComplete();
+#elif defined(QT5)
+ QQmlParserStatus::componentComplete();
+#endif
+
if (m_config) {
return;
}
}
void VideoPlayer::classBegin() {
+#if defined(QT4)
+ QDeclarativeItem::classBegin();
+#elif defined(QT5)
+ QQuickPaintedItem::classBegin();
+#endif
+
m_bin = gst_element_factory_make ("playbin2", "VideoPlayerBin");
if (!m_bin) {
qmlInfo(this) << "Failed to create playbin2";