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:
@@ -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
|
||||
|
Reference in New Issue
Block a user