fix nonmodal dialogs going behind main window in linux
notes: was okay in windows wnd position is not preserved on hiding via Close event now, requires extra handling, as in class RotateDialog or g_guiSettings (no much critical cases exist) min max buttons aren't shown (when requested) in Ubuntu, shown in Windows; were shown for Qt::Window flag
This commit is contained in:
@@ -869,7 +869,7 @@ void Scene_CountStuff( int& ents_ingame, int& groupents, int& groupents_ingame )
|
||||
#include <QHeaderView>
|
||||
|
||||
void DoMapInfo(){
|
||||
QDialog dialog( MainFrame_getWindow(), Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint );
|
||||
QDialog dialog( MainFrame_getWindow(), Qt::Dialog | Qt::WindowCloseButtonHint );
|
||||
dialog.setWindowTitle( "Map Info" );
|
||||
|
||||
auto w_brushes = new QLabel;
|
||||
@@ -2032,7 +2032,7 @@ static void GetSelectionIndex( int *ent, int *brush ){
|
||||
#include "gtkutil/spinbox.h"
|
||||
|
||||
void DoFind(){
|
||||
QDialog dialog( MainFrame_getWindow(), Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint );
|
||||
QDialog dialog( MainFrame_getWindow(), Qt::Dialog | Qt::WindowCloseButtonHint );
|
||||
dialog.setWindowTitle( "Find Brush" );
|
||||
|
||||
auto entity = new SpinBox( 0, 999999 );
|
||||
|
||||
Reference in New Issue
Block a user