gecko/widget/src/qt/mozqwidget.h

32 lines
562 B
C
Raw Normal View History

#ifndef MOZQWIDGET_H
#define MOZQWIDGET_H
#include <qwidget.h>
2008-04-19 08:37:55 -07:00
#include "nsIWidget.h"
class QEvent;
class nsWindow;
class MozQWidget : public QWidget
{
Q_OBJECT
public:
MozQWidget(nsWindow* receiver, QWidget *parent,
const char *name, int f);
/**
* Mozilla helper.
*/
void setModal(bool);
2008-04-19 08:37:55 -07:00
bool SetCursor(nsCursor aCursor);
void dropReciever() { mReceiver = 0x0; };
nsWindow* getReciever() { return mReceiver; };
protected:
virtual bool event(QEvent *ev);
private:
nsWindow *mReceiver;
};
#endif