changed image handling

This commit is contained in:
Herwig Birke
2018-05-30 13:49:48 +02:00
parent 0f915c02d6
commit 6a5a4b217f
21 changed files with 168 additions and 455 deletions
+3 -4
View File
@@ -50,15 +50,14 @@ void cPlaceWindow::setPlace(cPlace* lpPlace)
ui->m_lpLocation->setText(lpPlace->location());
ui->m_lpDescription->setDocument(lpPlace->description());
QList<cImageDescription*> images = lpPlace->images();
QList<cImage*> images = lpPlace->images();
for(int x = 0;x < images.count();x++)
{
cImageDescription* lpImageDescription = images[x];
cImage* lpImage = lpImageDescription->image();
cImage* lpImage = images[x];
QPixmap pixmap = lpImage->image();
cImageWidget* lpImageWidget = new cImageWidget;
lpImageWidget->setValues(lpImage->name(), lpImage->type(), lpImage->description(), pixmap);
lpImageWidget->setValues(lpImage->name(), lpImage->description(), pixmap);
ui->m_lpLayout->addWidget(lpImageWidget);
}