summaryrefslogtreecommitdiffstats
path: root/qcomponenthostnative.h
diff options
context:
space:
mode:
Diffstat (limited to 'qcomponenthostnative.h')
-rw-r--r--qcomponenthostnative.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/qcomponenthostnative.h b/qcomponenthostnative.h
new file mode 100644
index 0000000..c726f5b
--- /dev/null
+++ b/qcomponenthostnative.h
@@ -0,0 +1,33 @@
+#ifndef QCOMPONENTHOSTNATIVE_H
+#define QCOMPONENTHOSTNATIVE_H
+
+#include <QtGui>
+
+#if defined(QT_JAMBI_RUN)
+# define QCOMPONENTHOSTNATIVE_BASECLASS QWidget
+#elif defined(Q_OS_WIN32)
+# include "qwinhost.h"
+# define QCOMPONENTHOSTNATIVE_BASECLASS QWinHost
+#else
+# include <QtGui/QX11EmbedContainer>
+# define QCOMPONENTHOSTNATIVE_BASECLASS QX11EmbedContainer
+#endif
+
+class QComponentHostNative: public QCOMPONENTHOSTNATIVE_BASECLASS
+{
+public:
+ QComponentHostNative(QWidget *parent = 0);
+
+protected:
+ void childEvent(QChildEvent *e);
+ bool eventFilter(QObject *o, QEvent *e);
+ void focusInEvent(QFocusEvent *e);
+ void paintEvent(QPaintEvent *e);
+ void resizeEvent(QResizeEvent *e);
+ void showEvent(QShowEvent *e);
+ void hideEvent(QHideEvent *e);
+ bool event(QEvent *e);
+
+};
+
+#endif