Blame view

LiveChat/FeiTalk/common/ishowlabel.h 440 Bytes
9f17d59e   陈明泉   no message
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #ifndef ISHOWLABEL_H
  #define ISHOWLABEL_H
  
  #include <QLabel>
  
  class IShowLabel : public QLabel
  {
      Q_OBJECT
  public:
      explicit IShowLabel(QWidget *parent = 0);
      
  protected:
      void enterEvent(QEvent *);
      void leaveEvent(QEvent *);
  
      void mousePressEvent(QMouseEvent *ev);
  
  signals:
      void mouseIn();
      void mouseOut();
      void mousePress();
      
  private:
      bool isMousein;
  public slots:
      
  };
  
  #endif // ISHOWLABEL_H