From 9d3e77f18e3bd19c1723199f0dfb5af9eabdabe8 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 27 May 2012 05:34:53 +0200 Subject: Remove QFactoryInterface from sql drivers Change-Id: Ib31e6c4ce5264fc1e4281c8846df5630a6479a7c Reviewed-by: Mark Brand Reviewed-by: Thiago Macieira Reviewed-by: Lars Knoll --- src/sql/kernel/qsqldriverplugin.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/sql/kernel/qsqldriverplugin.cpp') 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 distribution). - \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} */ /*! -- cgit v1.2.3