From: Stephen Kelly Date: Tue, 26 Jun 2012 14:11:06 +0000 (+0200) Subject: Document that the object of a plugin must be default-constructible. X-Git-Tag: 071012110112~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b6c83f7a3668e39df9d5e468fa693b0aa0c8b0e;p=profile%2Fivi%2Fqtbase.git Document that the object of a plugin must be default-constructible. Change-Id: Iaaf56ec3bb0d2423c8ab5deb0627dc1357cee830 Reviewed-by: Lars Knoll --- diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index 76cdd0a..b9fc030 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -649,6 +649,9 @@ Qt for Windows CE * Plugins * **************************************************************************** - The text codecs that were previously plugins are now built into QtCore. +- Code using Q_EXPORT_PLUGIN macros will no longer compile. Use + Q_PLUGIN_METADATA instead. Note that this requires that the class + be default-constructible. **************************************************************************** * Important Behavior Changes * diff --git a/src/corelib/plugin/qplugin.qdoc b/src/corelib/plugin/qplugin.qdoc index f671a5f..940813f 100644 --- a/src/corelib/plugin/qplugin.qdoc +++ b/src/corelib/plugin/qplugin.qdoc @@ -77,6 +77,8 @@ See the \l{tools/plugandpaint}{Plug & Paint} example for details. + Note that the class this macro appears on must be default-constructible + \sa Q_DECLARE_INTERFACE(), {How to Create Qt Plugins} */