git-svn-id: svn://db.shs.com.ru/libs@477 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -27,6 +27,9 @@ BlockView::~BlockView() {
|
|||||||
|
|
||||||
|
|
||||||
void BlockView::_init() {
|
void BlockView::_init() {
|
||||||
|
qRegisterMetaType<BlockItem*>();
|
||||||
|
qRegisterMetaType<BlockItemPin*>();
|
||||||
|
qRegisterMetaType<BlockBusItem*>();
|
||||||
grid_visible = grid_snap = pm_connect = navigation = m_connect = m_trace_with_buses = prev_tcb = minimap = true;
|
grid_visible = grid_snap = pm_connect = navigation = m_connect = m_trace_with_buses = prev_tcb = minimap = true;
|
||||||
mm_drag = moved = new_branch = new_bus = mm_cancel = iconnect = mm_copy = m_pin_mc = mm_thumb = move_bus_point = wheel_zoom = false;
|
mm_drag = moved = new_branch = new_bus = mm_cancel = iconnect = mm_copy = m_pin_mc = mm_thumb = move_bus_point = wheel_zoom = false;
|
||||||
match_bus = bus_from = 0;
|
match_bus = bus_from = 0;
|
||||||
|
|||||||
@@ -30,6 +30,10 @@ QT_BEGIN_HEADER
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(BlockItem*)
|
||||||
|
Q_DECLARE_METATYPE(BlockItemPin*)
|
||||||
|
Q_DECLARE_METATYPE(BlockBusItem*)
|
||||||
|
|
||||||
class BlockView: public QGraphicsView
|
class BlockView: public QGraphicsView
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|||||||
Reference in New Issue
Block a user