Show title of pictures on the ProfileInterface

This commit is contained in:
Rafael 2016-04-05 04:54:06 +02:00
parent 0cfef2f6ca
commit cb3647df02
2 changed files with 3 additions and 1 deletions

View file

@ -62,10 +62,11 @@ void SnapmaticWidget::setSnapmaticPicture(SnapmaticPicture *picture, QString pic
smpic = picture;
picPath = picturePath;
picStr = picture->getPictureStr();
picTitl = picture->getPictureTitl();
QPixmap SnapmaticPixmap = QPixmap::fromImage(picture->getPicture(), Qt::AutoColor);
SnapmaticPixmap.scaled(ui->labPicture->width(), ui->labPicture->height(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
ui->labPicStr->setText(picStr);
ui->labPicStr->setText(picStr + "\n" + picTitl + "");
ui->labPicture->setPixmap(SnapmaticPixmap);
}

View file

@ -69,6 +69,7 @@ private:
SnapmaticPicture *smpic;
QAction *actSelectPic;
QString picPath;
QString picTitl;
QString picStr;
bool clkIssued;