void Room::setImg(const QString &newImg) { if (newImg != m_img) { m_img = newImg; emit imgChanged(newImg); } }
TImageSnapshot::TImageSnapshot(QVector<unsigned short > vector, int x, int y, int pm, QWidget *p) : EImageBase(vector, x, y, pm, p) { connect(this, SIGNAL(imgChanged(QImage)), SLOT(setImage(QImage))); connect(wgt, SIGNAL(imgTransformed(QImage)), SLOT(setImage(QImage))); }
TImageSnapshot::TImageSnapshot(QImage img, int x, int y, int pm, QWidget *p) : EImageBase(img, x, y, pm, p) { connect(this, SIGNAL(imgChanged(QImage)), SLOT(setImage(QImage))); connect(wgt, SIGNAL(imgTransformed(QImage)), SLOT(setImage(QImage))); }