mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
WIP
This commit is contained in:
@@ -183,13 +183,14 @@ QString FileElementCollectionItem::name() const
|
||||
*/
|
||||
QString FileElementCollectionItem::collectionPath() const
|
||||
{
|
||||
QStandardItem* parent_ = parent();
|
||||
if (isCollectionRoot()) {
|
||||
if (m_path == QETApp::commonElementsDirN())
|
||||
return "common://";
|
||||
else
|
||||
return "custom://";
|
||||
}
|
||||
else if (parent() && parent()->type() == FileElementCollectionItem::Type) {
|
||||
else if (parent_ && parent()->type() == FileElementCollectionItem::Type) {
|
||||
ElementCollectionItem *eci = static_cast<ElementCollectionItem*>(parent());
|
||||
if (eci->isCollectionRoot())
|
||||
return eci->collectionPath() + m_path;
|
||||
|
||||
Reference in New Issue
Block a user