akonadi
erroroverlay_p.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ERROROVERLAY_P_H
00021 #define AKONADI_ERROROVERLAY_P_H
00022
00023 #include <QtCore/QPointer>
00024 #include <QtGui/QWidget>
00025
00026 class QLabel;
00027
00028 namespace Akonadi {
00029
00037 class ErrorOverlay : public QWidget
00038 {
00039 Q_OBJECT
00040 public:
00046 explicit ErrorOverlay( QWidget *baseWidget, QWidget *parent = 0 );
00047 ~ErrorOverlay();
00048
00049 protected:
00050 bool eventFilter( QObject *object, QEvent *event );
00051
00052 private:
00053 void reposition();
00054
00055 private slots:
00056 void linkActivated();
00057 void started();
00058 void stopped();
00059
00060 private:
00061 QPointer<QWidget> mBaseWidget;
00062 QLabel *mIconLabel;
00063 QLabel *mDescLabel;
00064 bool mPreviousState;
00065 bool mOverlayActive;
00066
00067 };
00068
00069 }
00070
00071 #endif