diff --git a/limereport/items/lrabstractlayout.cpp b/limereport/items/lrabstractlayout.cpp index 31cd87a..1f59848 100644 --- a/limereport/items/lrabstractlayout.cpp +++ b/limereport/items/lrabstractlayout.cpp @@ -273,8 +273,10 @@ void AbstractLayout::connectToLayout(BaseDesignIntf *item) item, SIGNAL(itemSelectedHasBeenChanged(BaseDesignIntf*,bool)), this, SLOT(slotOnChildSelectionHasChanged(BaseDesignIntf*,bool)) ); - connect(item, SIGNAL(itemAlignChanged(BaseDesignIntf*,ItemAlign,ItemAlign)), - this, SLOT(slotOnChildItemAlignChanged(BaseDesignIntf*,ItemAlign,ItemAlign))); + connect( + item, SIGNAL(itemAlignChanged(BaseDesignIntf*, const ItemAlign&, const ItemAlign&)), + this, SLOT(slotOnChildItemAlignChanged(BaseDesignIntf*,const ItemAlign&,const ItemAlign&)) + ); } void AbstractLayout::disconnectFromLayout(BaseDesignIntf *item) @@ -295,8 +297,10 @@ void AbstractLayout::disconnectFromLayout(BaseDesignIntf *item) item, SIGNAL(itemSelectedHasBeenChanged(BaseDesignIntf*,bool)), this, SLOT(slotOnChildSelectionHasChanged(BaseDesignIntf*,bool)) ); - disconnect(item, SIGNAL(itemAlignChanged(BaseDesignIntf*,ItemAlign,ItemAlign)), - this, SLOT(slotOnChildItemAlignChanged(BaseDesignIntf*,ItemAlign,ItemAlign))); + disconnect( + item, SIGNAL(itemAlignChanged(BaseDesignIntf*, const ItemAlign&, const ItemAlign&)), + this, SLOT(slotOnChildItemAlignChanged(BaseDesignIntf*,const ItemAlign&,const ItemAlign&)) + ); } BaseDesignIntf *AbstractLayout::findNext(BaseDesignIntf *item) @@ -348,7 +352,7 @@ void AbstractLayout::slotOnChildGeometryChanged(QObject* item, QRectF newGeometr } } -void AbstractLayout::slotOnChildItemAlignChanged(BaseDesignIntf* item, const BaseDesignIntf::ItemAlign&, const BaseDesignIntf::ItemAlign&) +void AbstractLayout::slotOnChildItemAlignChanged(BaseDesignIntf* item, const ItemAlign&, const ItemAlign&) { item->setPossibleResizeDirectionFlags(ResizeBottom | ResizeRight); } diff --git a/limereport/lrbasedesignintf.h b/limereport/lrbasedesignintf.h index 6a2b3ea..511afce 100644 --- a/limereport/lrbasedesignintf.h +++ b/limereport/lrbasedesignintf.h @@ -480,7 +480,7 @@ signals: void propertyChanged(const QString& propertName, const QVariant& oldValue,const QVariant& newValue); void propertyObjectNameChanged(const QString& oldValue, const QString& newValue); void propertyesChanged(QVector propertyNames); - void itemAlignChanged(BaseDesignIntf* item, const BaseDesignIntf::ItemAlign& oldValue, const BaseDesignIntf::ItemAlign& newValue); + void itemAlignChanged(BaseDesignIntf* item, const ItemAlign& oldValue, const ItemAlign& newValue); void itemVisibleHasChanged(BaseDesignIntf* item); void beforeRender(); void afterData();