Windows whose Utility property is set now use '_NET_WM_WINDOW_TYPE_DIALOG' instead of '_NET_WM_WINDOW_TYPE_DIALOG'.

[GB.QT4]
* BUG: Control.Next and Control.Previous now never return invalid controls.
* NEW: Windows whose Utility property is set now use '_NET_WM_WINDOW_TYPE_DIALOG' instead of '_NET_WM_WINDOW_TYPE_DIALOG'.

[GB.QT5]
* BUG: Control.Next and Control.Previous now never return invalid controls.
* NEW: Windows whose Utility property is set now use '_NET_WM_WINDOW_TYPE_DIALOG' instead of '_NET_WM_WINDOW_TYPE_DIALOG'.
This commit is contained in:
gambas 2019-10-09 16:44:53 +02:00
parent b7f2918fbd
commit fbb0c62b99
2 changed files with 4 additions and 3 deletions

View file

@ -1254,7 +1254,7 @@ BEGIN_PROPERTY(Control_Next)
QWidget *next = get_next(WIDGET);
if (next)
GB.ReturnObject(CWidget::get(next));
GB.ReturnObject(CWidget::getRealExisting(next));
else
GB.ReturnNull();
}
@ -1296,7 +1296,7 @@ BEGIN_PROPERTY(Control_Previous)
}
if (current)
GB.ReturnObject(CWidget::get(current));
GB.ReturnObject(CWidget::getRealExisting(current));
else
GB.ReturnNull();
}

View file

@ -1864,6 +1864,7 @@ void MyMainWindow::showModal(void)
GB.OnErrorEnd(&handler);
GB.Debug.LeaveEventLoop();
//eventLoop.processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::DeferredDeletion, 0);
MyApplication::eventLoop = info.old;
@ -2400,7 +2401,7 @@ void MyMainWindow::doReparent(QWidget *parent, const QPoint &pos)
if (THIS->toplevel)
{
if (_utility)
f |= Qt::Tool;
f |= Qt::Dialog;
else
f |= Qt::Window;