From 97bf2333ae6668e522d73d630922a685539a5502 Mon Sep 17 00:00:00 2001 From: blacksun Date: Thu, 6 Nov 2014 09:44:20 +0000 Subject: [PATCH] rename method git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3456 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/elementscene.cpp | 4 ++-- sources/editor/elementscene.h | 2 +- sources/editor/qetelementeditor.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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)); } /**