Applets
fdographicswidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef FDOGRAPHICSWIDGET_H
00023 #define FDOGRAPHICSWIDGET_H
00024
00025 #include <QtGui/QGraphicsWidget>
00026 #include <QtGui/QX11EmbedContainer>
00027
00028
00029 namespace SystemTray
00030 {
00031
00032 class FdoGraphicsWidget : public QGraphicsWidget
00033 {
00034 Q_OBJECT
00035
00036 public:
00037 FdoGraphicsWidget(WId winId, QGraphicsWidget *parent = 0);
00038 ~FdoGraphicsWidget();
00039
00040 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
00041
00042 signals:
00043 void clientClosed();
00044
00045 protected:
00046 void showEvent(QShowEvent *event);
00047 void hideEvent(QHideEvent *event);
00048
00049 private slots:
00050 void setupXEmbedDelegate();
00051 void handleClientEmbedded();
00052 void handleClientClosed();
00053 void handleClientError(QX11EmbedContainer::Error);
00054 void updateWidgetBackground();
00055
00056 private:
00057 class Private;
00058 Private* const d;
00059 };
00060
00061 }
00062
00063
00064 #endif