From 85d499ab701dd1b285e6ec253e92c04822134061 Mon Sep 17 00:00:00 2001 From: Boris Dalstein Date: Thu, 11 Feb 2016 00:54:54 -0800 Subject: [PATCH] Adjust background widget layout for Mac OS X --- src/Gui/Background/BackgroundWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/Background/BackgroundWidget.cpp b/src/Gui/Background/BackgroundWidget.cpp index 0365f8a9..ccbfdb7e 100644 --- a/src/Gui/Background/BackgroundWidget.cpp +++ b/src/Gui/Background/BackgroundWidget.cpp @@ -66,7 +66,11 @@ BackgroundWidget::BackgroundWidget(QWidget * parent) : imageRefreshButton_->setStatusTip(tr("Reload background image(s) to reflect changes on disk.")); imageRefreshButton_->setMaximumWidth(30); QHBoxLayout * imagesLayout = new QHBoxLayout(); +#ifdef Q_OS_MAC + imagesLayout->setSpacing(10); +#else imagesLayout->setSpacing(0); +#endif imagesLayout->addWidget(imageLineEdit_); imagesLayout->addWidget(imageBrowseButton_); imagesLayout->addWidget(imageRefreshButton_);