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:
@@ -1601,7 +1601,7 @@ class RotateDialog : public QObject
|
||||
QDoubleSpinBox *m_y;
|
||||
QDoubleSpinBox *m_z;
|
||||
void construct(){
|
||||
m_window = new QWidget( MainFrame_getWindow(), Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint );
|
||||
m_window = new QWidget( MainFrame_getWindow(), Qt::Dialog | Qt::WindowCloseButtonHint );
|
||||
m_window->setWindowTitle( "Arbitrary rotation" );
|
||||
m_window->installEventFilter( this );
|
||||
|
||||
@@ -1694,7 +1694,7 @@ class ScaleDialog : public QObject
|
||||
QDoubleSpinBox *m_y;
|
||||
QDoubleSpinBox *m_z;
|
||||
void construct(){
|
||||
m_window = new QWidget( MainFrame_getWindow(), Qt::Window | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint );
|
||||
m_window = new QWidget( MainFrame_getWindow(), Qt::Dialog | Qt::WindowCloseButtonHint );
|
||||
m_window->setWindowTitle( "Arbitrary scale" );
|
||||
m_window->installEventFilter( this );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user