Show title of pictures on the ProfileInterface
This commit is contained in:
parent
0cfef2f6ca
commit
cb3647df02
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@ private:
|
|||
SnapmaticPicture *smpic;
|
||||
QAction *actSelectPic;
|
||||
QString picPath;
|
||||
QString picTitl;
|
||||
QString picStr;
|
||||
bool clkIssued;
|
||||
|
||||
|
|
Loading…
Reference in a new issue