Skip to content

Commit 29e02fc

Browse files
author
mhugent
committed
add shape methods to composerview sip
git-svn-id: http://svn.osgeo.org/qgis/trunk@12910 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 64b68ae commit 29e02fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/gui/qgscomposerview.sip

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class QgsComposerView: QGraphicsView
2222
AddLabel, // add label
2323
AddScalebar, // add scalebar
2424
AddPicture, // add raster/vector picture
25+
AddShape, //add shape item (ellipse, rectangle, triangle)
2526
MoveItemContent //move content of item (e.g. content of map)
2627
};
2728

@@ -51,6 +52,8 @@ class QgsComposerView: QGraphicsView
5152
void addComposerLegend( QgsComposerLegend* legend );
5253
/**Adds picture to the graphics scene and advices composer to create a widget for it (through signal)*/
5354
void addComposerPicture( QgsComposerPicture* picture );
55+
/**Adds a composer shape to the graphics scene and advices composer to create a widget for it (through signal)*/
56+
void addComposerShape( QgsComposerShape* shape );
5457

5558
/**Returns the composer main window*/
5659
QMainWindow* composerWindow();

0 commit comments

Comments
 (0)