Skip to content

Commit

Permalink
sip fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 27, 2014
1 parent c4b4d6f commit d647354
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions python/core/qgsexpression.sip
Expand Up @@ -65,9 +65,7 @@ class QgsExpression
//! Return the expression string that was given when created.
const QString expression() const;

//! Return the a debugging string of the expression.
//! This can be used for debugging. Use {@link expression()}
//! if you need the full expression string.
//! Return the expression string that represents this QgsExpression.
QString dump() const;

//! Return calculator used for distance and area calculations
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsfeature.sip
Expand Up @@ -338,7 +338,7 @@ class QgsFeature
* Python: Defaults to true
* @note added in 2.0
*/
void setFields( const QgsFields* fields, bool initAttributes = false );
void setFields( const QgsFields* fields, bool initAttributes = true );

/** Get associated field map. may be NULL
* @note added in 2.0
Expand Down
1 change: 1 addition & 0 deletions python/core/qgsrectangle.sip
Expand Up @@ -57,6 +57,7 @@ class QgsRectangle
//! Center point of the rectangle
QgsPoint center() const;
//! Scale the rectangle around its center point
void scale( double scaleFactor, const QgsPoint *c = 0 );
void scale( double scaleFactor, double centerX, double centerY );
/** Get rectangle enlarged by buffer.
* @note added in 2.1 */
Expand Down
2 changes: 1 addition & 1 deletion python/core/symbology-ng/qgssvgcache.sip
Expand Up @@ -15,7 +15,7 @@ class QgsSvgCacheEntry
* @param fill color of fill
* @param outline color of outline
*/
QgsSvgCacheEntry( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFctor, const QColor& fill, const QColor& outline );
QgsSvgCacheEntry( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFactor, const QColor& fill, const QColor& outline );
~QgsSvgCacheEntry();

QString file;
Expand Down
3 changes: 2 additions & 1 deletion python/gui/symbology-ng/qgscolorrampcombobox.sip
Expand Up @@ -17,7 +17,8 @@ class QgsColorRampComboBox : QComboBox
//! return new instance of the current color ramp or NULL if there is no active color ramp
QgsVectorColorRampV2* currentColorRamp();

static QSize rampIconSize;
//! @note not available in python bindings
// static QSize rampIconSize;

void setShowGradientOnly( bool gradientOnly );

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsexpression.h
Expand Up @@ -152,6 +152,7 @@ class CORE_EXPORT QgsExpression

int scale() {return mScale; }

//! Return the expression string that was given when created.
const QString expression() const { return dump(); }

//! Return the expression string that represents this QgsExpression.
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgssvgcache.h
Expand Up @@ -41,7 +41,7 @@ class CORE_EXPORT QgsSvgCacheEntry
* @param fill color of fill
* @param outline color of outline
*/
QgsSvgCacheEntry( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFctor, const QColor& fill, const QColor& outline );
QgsSvgCacheEntry( const QString& file, double size, double outlineWidth, double widthScaleFactor, double rasterScaleFactor, const QColor& fill, const QColor& outline );
~QgsSvgCacheEntry();

QString file;
Expand Down
1 change: 1 addition & 0 deletions src/gui/symbology-ng/qgscolorrampcombobox.h
Expand Up @@ -37,6 +37,7 @@ class GUI_EXPORT QgsColorRampComboBox : public QComboBox
//! return new instance of the current color ramp or NULL if there is no active color ramp
QgsVectorColorRampV2* currentColorRamp();

//! @note not available in python bindings
static QSize rampIconSize;

void setShowGradientOnly( bool gradientOnly ) { mShowGradientOnly = gradientOnly; }
Expand Down

0 comments on commit d647354

Please sign in to comment.