fix QgsArc.in() python-binding

This commit is contained in:
Sergey Yakushevs 2011-09-27 18:50:40 +06:00
parent 94b5f99c37
commit a950830dcf
3 changed files with 15 additions and 3 deletions

View File

@ -25,12 +25,12 @@ class QgsGraphArc
/**
* return index of outgoing vertex
*/
int out() const;
int outVertex() const;
/**
* return index of incoming vertex
*/
int in() const;
int inVertex() const;
};

View File

@ -97,6 +97,16 @@ QVector< QVariant > QgsGraphArc::properties() const
return mProperties;
}
int QgsGraphArc::inVertex() const
{
return mIn;
}
int QgsGraphArc::outVertex() const
{
return mOut;
}
int QgsGraphArc::in() const
{
return mIn;

View File

@ -47,7 +47,7 @@ class ANALYSIS_EXPORT QgsGraphArc
* return property value
* @param propertyIndex property index
*/
QVariant property(int propertyIndex ) const;
QVariant property( int propertyIndex ) const;
/**
* get array of proertyes
@ -58,11 +58,13 @@ class ANALYSIS_EXPORT QgsGraphArc
* return index of outgoing vertex
*/
int out() const;
int outVertex() const;
/**
* return index of incoming vertex
*/
int in() const;
int inVertex() const;
private: