Skip to content

Commit

Permalink
Add sizeChanged signal for composer item
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 25, 2012
1 parent d413a20 commit b3b9674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/composer/qgscomposeritem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,8 @@ void QgsComposerItem::setSceneRect( const QRectF& rectangle )
QTransform t;
t.translate( xTranslation, yTranslation );
setTransform( t );

emit sizeChanged();
}

void QgsComposerItem::drawBackground( QPainter* p )
Expand Down
2 changes: 2 additions & 0 deletions src/core/composer/qgscomposeritem.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ class CORE_EXPORT QgsComposerItem: public QObject, public QGraphicsRectItem
void rotationChanged( double newRotation );
/**Used e.g. by the item widgets to update the gui elements*/
void itemChanged();
/**Emitted if the rectangle changes*/
void sizeChanged();
private:
// Label id (unique within the same composition)
QString mId;
Expand Down

0 comments on commit b3b9674

Please sign in to comment.