mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
implement currentParts() for every elementItemEditor so the editor can be extended to multi part edit in a later step
This commit is contained in:
committed by
Laurent Trinques
parent
0fb98fbdac
commit
d7b5ceece1
@@ -489,6 +489,7 @@ bool StyleEditor::setPart(CustomElementPart *new_part) {
|
||||
if (CustomElementGraphicPart *part_graphic = dynamic_cast<CustomElementGraphicPart *>(new_part))
|
||||
{
|
||||
part = part_graphic;
|
||||
m_cep_list.append(part_graphic);
|
||||
updateForm();
|
||||
return(true);
|
||||
}
|
||||
@@ -538,6 +539,10 @@ CustomElementPart *StyleEditor::currentPart() const {
|
||||
return(part);
|
||||
}
|
||||
|
||||
QList<CustomElementPart*> StyleEditor::currentParts() const {
|
||||
return m_cep_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief StyleEditor::isStyleEditable
|
||||
* @param cep_list
|
||||
|
||||
Reference in New Issue
Block a user