mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 08:39:07 +03:00
setItemWidth & setItemHeight invokable functions have been added to BaseDesignIntf
This commit is contained in:
@@ -176,6 +176,12 @@ void BaseDesignIntf::setWidth(qreal width)
|
||||
updateItemAlign();
|
||||
}
|
||||
|
||||
QString BaseDesignIntf::setItemWidth(qreal width)
|
||||
{
|
||||
setWidth(width * mmFactor());
|
||||
return QString();
|
||||
}
|
||||
|
||||
qreal BaseDesignIntf::height() const
|
||||
{
|
||||
return rect().height();
|
||||
@@ -191,6 +197,12 @@ void BaseDesignIntf::setHeight(qreal height)
|
||||
setGeometry(QRectF(rect().x(), rect().y(), rect().width(), height));
|
||||
}
|
||||
|
||||
QString BaseDesignIntf::setItemHeight(qreal height)
|
||||
{
|
||||
setHeight(height * mmFactor());
|
||||
return QString();
|
||||
}
|
||||
|
||||
QFont BaseDesignIntf::transformToSceneFont(const QFont& value) const
|
||||
{
|
||||
QFont f = value;
|
||||
|
@@ -248,6 +248,9 @@ public:
|
||||
virtual bool canContainChildren(){ return false;}
|
||||
ReportSettings* reportSettings() const;
|
||||
void setReportSettings(ReportSettings *reportSettings);
|
||||
|
||||
Q_INVOKABLE QString setItemWidth(qreal width);
|
||||
Q_INVOKABLE QString setItemHeight(qreal height);
|
||||
protected:
|
||||
|
||||
//ICollectionContainer
|
||||
|
Reference in New Issue
Block a user