Unreviewed build fix after r80774.
QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
* declarative/plugin.cpp:
(WebKitQmlPlugin::registerTypes):
* declarative/qdeclarativewebview.cpp:
* declarative/qdeclarativewebview_p.h:
* tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80781
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-03-10 Andreas Kling <kling@webkit.org>
+
+ Unreviewed build fix after r80774.
+
+ QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
+ See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
+
+ * declarative/plugin.cpp:
+ (WebKitQmlPlugin::registerTypes):
+ * declarative/qdeclarativewebview.cpp:
+ * declarative/qdeclarativewebview_p.h:
+ * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
+
2011-03-10 Alexis Menard <alexis.menard@openbossa.org>
Reviewed by Andreas Kling.
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebKit"));
qmlRegisterType<QDeclarativeWebSettings>();
qmlRegisterType<QDeclarativeWebView>(uri, 1, 0, "WebView");
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
qmlRegisterType<QDeclarativeWebView>(uri, 1, 1, "WebView");
qmlRegisterRevision<QDeclarativeWebView, 0>("QtWebKit", 1, 0);
qmlRegisterRevision<QDeclarativeWebView, 1>("QtWebKit", 1, 1);
emit contentsScaleChanged();
}
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
/*!
\qmlproperty color WebView::backgroundColor
\since QtWebKit 1.1
Q_PROPERTY(QSize contentsSize READ contentsSize NOTIFY contentsSizeChanged)
Q_PROPERTY(qreal contentsScale READ contentsScale WRITE setContentsScale NOTIFY contentsScaleChanged)
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged REVISION 1)
#endif
void setContentsScale(qreal scale);
qreal contentsScale() const;
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
Q_REVISION(1) QColor backgroundColor() const;
Q_REVISION(1) void setBackgroundColor(const QColor&);
#endif
void renderingEnabledChanged();
void contentsSizeChanged(const QSize&);
void contentsScaleChanged();
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
void backgroundColorChanged();
#endif
void preferredHeightTest();
void preferredWidthDefaultTest();
void preferredHeightDefaultTest();
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
void backgroundColor();
#endif
QCOMPARE(wv->property("prefHeight").toDouble(), view.preferredHeight());
}
-#if QT_VERSION >= 0x040702
+#if QT_VERSION >= 0x040703
void tst_QDeclarativeWebView::backgroundColor()
{
// We test here the rendering of the background.