mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
save/load QetGraphicsTableItem to/from .qet file
This commit is contained in:
@@ -156,3 +156,17 @@ QVector<QetGraphicsTableItem *> ElementProvider::table(QetGraphicsTableItem *tab
|
||||
|
||||
return v_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementProvider::tableFromUuid
|
||||
* @param uuid
|
||||
* @return the table with uuid @uuid or nullptr if not found
|
||||
*/
|
||||
QetGraphicsTableItem *ElementProvider::tableFromUuid(const QUuid &uuid)
|
||||
{
|
||||
for (auto table : this->table())
|
||||
if (table->uuid() == uuid)
|
||||
return table;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user