Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1194:be5e43e2180c | 1195:51bb2582c2cc |
---|---|
280 if (labelWidget) { | 280 if (labelWidget) { |
281 m_layout->addWidget(labelWidget, row, 0); | 281 m_layout->addWidget(labelWidget, row, 0); |
282 QWidget *frame = new QWidget(m_mainWidget); | 282 QWidget *frame = new QWidget(m_mainWidget); |
283 frame->setMinimumSize(WidgetScale::scaleQSize(QSize(1, 24))); | 283 frame->setMinimumSize(WidgetScale::scaleQSize(QSize(1, 24))); |
284 m_groupLayouts[groupName] = new QGridLayout; | 284 m_groupLayouts[groupName] = new QGridLayout; |
285 m_groupLayouts[groupName]->setMargin(0); | 285 #ifdef Q_OS_MAC |
286 // Seems to be plenty of whitespace already | |
287 m_groupLayouts[groupName]->setContentsMargins(0, 0, 0, 0); | |
288 #else | |
289 // Need a bit of padding on the left | |
290 m_groupLayouts[groupName]->setContentsMargins | |
291 (WidgetScale::scalePixelSize(10), 0, 0, 0); | |
292 #endif | |
286 frame->setLayout(m_groupLayouts[groupName]); | 293 frame->setLayout(m_groupLayouts[groupName]); |
287 m_layout->addWidget(frame, row, 1, 1, 2); | 294 m_layout->addWidget(frame, row, 1, 1, 2); |
288 m_layout->setColumnStretch(1, 10); | 295 m_layout->setColumnStretch(1, 10); |
289 } | 296 } |
290 } | 297 } |