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

Redundant code has been removed

This commit is contained in:
Arin Alexander
2020-03-19 20:59:24 +03:00
parent efe6fd2cb2
commit e12dcd4df9
2 changed files with 2 additions and 11 deletions

View File

@@ -155,16 +155,7 @@ void ImageItem::setImageAsByteArray(QByteArray image)
{
QImage value;
value.loadFromData(image);
if (m_picture != value){
QImage oldValue = m_picture;
m_picture = value;
if (m_autoSize){
setWidth(m_picture.width());
setHeight(m_picture.height());
}
update();
notify("image",oldValue,value);
}
setImage(value);
}
QString ImageItem::fileFilter() const