mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Font editor fixed
This commit is contained in:
parent
7b016fc958
commit
6ff055efb0
@ -62,7 +62,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}\"
|
||||
|
@ -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<FontEditor*>(propertyEditor)->fontValue());
|
||||
|
||||
QFont tmpFont = qobject_cast<FontEditor*>(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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user