From Wang Rui, added close button hint

This commit is contained in:
Robert Osfield 2011-05-17 09:21:32 +00:00
parent cd2eaf2826
commit d4eceb0b90

View File

@ -342,7 +342,7 @@ bool GraphicsWindowQt::init( QWidget* parent, const QGLWidget* shareWidget, Qt::
// WindowFlags
Qt::WindowFlags flags = f | Qt::Window | Qt::CustomizeWindowHint;
if ( _traits->windowDecoration )
flags |= Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint;
flags |= Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint;
// create widget
_widget = new GLWidget( traits2qglFormat( _traits ), parent, shareWidget, flags );