]> git.sur5r.net Git - minitube/commitdiff
Fix minimum size for Qt5 Mac
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 15 Jul 2015 13:56:28 +0000 (15:56 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 15 Jul 2015 13:56:28 +0000 (15:56 +0200)
src/playlistview.cpp

index c831c3be5007cac9576a1545f84c05c7dd3de2dc..ac6755460317135d9b117c0920e0f661fc33cc7e 100644 (file)
@@ -29,7 +29,12 @@ PlaylistView::PlaylistView(QWidget *parent) : QListView(parent),
     setSelectionMode(QAbstractItemView::ExtendedSelection);
 
     setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding);
+
+#if QT_VERSION >= 0x050000 && defined(APP_MAC)
+    setMinimumWidth(160);
+#else
     setMinimumWidth(175);
+#endif
 
     // dragndrop
     setDragEnabled(true);