summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmacnativewidget_mac.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2013-09-02 12:41:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-23 07:18:24 +0200
commitf370f77e48a06464af12d74d2ccb093c130726ed (patch)
treeeb8a867ce53013922fdfe00c85b1a7c48c449afa /src/widgets/widgets/qmacnativewidget_mac.h
parent05cd06cff378cecec071a2aa6f7cb4ee97a9ea6f (diff)
Port QMacNativeWidget to Qt 5
Also adds examples/widgets/mac subdir for Mac specific examples, starting with one for this feature. Change-Id: I4cc7d84ce3d7562259d6206faa5d6996c2392a3e Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'src/widgets/widgets/qmacnativewidget_mac.h')
-rw-r--r--src/widgets/widgets/qmacnativewidget_mac.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/widgets/widgets/qmacnativewidget_mac.h b/src/widgets/widgets/qmacnativewidget_mac.h
index 796d7b38d4..dd433a4ee3 100644
--- a/src/widgets/widgets/qmacnativewidget_mac.h
+++ b/src/widgets/widgets/qmacnativewidget_mac.h
@@ -44,20 +44,23 @@
#include <QtWidgets/QWidget>
-QT_BEGIN_NAMESPACE
+Q_FORWARD_DECLARE_OBJC_CLASS(NSView);
+QT_BEGIN_NAMESPACE
class QMacNativeWidgetPrivate;
class Q_WIDGETS_EXPORT QMacNativeWidget : public QWidget
{
Q_OBJECT
public:
- QMacNativeWidget(void *parentRef = 0);
+ QMacNativeWidget(NSView *parentView = 0);
~QMacNativeWidget();
QSize sizeHint() const;
+ NSView *nativeView() const;
protected:
+ void init(NSView *parentView);
bool event(QEvent *ev);
private: