more qvariant

This commit is contained in:
Maxime Gimeno 2020-01-13 16:55:34 +01:00
parent 1efca4b19a
commit 373dbb5070
1 changed files with 3 additions and 3 deletions

View File

@ -708,9 +708,9 @@ private:
Volume_plane<y_tag> *y_item = new Volume_plane<y_tag>(img->image()->tx,img->image()->ty, img->image()->tz); Volume_plane<y_tag> *y_item = new Volume_plane<y_tag>(img->image()->tx,img->image()->ty, img->image()->tz);
Volume_plane<z_tag> *z_item = new Volume_plane<z_tag>(img->image()->tx,img->image()->ty, img->image()->tz); Volume_plane<z_tag> *z_item = new Volume_plane<z_tag>(img->image()->tx,img->image()->ty, img->image()->tz);
x_item->setProperty("img",qVariantFromValue((void*)seg_img)); x_item->setProperty("img",QVariant::fromValue((void*)seg_img));
y_item->setProperty("img",qVariantFromValue((void*)seg_img)); y_item->setProperty("img",QVariant::fromValue((void*)seg_img));
z_item->setProperty("img",qVariantFromValue((void*)seg_img)); z_item->setProperty("img",QVariant::fromValue((void*)seg_img));
x_item->setColor(QColor("red")); x_item->setColor(QColor("red"));
y_item->setColor(QColor("green")); y_item->setColor(QColor("green"));