diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index 9b91cb6c7..b48266e48 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -402,11 +402,11 @@ void ElementScene::endCurrentBehavior(const QGraphicsSceneMouseEvent *event) { } /** - * @brief ElementScene::setInterface + * @brief ElementScene::setEventInterface * Set a new event interface * @param interface */ -void ElementScene::setInterface(ESEventInterface *interface) { +void ElementScene::setEventInterface(ESEventInterface *interface) { if (m_event_interface) delete m_event_interface; m_event_interface = interface; } diff --git a/sources/editor/elementscene.h b/sources/editor/elementscene.h index 857d0138b..5b4ba95d7 100644 --- a/sources/editor/elementscene.h +++ b/sources/editor/elementscene.h @@ -113,7 +113,7 @@ class ElementScene : public QGraphicsScene { // methods public: - void setInterface (ESEventInterface *interface); + void setEventInterface (ESEventInterface *interface); QPointF snapToGrid(QPointF point); void setNames(const NamesList &); NamesList names() const; diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index 0fbfa6d48..298ba3a57 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -927,7 +927,7 @@ bool QETElementEditor::isReadOnly() const { * Set line creation interface to scene */ void QETElementEditor::addLine() { - ce_scene->setInterface(new ESEventAddLine(ce_scene)); + ce_scene -> setEventInterface(new ESEventAddLine(ce_scene)); } /**