mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 08:39:07 +03:00
Object inspector has been fixed
This commit is contained in:
@@ -109,7 +109,8 @@ void AlignmentItemEditor::setModelData(QWidget *propertyEditor, QAbstractItemMod
|
||||
int align = m_acceptableValues.value(qobject_cast<ComboBoxEditor*>(propertyEditor)->text());
|
||||
flags=clearAcceptableValues(flags) | align;
|
||||
object()->setProperty(propertyName().toLatin1(),flags);
|
||||
foreach(QObject* item,*objects()){item->setProperty(propertyName().toLatin1(),flags);}
|
||||
if (objects())
|
||||
foreach(QObject* item,*objects()){item->setProperty(propertyName().toLatin1(),flags);}
|
||||
parent()->setPropertyValue(flags);
|
||||
model->setData(index,align);
|
||||
}
|
||||
|
@@ -60,6 +60,18 @@ TextItem::TextItem(QObject *owner, QGraphicsItem *parent)
|
||||
m_allowHTMLInFields(false)
|
||||
{
|
||||
m_text = new QTextDocument();
|
||||
|
||||
PageItemDesignIntf* pageItem = dynamic_cast<PageItemDesignIntf*>(parent);
|
||||
BaseDesignIntf* parentItem = dynamic_cast<BaseDesignIntf*>(parent);
|
||||
while (!pageItem){
|
||||
parentItem = dynamic_cast<BaseDesignIntf*>(parentItem->parentItem());
|
||||
pageItem = dynamic_cast<PageItemDesignIntf*>(parentItem);
|
||||
}
|
||||
|
||||
if (pageItem){
|
||||
QFont defaultFont = pageItem->font();
|
||||
setFont(defaultFont);
|
||||
}
|
||||
Init();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user