mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
Merge branch 'master' into 1.4
This commit is contained in:
commit
faf47cca29
@ -203,6 +203,38 @@ QString BaseDesignIntf::setItemHeight(qreal height)
|
||||
return QString();
|
||||
}
|
||||
|
||||
qreal BaseDesignIntf::getItemWidth()
|
||||
{
|
||||
return width() / mmFactor();
|
||||
}
|
||||
|
||||
qreal BaseDesignIntf::getItemHeight()
|
||||
{
|
||||
return height() / mmFactor();
|
||||
}
|
||||
|
||||
qreal BaseDesignIntf::getItemPosX()
|
||||
{
|
||||
return x() / mmFactor();
|
||||
}
|
||||
|
||||
qreal BaseDesignIntf::getItemPosY()
|
||||
{
|
||||
return y() / mmFactor();
|
||||
}
|
||||
|
||||
QString BaseDesignIntf::setItemPosX(qreal xValue)
|
||||
{
|
||||
setItemPos(xValue * mmFactor(),y());
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString BaseDesignIntf::setItemPosY(qreal yValue)
|
||||
{
|
||||
setItemPos(x(),yValue * mmFactor());
|
||||
return QString();
|
||||
}
|
||||
|
||||
QFont BaseDesignIntf::transformToSceneFont(const QFont& value) const
|
||||
{
|
||||
QFont f = value;
|
||||
|
@ -251,6 +251,12 @@ public:
|
||||
|
||||
Q_INVOKABLE QString setItemWidth(qreal width);
|
||||
Q_INVOKABLE QString setItemHeight(qreal height);
|
||||
Q_INVOKABLE qreal getItemWidth();
|
||||
Q_INVOKABLE qreal getItemHeight();
|
||||
Q_INVOKABLE qreal getItemPosX();
|
||||
Q_INVOKABLE qreal getItemPosY();
|
||||
Q_INVOKABLE QString setItemPosX(qreal xValue);
|
||||
Q_INVOKABLE QString setItemPosY(qreal yValue);
|
||||
protected:
|
||||
|
||||
//ICollectionContainer
|
||||
|
Loading…
Reference in New Issue
Block a user