|
|
@ -184,11 +184,18 @@ namespace NLQT
|
|
|
|
if (Modules::objViewInt())
|
|
|
|
if (Modules::objViewInt())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QIcon *icon = Modules::objViewInt()->saveOneImage(value.toStdString());
|
|
|
|
QIcon *icon = Modules::objViewInt()->saveOneImage(value.toStdString());
|
|
|
|
|
|
|
|
if (icon)
|
|
|
|
|
|
|
|
{
|
|
|
|
if(icon->isNull())
|
|
|
|
if(icon->isNull())
|
|
|
|
return QIcon(":/images/pqrticles.png");
|
|
|
|
return QIcon(":/images/pqrticles.png");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return QIcon(*icon);
|
|
|
|
return QIcon(*icon);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return QIcon();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(value.contains(".tga") || value.contains(".png"))
|
|
|
|
else if(value.contains(".tga") || value.contains(".png"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|