Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 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 | 4a578a360011 |
children | 5d4730da0276 |
comparison
equal
deleted
inserted
replaced
972:1011ffb1b6d5 | 980:66da6f009edd |
---|---|
60 container->getPropertyContainerName() << "\" at " << container << ")]::PropertyBox" << endl; | 60 container->getPropertyContainerName() << "\" at " << container << ")]::PropertyBox" << endl; |
61 #endif | 61 #endif |
62 | 62 |
63 m_mainBox = new QVBoxLayout; | 63 m_mainBox = new QVBoxLayout; |
64 setLayout(m_mainBox); | 64 setLayout(m_mainBox); |
65 | |
66 #ifdef Q_OS_MAC | |
67 QMargins mm = m_mainBox->contentsMargins(); | |
68 QMargins mmhalf(mm.left()/2, mm.top()/3, mm.right()/2, mm.bottom()/3); | |
69 m_mainBox->setContentsMargins(mmhalf); | |
70 #endif | |
65 | 71 |
66 // m_nameWidget = new QLabel; | 72 // m_nameWidget = new QLabel; |
67 // m_mainBox->addWidget(m_nameWidget); | 73 // m_mainBox->addWidget(m_nameWidget); |
68 // m_nameWidget->setText(container->objectName()); | 74 // m_nameWidget->setText(container->objectName()); |
69 | 75 |