Mercurial > hg > svgui
comparison widgets/PropertyBox.cpp @ 987:3f7cdfc56dce 3.0-integration
Merge from branch osx-retina
author | Chris Cannam |
---|---|
date | Wed, 01 Jul 2015 13:21:08 +0100 |
parents | 98827470ada2 5d4730da0276 |
children | c02c51ae5238 5c3333fb70b3 |
comparison
equal
deleted
inserted
replaced
979:98827470ada2 | 987:3f7cdfc56dce |
---|---|
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 |
519 } | 525 } |
520 } | 526 } |
521 cb->blockSignals(false); | 527 cb->blockSignals(false); |
522 | 528 |
523 #ifdef Q_OS_MAC | 529 #ifdef Q_OS_MAC |
524 // Crashes on startup without this, for some reason | 530 // Crashes on startup without this, for some reason; also |
525 cb->setMinimumSize(QSize(10, 10)); | 531 // prevents combo boxes from getting weirdly squished |
532 // vertically | |
533 cb->setMinimumSize(QSize(10, cb->font().pixelSize() * 2)); | |
526 #endif | 534 #endif |
527 | 535 |
528 break; | 536 break; |
529 } | 537 } |
530 | 538 |