summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-08-17 12:59:37 -0700
committerJake Petroules <jake.petroules@qt.io>2016-08-17 20:09:35 +0000
commita52aa624e69fa618aa0d29c2a147a7d472751de1 (patch)
tree4ad9ae9e6c2ab2cbe188d29bd337ccefa3945664
parentc9de25fa342ff8066d49541179c30d0ce45950b4 (diff)
Fix instance method not found warning
NSView/UIView were only forward declared here which led to warnings when calling methods on instances of them. Change-Id: Ic2b391bb0ed8d45306dc16e2a807ce7fcae5015e Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
-rw-r--r--src/plugins/avfoundation/mediaplayer/avfvideowidget.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm b/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm
index f00146d1..22cd41e6 100644
--- a/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm
+++ b/src/plugins/avfoundation/mediaplayer/avfvideowidget.mm
@@ -39,6 +39,12 @@
#include <QtGui/QPaintEvent>
#include <QtGui/QPainter>
+#if defined(Q_OS_MACOS)
+#import <AppKit/AppKit.h>
+#else
+#import <UIKit/UIKit.h>
+#endif
+
QT_USE_NAMESPACE
AVFVideoWidget::AVFVideoWidget(QWidget *parent)