ginebra2/PopupWebChromeItem.h
changeset 6 1c3b8676e58c
parent 5 0f2326c2a325
equal deleted inserted replaced
5:0f2326c2a325 6:1c3b8676e58c
    57 {
    57 {
    58     Q_OBJECT
    58     Q_OBJECT
    59 
    59 
    60 public:
    60 public:
    61     PopupWebChromeItem(
    61     PopupWebChromeItem(
    62             const QRectF & ownerArea,
       
    63             ChromeWidget * chrome,
    62             ChromeWidget * chrome,
    64             const QWebElement & element,
    63             const QWebElement & element,
    65             QGraphicsItem * parent = 0,
    64             QGraphicsItem * parent = 0,
    66             bool modal = true);
    65             bool modal = true);
    67 
    66 
    69 
    68 
    70     virtual void init(WebChromeSnippet * snippet);
    69     virtual void init(WebChromeSnippet * snippet);
    71 
    70 
    72 signals:
    71 signals:
    73     void externalMouseEvent(
    72     void externalMouseEvent(
    74             int type,
    73             QEvent * ev,
    75             const QString & name,
    74             const QString & name,
    76             const QString & description);
    75             const QString & description);
    77 
       
    78 protected:
       
    79     virtual bool event(QEvent * event);
       
    80     virtual bool eventFilter(QObject * object, QEvent * event);
       
    81 
    76 
    82 private:
    77 private:
    83     void checkForExternalEvent(QObject * object, QEvent * event);
    78     void checkForExternalEvent(QObject * object, QEvent * event);
    84     void emitExternalEvent(QEvent * event);
    79     void emitExternalEvent(QEvent * event);
       
    80     bool event(QEvent * e);
    85 
    81 
    86     bool m_modal;
    82     bool m_modal;
       
    83     class ExternalEventCharm *m_externalEventCharm;
    87 };
    84 };
    88 
    85 
    89 } // end of namespace GVA
    86 } // end of namespace GVA
    90 
    87 
    91 #endif // __GINEBRA_POPUPWEBCHROMEITEM_H__
    88 #endif // __GINEBRA_POPUPWEBCHROMEITEM_H__