widget/src/qt/mozqwidget.h
author mats.palmgren@bredband.net
Thu, 17 May 2007 20:49:14 -0700
changeset 1585 633138510b5ae5e25a3bfe66d2db572dc361d448
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Move nsIDocShellTreeItem::childOffset to nsDocShell and remove all uses except internally by nsDocShell (it should be removed eventually). b=376562 r=Olli.Pettay sr=bzbarsky

#ifndef MOZQWIDGET_H
#define MOZQWIDGET_H

#include <qwidget.h>

class QEvent;
class nsCommonWidget;

class MozQWidget : public QWidget
{
    Q_OBJECT
public:
    MozQWidget(nsCommonWidget *receiver, QWidget *parent,
               const char *name, WFlags f);

    /**
     * Mozilla helper.
     */
    void setModal(bool);
protected:
    virtual bool event(QEvent *ev);
private:
    nsCommonWidget *mReceiver;
};

#endif