mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +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
|
||||
* @param interface
|
||||
*/
|
||||
void ElementScene::setInterface(ESEventInterface *interface) {
|
||||
void ElementScene::setEventInterface(ESEventInterface *interface) {
|
||||
if (m_event_interface) delete m_event_interface;
|
||||
m_event_interface = interface;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user