mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Element editor : dynamic text field can be set with element info as source of text.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5260 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -532,6 +532,15 @@ QETElementEditor* ElementScene::editor() const {
|
||||
return m_element_editor;
|
||||
}
|
||||
|
||||
void ElementScene::setElementInfo(DiagramContext dc)
|
||||
{
|
||||
if(m_elmt_information != dc)
|
||||
{
|
||||
m_elmt_information = dc;
|
||||
emit elementInfoChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ElementScene::slot_select
|
||||
* Select the item in content, every others items in the scene are deselected
|
||||
|
||||
Reference in New Issue
Block a user