Don't use QtDeclarative compat module
Use QtQml instead. Change-Id: I7618ba89a2ed288f7043ae402ac091a924598f03 Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtQuick1/qdeclarativeview.h>
|
||||
#include <QtDeclarative/QDeclarativeEngine>
|
||||
#include <QtQml/QQmlEngine>
|
||||
|
||||
#if !defined(QT_NO_OPENGL)
|
||||
#include <QtOpenGL/QGLWidget>
|
||||
@@ -67,12 +67,12 @@ int main(int argc, char *argv[])
|
||||
|
||||
QApplication application(argc, argv);
|
||||
const QString mainQmlApp = QLatin1String("qrc:/declarative-camera.qml");
|
||||
QDeclarativeView view;
|
||||
QQuickView view;
|
||||
#if !defined(QT_NO_OPENGL)
|
||||
view.setViewport(new QGLWidget);
|
||||
#endif
|
||||
view.setSource(QUrl(mainQmlApp));
|
||||
view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
|
||||
view.setResizeMode(QQuickView::SizeRootObjectToView);
|
||||
// Qt.quit() called in embedded .qml by default only emits
|
||||
// quit() signal, so do this (optionally use Qt.exit()).
|
||||
QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit()));
|
||||
|
||||
@@ -15,7 +15,7 @@ TEMPLATE = subdirs
|
||||
videowidget \
|
||||
player
|
||||
|
||||
contains(QT_CONFIG, declarative) {
|
||||
contains(QT_CONFIG, qml) {
|
||||
disabled:SUBDIRS += declarative-camera
|
||||
SUBDIRS += \
|
||||
declarative-radio \
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtDeclarative/QDeclarativeContext>
|
||||
#include <QtQml/QQmlContext>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtQuick/QQuickItem>
|
||||
#include "filereader.h"
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <QtDeclarative/QDeclarativeComponent>
|
||||
#include <QtDeclarative/QDeclarativeEngine>
|
||||
#include <QtDeclarative/QDeclarativeContext>
|
||||
#include <QtQml/QQmlComponent>
|
||||
#include <QtQml/QQmlEngine>
|
||||
#include <QtQml/QQmlContext>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
class QmlApplicationViewerPrivate
|
||||
|
||||
@@ -154,7 +154,7 @@ QT_BEGIN_NAMESPACE
|
||||
/*!
|
||||
\internal
|
||||
\class QDeclarativeAudio
|
||||
\brief The QDeclarativeAudio class provides an audio item that you can add to a QDeclarativeView.
|
||||
\brief The QDeclarativeAudio class provides an audio item that you can add to a QQuickView.
|
||||
*/
|
||||
|
||||
void QDeclarativeAudio::_q_error(QMediaPlayer::Error errorCode)
|
||||
|
||||
@@ -81,7 +81,7 @@ QT_BEGIN_NAMESPACE
|
||||
/*
|
||||
\internal
|
||||
\class QDeclarativeAudio
|
||||
\brief The QDeclarativeAudio class provides an audio item that you can add to a QDeclarativeView.
|
||||
\brief The QDeclarativeAudio class provides an audio item that you can add to a QQuickView.
|
||||
*/
|
||||
|
||||
void QDeclarativeAudio_4::_q_error(int errorCode, const QString &errorString)
|
||||
|
||||
@@ -162,7 +162,7 @@ void QDeclarativeCamera::_q_availabilityChanged(QtMultimedia::AvailabilityError
|
||||
/*!
|
||||
\class QDeclarativeCamera
|
||||
\internal
|
||||
\brief The QDeclarativeCamera class provides a camera item that you can add to a QDeclarativeView.
|
||||
\brief The QDeclarativeCamera class provides a camera item that you can add to a QQuickView.
|
||||
*/
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user