ChartItem: Series property editor has been added

This commit is contained in:
Arin Alexander
2020-01-31 20:00:28 +03:00
parent a75677ec51
commit 85b3c940d4
12 changed files with 121 additions and 18 deletions

View File

@@ -48,12 +48,12 @@ QWidget* ImagePropItem::createProperyEditor(QWidget *parent) const
QString ImagePropItem::displayValue() const
{
return (propertyValue().isNull())?"":"Picture";
return (propertyValue().isNull()) ? "" : QObject::tr("image");
}
void ImagePropItem::setPropertyEditorData(QWidget *propertyEditor, const QModelIndex &) const
{
ImageEditor *editor =qobject_cast<ImageEditor*>(propertyEditor);
ImageEditor *editor = qobject_cast<ImageEditor*>(propertyEditor);
editor->setImage(propertyValue().value<QImage>());
}