0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Misprints have been fixed

This commit is contained in:
Arin Alexander
2016-09-16 03:02:32 +04:00
parent eca9e7a1b0
commit 2a6f8313e0
7 changed files with 52 additions and 56 deletions

View File

@@ -63,7 +63,7 @@ bool lessThen(BaseDesignIntf *c1, BaseDesignIntf* c2){
HorizontalLayout::HorizontalLayout(QObject *owner, QGraphicsItem *parent)
: LayoutDesignIntf(xmlTag, owner, parent),m_isRelocating(false),m_layoutType(Layout)
{
setPosibleResizeDirectionFlags(ResizeBottom);
setPossibleResizeDirectionFlags(ResizeBottom);
m_layoutMarker = new LayoutMarker(this);
m_layoutMarker->setParentItem(this);
m_layoutMarker->setColor(Qt::red);
@@ -223,7 +223,7 @@ void HorizontalLayout::restoreChild(BaseDesignIntf* item){
this, SLOT(slotOnChildItemAlignChanged(BaseDesignIntf*,ItemAlign,ItemAlign)));
item->setFixedPos(true);
item->setPosibleResizeDirectionFlags(ResizeRight | ResizeBottom);
item->setPossibleResizeDirectionFlags(ResizeRight | ResizeBottom);
item->setParent(this);
item->setParentItem(this);
@@ -255,7 +255,7 @@ void HorizontalLayout::addChild(BaseDesignIntf *item, bool updateSize)
item->setParentItem(this);
item->setParent(this);
item->setFixedPos(true);
item->setPosibleResizeDirectionFlags(ResizeRight | ResizeBottom);
item->setPossibleResizeDirectionFlags(ResizeRight | ResizeBottom);
connect(item,SIGNAL(destroyed(QObject*)),this,SLOT(slotOnChildDestroy(QObject*)));
connect(item,SIGNAL(geometryChanged(QObject*,QRectF,QRectF)),this,SLOT(slotOnChildGeometryChanged(QObject*,QRectF,QRectF)));
@@ -341,7 +341,7 @@ void HorizontalLayout::beforeDelete()
bdItem->setVisible(true);
bdItem->setPos(mapToParent(bdItem->pos()));
bdItem->setFixedPos(false);
bdItem->setPosibleResizeDirectionFlags(AllDirections);
bdItem->setPossibleResizeDirectionFlags(AllDirections);
}
}
}
@@ -452,7 +452,7 @@ void HorizontalLayout::slotOnChildGeometryChanged(QObject *item, QRectF newGeome
void HorizontalLayout::slotOnChildItemAlignChanged(BaseDesignIntf *item, const BaseDesignIntf::ItemAlign &, const BaseDesignIntf::ItemAlign&)
{
item->setPosibleResizeDirectionFlags(ResizeBottom | ResizeRight);
item->setPossibleResizeDirectionFlags(ResizeBottom | ResizeRight);
}
void HorizontalLayout::slotOnChildVisibleHasChanged(BaseDesignIntf *)

View File

@@ -142,9 +142,9 @@ void ImageItem::setAutoSize(bool autoSize)
if (m_autoSize && !m_picture.isNull()){
setWidth(image().width());
setHeight(image().height());
setPosibleResizeDirectionFlags(Fixed);
setPossibleResizeDirectionFlags(Fixed);
} else {
setPosibleResizeDirectionFlags(AllDirections);
setPossibleResizeDirectionFlags(AllDirections);
}
update();
notify("autoSize",!autoSize,autoSize);