Mercurial > hg > svgui
diff widgets/PropertyBox.cpp @ 1195:51bb2582c2cc levelpanwidget
Adjust spacing in property box
author | Chris Cannam |
---|---|
date | Thu, 15 Dec 2016 16:29:27 +0000 |
parents | 2513f660c183 |
children | b1e3ee5f1be6 |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Thu Dec 15 16:29:18 2016 +0000 +++ b/widgets/PropertyBox.cpp Thu Dec 15 16:29:27 2016 +0000 @@ -282,7 +282,14 @@ QWidget *frame = new QWidget(m_mainWidget); frame->setMinimumSize(WidgetScale::scaleQSize(QSize(1, 24))); m_groupLayouts[groupName] = new QGridLayout; - m_groupLayouts[groupName]->setMargin(0); +#ifdef Q_OS_MAC + // Seems to be plenty of whitespace already + m_groupLayouts[groupName]->setContentsMargins(0, 0, 0, 0); +#else + // Need a bit of padding on the left + m_groupLayouts[groupName]->setContentsMargins + (WidgetScale::scalePixelSize(10), 0, 0, 0); +#endif frame->setLayout(m_groupLayouts[groupName]); m_layout->addWidget(frame, row, 1, 1, 2); m_layout->setColumnStretch(1, 10);