X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/63715b9ec8f3b126b4e495a4c4485cd68fd6973a..ee2cb3d6c26ae319d20bde28f415393e96611ece:/Constructor/src/item.cpp diff --git a/Constructor/src/item.cpp b/Constructor/src/item.cpp index de63b69..4c25467 100644 --- a/Constructor/src/item.cpp +++ b/Constructor/src/item.cpp @@ -1,6 +1,6 @@ #include "item.h" -bool CItem:: logic_connect = false; +bool CItem::logic_connect = false; int CItem::quien = -1; @@ -62,8 +62,6 @@ void CItem::on_menu_popup_eliminar() void CItem::on_menu_popup_conectar() { - CItem::logic_connect = true; - CItem::quien = ID; } int CItem::get_position_x() @@ -158,3 +156,9 @@ ConnectorType CItem::get_connector_type( int _a, int _b ) void CItem::set_default_connector() { } + +void CItem::get_logic_connect_position(int& _a, int& _b) +{ + _a = x; + _b = y; +}