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@7263 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2007-10-11 23:42:47 +00:00
parent 995037ac5b
commit ca9347d780
2 changed files with 6 additions and 12 deletions

View File

@ -29,12 +29,6 @@ public:
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;
/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider(const QString & provider );
/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();

View File

@ -91,12 +91,6 @@ public:
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;
/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );
/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();
@ -413,6 +407,12 @@ private: // Private methods
/** vector layers are not copyable */
QgsVectorLayer & operator=( QgsVectorLayer const & rhs );
/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );
/** Draws features. May cause projections exceptions to be generated
* (i.e., code that calls this function needs to catch them
*/