Skip to content
Permalink
Browse files

Add sizeChanged signal for composer item

  • Loading branch information
mhugent committed Jul 25, 2012
1 parent d413a20 commit b3b9674c293ca4dc28b8e835a4a6a21791096e75
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/core/composer/qgscomposeritem.cpp
  2. +2 −0 src/core/composer/qgscomposeritem.h
@@ -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 )
@@ -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;

0 comments on commit b3b9674

Please sign in to comment.
You can’t perform that action at this time.