[vlc-commits] Qt: properly show the dialog buttons on Win32

Jean-Baptiste Kempf git at videolan.org
Thu Jan 22 17:53:08 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 22 17:50:02 2015 +0100| [339f955e7d0735bc74ed25e14b975e1b7a276855] | committer: Jean-Baptiste Kempf

Qt: properly show the dialog buttons on Win32

Close #13648

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=339f955e7d0735bc74ed25e14b975e1b7a276855
---

 modules/gui/qt4/util/qvlcframe.hpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/util/qvlcframe.hpp b/modules/gui/qt4/util/qvlcframe.hpp
index 3706f4d..13b21fb 100644
--- a/modules/gui/qt4/util/qvlcframe.hpp
+++ b/modules/gui/qt4/util/qvlcframe.hpp
@@ -152,7 +152,10 @@ class QVLCDialog : public QDialog
 public:
     QVLCDialog( QWidget* parent, intf_thread_t *_p_intf ) :
                                     QDialog( parent ), p_intf( _p_intf )
-    {}
+    {
+        setWindowFlags( Qt::Dialog|Qt::WindowMinMaxButtonsHint|
+                        Qt::WindowSystemMenuHint|Qt::WindowCloseButtonHint );
+    }
     virtual ~QVLCDialog() {};
     void toggleVisible()
     {



More information about the vlc-commits mailing list