Wireshark  4.3.0
The Wireshark network protocol analyzer
accordion_frame.h
Go to the documentation of this file.
1 
10 #ifndef ACCORDION_FRAME_H
11 #define ACCORDION_FRAME_H
12 
13 #include <QFrame>
14 
15 class QPropertyAnimation;
16 
17 class AccordionFrame : public QFrame
18 {
19  Q_OBJECT
20 public:
21  explicit AccordionFrame(QWidget *parent = 0);
22  void animatedShow();
23  void animatedHide();
24 
25 signals:
26  void visibilityChanged(bool visible);
27 
28 protected:
29  virtual void hideEvent(QHideEvent *) { emit visibilityChanged(false); }
30  virtual void showEvent(QShowEvent *) { emit visibilityChanged(true); }
31 
32 private:
33  int frame_height_;
34  QPropertyAnimation *animation_;
35 
36 private slots:
37  void animationFinished();
38 
39 };
40 
41 #endif // ACCORDION_FRAME_H
Definition: accordion_frame.h:18