changeset 980:66da6f009edd osx-retina

Tighten spacing around sides of property box on OS/X
author Chris Cannam
date Tue, 30 Jun 2015 14:14:34 +0100
parents 1011ffb1b6d5
children 50940a7425ae
files widgets/PropertyBox.cpp widgets/PropertyStack.cpp
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp	Wed Jun 10 13:38:02 2015 +0100
+++ b/widgets/PropertyBox.cpp	Tue Jun 30 14:14:34 2015 +0100
@@ -63,6 +63,12 @@
     m_mainBox = new QVBoxLayout;
     setLayout(m_mainBox);
 
+#ifdef Q_OS_MAC
+    QMargins mm = m_mainBox->contentsMargins();
+    QMargins mmhalf(mm.left()/2, mm.top()/3, mm.right()/2, mm.bottom()/3);
+    m_mainBox->setContentsMargins(mmhalf);
+#endif
+
 //    m_nameWidget = new QLabel;
 //    m_mainBox->addWidget(m_nameWidget);
 //    m_nameWidget->setText(container->objectName());
--- a/widgets/PropertyStack.cpp	Wed Jun 10 13:38:02 2015 +0100
+++ b/widgets/PropertyStack.cpp	Tue Jun 30 14:14:34 2015 +0100
@@ -50,7 +50,7 @@
     tabBar()->setUsesScrollButtons(true); 
     tabBar()->setIconSize(QSize(16, 16));
 #endif
-    
+
     repopulate();
 
     connect(this, SIGNAL(currentChanged(int)),