Title: [108333] trunk/Source/WebKit/qt
Revision
108333
Author
commit-qu...@webkit.org
Date
2012-02-21 03:34:24 -0800 (Tue, 21 Feb 2012)

Log Message

[Qt] Print warning when importing experimental WK2 APIs in QML
https://bugs.webkit.org/show_bug.cgi?id=78817

Patch by Andras Becsi <andras.be...@nokia.com> on 2012-02-21
Reviewed by Simon Hausmann.

* declarative/experimental/plugin.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/ChangeLog (108332 => 108333)


--- trunk/Source/WebKit/qt/ChangeLog	2012-02-21 11:32:44 UTC (rev 108332)
+++ trunk/Source/WebKit/qt/ChangeLog	2012-02-21 11:34:24 UTC (rev 108333)
@@ -1,3 +1,12 @@
+2012-02-21  Andras Becsi  <andras.be...@nokia.com>
+
+        [Qt] Print warning when importing experimental WK2 APIs in QML
+        https://bugs.webkit.org/show_bug.cgi?id=78817
+
+        Reviewed by Simon Hausmann.
+
+        * declarative/experimental/plugin.cpp:
+
 2012-02-20  Benjamin Poulain  <benja...@webkit.org>
 
         Get rid of the LocalizationStrategy

Modified: trunk/Source/WebKit/qt/declarative/experimental/plugin.cpp (108332 => 108333)


--- trunk/Source/WebKit/qt/declarative/experimental/plugin.cpp	2012-02-21 11:32:44 UTC (rev 108332)
+++ trunk/Source/WebKit/qt/declarative/experimental/plugin.cpp	2012-02-21 11:34:24 UTC (rev 108333)
@@ -46,6 +46,9 @@
 public:
     virtual void registerTypes(const char* uri)
     {
+        qWarning("\nWARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release.\n"
+                 "WARNING: The experimental API will change from version to version, or even be removed. You have been warned!\n");
+
         Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebKit.experimental"));
 
         qmlRegisterUncreatableType<QWebDownloadItem>(uri, 1, 0, "DownloadItem", QObject::tr("Cannot create separate instance of DownloadItem"));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to