Add sizeChanged signal for composer item

This commit is contained in:
Marco Hugentobler 2012-07-25 10:39:29 +02:00
parent d413a20174
commit b3b9674c29
2 changed files with 4 additions and 0 deletions

View File

@ -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 )

View File

@ -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;