X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..c0e0cf58ce033421d125afb813636f102456592c:/Constructor/src/item.cpp?ds=sidebyside 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; +}