changeset 982:5d4730da0276 osx-retina

Use a more sensible min height for OS/X
author Chris Cannam
date Tue, 30 Jun 2015 14:58:09 +0100
parents 50940a7425ae
children 04337eb34f23
files widgets/PropertyBox.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Tue Jun 30 14:16:22 2015 +0100
+++ b/widgets/PropertyBox.cpp	Tue Jun 30 14:58:09 2015 +0100
@@ -518,8 +518,10 @@
         cb->blockSignals(false);
 
 #ifdef Q_OS_MAC
-	// Crashes on startup without this, for some reason
-	cb->setMinimumSize(QSize(10, 10));
+	// Crashes on startup without this, for some reason; also
+	// prevents combo boxes from getting weirdly squished
+	// vertically
+	cb->setMinimumSize(QSize(10, cb->font().pixelSize() * 2));
 #endif
 
 	break;