[vlc-commits] qml: set static minimum width and minimum height of the window

Adrien Maglo git at videolan.org
Thu Jun 13 13:11:13 CEST 2019


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Jun  4 16:33:06 2019 +0200| [f423b4759bb36925ebf3187e38e7df7c614f17ed] | committer: Thomas Guillem

qml: set static minimum width and minimum height of the window

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/gui/qt/main_interface.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index ef185c3f25..04f05d58fd 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -275,8 +275,10 @@ MainInterface::~MainInterface()
 
 void MainInterface::computeMinimumSize()
 {
-    int minWidth = 80;
+    int minWidth = 450;
+    int minHeight = 300;
     setMinimumWidth( minWidth );
+    setMinimumHeight( minHeight );
 }
 
 QList<QQmlError> MainInterface::qmlErrors() const



More information about the vlc-commits mailing list