Skip to content

Commit c03502e

Browse files
author
wonder
committed
setDataProvider() mustn't be public as it's not intended for use outside of QgsVectorLayer.
This fixes ticket #775. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7263 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a10199c commit c03502e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

python/core/qgsvectorlayer.sip

-6
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ public:
2929
/** Returns the primary display field name used in the identify results dialog */
3030
const QString displayField() const;
3131

32-
/** bind layer to a specific data provider
33-
@param provider should be "postgres", "ogr", or ??
34-
@todo XXX should this return bool? Throw exceptions?
35-
*/
36-
bool setDataProvider(const QString & provider );
37-
3832
/** Returns the data provider */
3933
QgsVectorDataProvider* getDataProvider();
4034

src/core/qgsvectorlayer.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
9191
/** Returns the primary display field name used in the identify results dialog */
9292
const QString displayField() const;
9393

94-
/** bind layer to a specific data provider
95-
@param provider should be "postgres", "ogr", or ??
96-
@todo XXX should this return bool? Throw exceptions?
97-
*/
98-
bool setDataProvider( QString const & provider );
99-
10094
/** Returns the data provider */
10195
QgsVectorDataProvider* getDataProvider();
10296

@@ -413,6 +407,12 @@ public slots:
413407
/** vector layers are not copyable */
414408
QgsVectorLayer & operator=( QgsVectorLayer const & rhs );
415409

410+
/** bind layer to a specific data provider
411+
@param provider should be "postgres", "ogr", or ??
412+
@todo XXX should this return bool? Throw exceptions?
413+
*/
414+
bool setDataProvider( QString const & provider );
415+
416416
/** Draws features. May cause projections exceptions to be generated
417417
* (i.e., code that calls this function needs to catch them
418418
*/

0 commit comments

Comments
 (0)