* BUG: Reparenting a window does not prevent the Open event to be raised 
  in some cases.


git-svn-id: svn://localhost/gambas/trunk@2059 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2009-07-01 10:12:58 +00:00
parent ce6f28338a
commit d6ff6ba314
2 changed files with 4 additions and 3 deletions

View file

@ -649,7 +649,8 @@ void CMenu::slotTriggered(QAction *action)
void CMenu::slotShown(void)
{
GET_MENU_SENDER(menu);
GB.Raise(menu, EVENT_Show, 0);
//if (GB.CanRaise(menu, EVENT_Show))
GB.Raise(menu, EVENT_Show, 0);
}
void CMenu::slotHidden(void)

View file

@ -2201,7 +2201,7 @@ void MyMainWindow::doReparent(QWidget *parent, Qt::WindowFlags f, const QPoint &
//qDebug("--> isVisible = %d isHidden = %d", isVisible(), isHidden());
/*if (THIS->embedded && !THIS->hidden)
if (THIS->embedded && !THIS->hidden)
{
#if DEBUG_WINDOW
qDebug("post show_later %s %p", GB.GetClassName(THIS), THIS);
@ -2210,7 +2210,7 @@ void MyMainWindow::doReparent(QWidget *parent, Qt::WindowFlags f, const QPoint &
//GB.Post((void (*)())show_later, (intptr_t)THIS);
show_later(THIS);
//WIDGET->show();
}*/
}
//qDebug("new parent = %p", parentWidget());
}