diff --git a/common.pri b/common.pri index 77d2cf3..fe66976 100644 --- a/common.pri +++ b/common.pri @@ -105,7 +105,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 4 -LIMEREPORT_VERSION_RELEASE = 83 +LIMEREPORT_VERSION_RELEASE = 85 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/objectinspector/propertyItems/lrfontpropitem.cpp b/limereport/objectinspector/propertyItems/lrfontpropitem.cpp index 1c8b506..3e14fea 100644 --- a/limereport/objectinspector/propertyItems/lrfontpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrfontpropitem.cpp @@ -82,7 +82,14 @@ void FontPropItem::setPropertyEditorData(QWidget* propertyEditor, const QModelIn void FontPropItem::setModelData(QWidget* propertyEditor, QAbstractItemModel* model, const QModelIndex &index) { - model->setData(index,qobject_cast(propertyEditor)->fontValue()); + + QFont tmpFont = qobject_cast(propertyEditor)->fontValue(); + QFont font(tmpFont.family()); + font.setBold(tmpFont.bold()); + font.setPointSize(tmpFont.pointSize()); + font.setItalic(tmpFont.italic()); + font.setUnderline(tmpFont.underline()); + model->setData(index,font); setValueToObject(propertyName(),propertyValue()); }