From 9219529e0ac14ab44e0c4594a67a40379addd00a Mon Sep 17 00:00:00 2001 From: Arin Alex Date: Fri, 23 Mar 2018 00:25:58 +0300 Subject: [PATCH] Script editor modified --- limereport/images/object.png | Bin 0 -> 382 bytes limereport/report.qrc | 1 + limereport/scripteditor/lrscripteditor.cpp | 17 ++++++++++++----- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 limereport/images/object.png diff --git a/limereport/images/object.png b/limereport/images/object.png new file mode 100644 index 0000000000000000000000000000000000000000..807c2a8848b87b5678c89a707536572e353e3bc1 GIT binary patch literal 382 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkEE5mfigYDlfNQnBO7gq407_!|`)#&vLGA`^`|e zYUc3|32EgI>{Eo-#9#fMlk(d^dIh6*!lIe;&Q^cE9^_axQ*GTNIo8fSzx>`jYCn_q zJ1OPG-tecOi}*F9a4|JB@}#^dW5HobilogA>oySk@ess~Dk^nMeJYP!<3@z}S+^ZctXKesRA Zo-cksvE%4E(>PEtdb;|#taD0e0szuLp&$SN literal 0 HcmV?d00001 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