mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
Script editor modified
This commit is contained in:
parent
dcae0255ae
commit
9219529e0a
BIN
limereport/images/object.png
Normal file
BIN
limereport/images/object.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 382 B |
@ -181,5 +181,6 @@
|
|||||||
<file alias="/images/paste">images/paste2.png</file>
|
<file alias="/images/paste">images/paste2.png</file>
|
||||||
<file alias="/images/property">images/property.png</file>
|
<file alias="/images/property">images/property.png</file>
|
||||||
<file alias="/images/signal">images/signal.png</file>
|
<file alias="/images/signal">images/signal.png</file>
|
||||||
|
<file alias="/images/object">images/object.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -280,6 +280,7 @@ void ReportStructureCompleater::updateCompleaterModel(ReportEnginePrivateInterfa
|
|||||||
|
|
||||||
QStandardItem* itemNode = new QStandardItem;
|
QStandardItem* itemNode = new QStandardItem;
|
||||||
itemNode->setText(page->pageItem()->objectName());
|
itemNode->setText(page->pageItem()->objectName());
|
||||||
|
itemNode->setIcon(QIcon(":/report/images/object"));
|
||||||
m_model.invisibleRootItem()->appendRow(itemNode);
|
m_model.invisibleRootItem()->appendRow(itemNode);
|
||||||
|
|
||||||
QStringList items = extractSlotNames(page->pageItem());
|
QStringList items = extractSlotNames(page->pageItem());
|
||||||
@ -354,19 +355,25 @@ void ReportStructureCompleater::addChildItem(BaseDesignIntf *item, const QString
|
|||||||
|
|
||||||
QStandardItem* itemNode = new QStandardItem;
|
QStandardItem* itemNode = new QStandardItem;
|
||||||
itemNode->setText(pageName+"_"+item->objectName());
|
itemNode->setText(pageName+"_"+item->objectName());
|
||||||
|
itemNode->setIcon(QIcon(":/report/images/object"));
|
||||||
parent->appendRow(itemNode);
|
parent->appendRow(itemNode);
|
||||||
QStringList slotNames = extractSlotNames(item);
|
QStringList items = extractSlotNames(item);
|
||||||
foreach(QString slotName, slotNames){
|
foreach(QString slotName, items){
|
||||||
QStandardItem* slotItem = new QStandardItem;
|
QStandardItem* slotItem = new QStandardItem;
|
||||||
slotItem->setText(slotName);
|
slotItem->setText(slotName);
|
||||||
|
slotItem->setIcon(QIcon(":/report/images/signal"));
|
||||||
itemNode->appendRow(slotItem);
|
itemNode->appendRow(slotItem);
|
||||||
}
|
}
|
||||||
//BandDesignIntf* band = dynamic_cast<BandDesignIntf*>(item);
|
items = extractPropertyes(item);
|
||||||
//if (band){
|
foreach(QString propertyName, items){
|
||||||
|
QStandardItem* properyItem = new QStandardItem;
|
||||||
|
properyItem->setText(propertyName);
|
||||||
|
properyItem->setIcon(QIcon(":/report/images/property"));
|
||||||
|
itemNode->appendRow(properyItem);
|
||||||
|
}
|
||||||
foreach (BaseDesignIntf* child, item->childBaseItems()){
|
foreach (BaseDesignIntf* child, item->childBaseItems()){
|
||||||
addChildItem(child, pageName, parent);
|
addChildItem(child, pageName, parent);
|
||||||
}
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace LimeReport
|
} // namespace LimeReport
|
||||||
|
Loading…
Reference in New Issue
Block a user