changeset 85:bdd4317e43de

Mac layout bits
author Chris Cannam
date Wed, 26 Feb 2020 13:54:21 +0000
parents e77bcf5caedd
children 230e7433030d
files installer.cpp
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/installer.cpp	Wed Feb 26 13:27:02 2020 +0000
+++ b/installer.cpp	Wed Feb 26 13:54:21 2020 +0000
@@ -644,7 +644,7 @@
     int checkColumn = 0;
     int titleColumn = 1;
     int statusColumn = 2;
-    int infoColumn = 3;
+    int infoColumn = 4; // column 3 is a small sliver of spacing
 
     selectionLayout->addWidget
         (new QLabel(QObject::tr("<b>Vamp Plugin Pack</b> v%1")
@@ -663,7 +663,13 @@
         (checkAll, selectionRow, checkColumn, Qt::AlignHCenter);
     ++selectionRow;
 
-    auto checkArrow = new QLabel("&#9660;");
+    auto checkArrow = new QLabel(
+#ifdef Q_OS_MAC
+        "&nbsp;&nbsp;&#9660;"
+#else
+        "&#9660;"
+#endif
+        );
     checkArrow->setTextFormat(Qt::RichText);
     selectionLayout->addWidget
         (checkArrow, selectionRow, checkColumn, Qt::AlignHCenter);
@@ -814,6 +820,10 @@
     mainLayout->setRowStretch(0, 10);
     mainLayout->setColumnStretch(0, 10);
     selectionLayout->setColumnMinimumWidth(0, 50);
+#ifdef Q_OS_MAC
+    selectionLayout->setColumnMinimumWidth(3, 10);
+    selectionLayout->setColumnMinimumWidth(5, 12);
+#endif
     selectionLayout->setColumnStretch(1, 10);
 
     QObject::connect
@@ -901,6 +911,7 @@
     QString preferredFamily = "Lucida Grande";
     font.setFamily(preferredFamily);
     if (QFontInfo(font).family() == preferredFamily) {
+        font.setPointSize(12);
         QApplication::setFont(font);
     }
 #endif