1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-18 11:39:31 +01:00

Disable deprecation warning for QMacCocoaViewContainer

This commit is contained in:
Jonas Kvinge 2020-07-17 16:33:10 +02:00
parent 9852e588c1
commit 1819f64467

View File

@ -57,6 +57,10 @@ static inline void setupLayout(NSView *cocoaView, QWidget *parent) {
parent->setAttribute(Qt::WA_NativeWindow); parent->setAttribute(Qt::WA_NativeWindow);
QVBoxLayout *layout = new QVBoxLayout(parent); QVBoxLayout *layout = new QVBoxLayout(parent);
layout->setMargin(0); layout->setMargin(0);
// FIXME
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
layout->addWidget(new QMacCocoaViewContainer(cocoaView, parent)); layout->addWidget(new QMacCocoaViewContainer(cocoaView, parent));
#pragma GCC diagnostic pop
} }