mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
rename method
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3456 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -402,11 +402,11 @@ void ElementScene::endCurrentBehavior(const QGraphicsSceneMouseEvent *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief ElementScene::setInterface
|
* @brief ElementScene::setEventInterface
|
||||||
* Set a new event interface
|
* Set a new event interface
|
||||||
* @param interface
|
* @param interface
|
||||||
*/
|
*/
|
||||||
void ElementScene::setInterface(ESEventInterface *interface) {
|
void ElementScene::setEventInterface(ESEventInterface *interface) {
|
||||||
if (m_event_interface) delete m_event_interface;
|
if (m_event_interface) delete m_event_interface;
|
||||||
m_event_interface = interface;
|
m_event_interface = interface;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ class ElementScene : public QGraphicsScene {
|
|||||||
|
|
||||||
// methods
|
// methods
|
||||||
public:
|
public:
|
||||||
void setInterface (ESEventInterface *interface);
|
void setEventInterface (ESEventInterface *interface);
|
||||||
QPointF snapToGrid(QPointF point);
|
QPointF snapToGrid(QPointF point);
|
||||||
void setNames(const NamesList &);
|
void setNames(const NamesList &);
|
||||||
NamesList names() const;
|
NamesList names() const;
|
||||||
|
|||||||
@@ -927,7 +927,7 @@ bool QETElementEditor::isReadOnly() const {
|
|||||||
* Set line creation interface to scene
|
* Set line creation interface to scene
|
||||||
*/
|
*/
|
||||||
void QETElementEditor::addLine() {
|
void QETElementEditor::addLine() {
|
||||||
ce_scene->setInterface(new ESEventAddLine(ce_scene));
|
ce_scene -> setEventInterface(new ESEventAddLine(ce_scene));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user