summaryrefslogtreecommitdiffstats
path: root/qcomponenthostnative.h
blob: c726f5b3d8c0e90371e554eb69977607067f0b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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