Resizing a window by code correctly raises the Resize event again.

[GB.QT4]
* BUG: Resizing a window by code correctly raises the Resize event again.

[GB.QT5]
* BUG: Resizing a window by code correctly raises the Resize event again.
This commit is contained in:
Benoît Minisini 2023-08-28 13:39:34 +02:00
parent ad9f8a1761
commit c624e3f95f

View File

@ -2387,7 +2387,7 @@ void MyMainWindow::resizeEvent(QResizeEvent *e)
//qDebug("resizeEvent %ld %ld isHidden:%s shown:%s ", THIS->w, THIS->h, isHidden() ? "1" : "0", shown ? "1" : "0");
//qDebug("THIS->h = %ld THIS->container->height() = %ld height() = %ld", THIS->h, THIS->container->height(), height());
if (THIS->opened && (e->spontaneous() || parentWidget()))
if (THIS->opened) // && (e->spontaneous() || parentWidget()))
raise_resize_event(THIS);
}