mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
NewElementWizard class : remove the use of ElementsCategoriesWidget and ElementsCategory
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4483 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -376,13 +376,8 @@ void ElementsPanelWidget::removeTitleBlockTemplate() {
|
||||
/**
|
||||
Appelle l'assistant de creation de nouvel element
|
||||
*/
|
||||
void ElementsPanelWidget::newElement() {
|
||||
ElementsCategory *selected_category = writableSelectedCategory();
|
||||
|
||||
void ElementsPanelWidget::newElement() {
|
||||
NewElementWizard new_element_wizard(this);
|
||||
if (selected_category) {
|
||||
new_element_wizard.preselectCategory(selected_category);
|
||||
}
|
||||
new_element_wizard.exec();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user