GUI: Update MacOS detection macros
For GUI-specific things use Q_OS_MACOS, and for other things use Q_OS_APPLE.
This commit is contained in:
committed by
Chris Hennes
parent
f846cc7acf
commit
e52ef2a525
@@ -1069,7 +1069,7 @@ LabelButton::LabelButton (QWidget * parent)
|
||||
layout->addWidget(label);
|
||||
|
||||
button = new QPushButton(QLatin1String("..."), this);
|
||||
#if defined (Q_OS_MAC)
|
||||
#if defined (Q_OS_MACOS)
|
||||
button->setAttribute(Qt::WA_LayoutUsesWidgetRect); // layout size from QMacStyle was not correct
|
||||
#endif
|
||||
layout->addWidget(button);
|
||||
@@ -1456,7 +1456,7 @@ LabelEditor::LabelEditor (QWidget * parent)
|
||||
this, &LabelEditor::validateText);
|
||||
|
||||
button = new QPushButton(QLatin1String("..."), this);
|
||||
#if defined (Q_OS_MAC)
|
||||
#if defined (Q_OS_MACOS)
|
||||
button->setAttribute(Qt::WA_LayoutUsesWidgetRect); // layout size from QMacStyle was not correct
|
||||
#endif
|
||||
layout->addWidget(button);
|
||||
|
||||
Reference in New Issue
Block a user