path: root/src/sql/kernel/qsqldriverplugin.cpp
diff options
authorLars Knoll <>2012-05-27 05:34:53 +0200
committerQt by Nokia <>2012-06-07 21:18:36 +0200
commit9d3e77f18e3bd19c1723199f0dfb5af9eabdabe8 (patch)
treed7dd2d88f0b1dc583873dc51a659253f856617b8 /src/sql/kernel/qsqldriverplugin.cpp
parentee7fa67eb0060b9c794bae4c7b06110c3b9626e0 (diff)
Remove QFactoryInterface from sql drivers
Change-Id: Ib31e6c4ce5264fc1e4281c8846df5630a6479a7c Reviewed-by: Mark Brand <> Reviewed-by: Thiago Macieira <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/sql/kernel/qsqldriverplugin.cpp')
1 files changed, 8 insertions, 12 deletions
diff --git a/src/sql/kernel/qsqldriverplugin.cpp b/src/sql/kernel/qsqldriverplugin.cpp
index ea28ba2aa1..34772222f9 100644
--- a/src/sql/kernel/qsqldriverplugin.cpp
+++ b/src/sql/kernel/qsqldriverplugin.cpp
@@ -55,24 +55,20 @@ QT_BEGIN_NAMESPACE
dynamically by Qt.
Writing a SQL plugin is achieved by subclassing this base class,
- reimplementing the pure virtual functions keys() and create(), and
- exporting the class with the Q_EXPORT_PLUGIN2() macro. See the SQL
+ reimplementing the pure virtual function create(), and
+ exporting the class with the Q_PLUGIN_METADATA() macro. See the SQL
plugins that come with Qt for example implementations (in the
\c{plugins/src/sqldrivers} subdirectory of the source
- \sa {How to Create Qt Plugins}
- \fn QStringList QSqlDriverPlugin::keys() const
- Returns the list of drivers (keys) this plugin supports.
+ The json file containing the metadata for the plugin contains a list of
+ keys indicating the supported sql drivers
- These keys are usually the class names of the custom drivers that
- are implemented in the plugin.
+ \code
+ { "Keys": [ "mysqldriver" ] }
+ \endcode
- \sa create()
+ \sa {How to Create Qt Plugins}