diff --git a/limereport/images/object.png b/limereport/images/object.png
new file mode 100644
index 0000000..807c2a8
Binary files /dev/null and b/limereport/images/object.png differ
diff --git a/limereport/report.qrc b/limereport/report.qrc
index 23d48f9..fe70d36 100644
--- a/limereport/report.qrc
+++ b/limereport/report.qrc
@@ -181,5 +181,6 @@
images/paste2.png
images/property.png
images/signal.png
+ images/object.png
diff --git a/limereport/scripteditor/lrscripteditor.cpp b/limereport/scripteditor/lrscripteditor.cpp
index e385308..d78a361 100644
--- a/limereport/scripteditor/lrscripteditor.cpp
+++ b/limereport/scripteditor/lrscripteditor.cpp
@@ -280,6 +280,7 @@ void ReportStructureCompleater::updateCompleaterModel(ReportEnginePrivateInterfa
QStandardItem* itemNode = new QStandardItem;
itemNode->setText(page->pageItem()->objectName());
+ itemNode->setIcon(QIcon(":/report/images/object"));
m_model.invisibleRootItem()->appendRow(itemNode);
QStringList items = extractSlotNames(page->pageItem());
@@ -354,19 +355,25 @@ void ReportStructureCompleater::addChildItem(BaseDesignIntf *item, const QString
QStandardItem* itemNode = new QStandardItem;
itemNode->setText(pageName+"_"+item->objectName());
+ itemNode->setIcon(QIcon(":/report/images/object"));
parent->appendRow(itemNode);
- QStringList slotNames = extractSlotNames(item);
- foreach(QString slotName, slotNames){
+ QStringList items = extractSlotNames(item);
+ foreach(QString slotName, items){
QStandardItem* slotItem = new QStandardItem;
slotItem->setText(slotName);
+ slotItem->setIcon(QIcon(":/report/images/signal"));
itemNode->appendRow(slotItem);
}
- //BandDesignIntf* band = dynamic_cast(item);
- //if (band){
+ items = extractPropertyes(item);
+ 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()){
addChildItem(child, pageName, parent);
}
- //}
}
} // namespace LimeReport