WIP: first debugging

This commit is contained in:
Matthias Koefferlein 2022-05-09 00:16:48 +02:00
parent a737b80b65
commit 7fe0e95eee
3 changed files with 7 additions and 6 deletions

View File

@ -173,6 +173,7 @@ LayoutView::init_ui ()
QVBoxLayout *vbl = new QVBoxLayout (this);
vbl->setContentsMargins (0, 0, 0, 0);
vbl->setSpacing (0);
vbl->addWidget (view_object_widget ());
if ((options () & LV_NoHierarchyPanel) == 0 && (options () & LV_Naked) == 0) {
@ -283,6 +284,8 @@ LayoutView::init_ui ()
}
config_setup ();
mp_timer = new QTimer (this);
connect (mp_timer, SIGNAL (timeout ()), this, SLOT (timer ()));
mp_timer->start (timer_interval);
@ -1119,13 +1122,13 @@ namespace lay
LayoutView::LayoutView (db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
: LayoutViewBase (this, mgr, editable, plugin_parent, options)
{
// .. nothing yet ..
config_setup ();
}
LayoutView::LayoutView (lay::LayoutView *source, db::Manager *mgr, bool editable, lay::Plugin *plugin_parent, unsigned int options)
: LayoutViewBase (this, source, mgr, editable, plugin_parent, options)
{
// .. nothing yet ..
config_setup ();
}
// NOTE: this methods needs to be called "frequently"

View File

@ -421,8 +421,6 @@ LayoutViewBase::init (db::Manager *mgr)
}
create_plugins ();
config_setup ();
}
LayoutViewBase::~LayoutViewBase ()

View File

@ -882,7 +882,7 @@ void
ViewObjectWidget::leaveEvent (QEvent * /*event*/)
{
BEGIN_PROTECTED
begin_mouse_event ();
send_leave_event ();
END_PROTECTED
}
@ -938,7 +938,7 @@ BEGIN_PROTECTED
p = db::DPoint (e->position ().x (), e->position ().y ());
#endif
send_mouse_press_event (p, qt_to_buttons (e->buttons (), e->modifiers ()));
send_mouse_release_event (p, qt_to_buttons (e->buttons (), e->modifiers ()));
END_PROTECTED
}