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  void updateStyleSheet();
25 
26 signals:
27  void visibilityChanged(bool visible);
28 
29 protected:
30  virtual void hideEvent(QHideEvent *) { emit visibilityChanged(false); }
31  virtual void showEvent(QShowEvent *) { emit visibilityChanged(true); }
32 
33 private:
34  int frame_height_;
35  QPropertyAnimation *animation_;
36 
37 private slots:
38  void animationFinished();
39 
40 };
41 
42 #endif // ACCORDION_FRAME_H
Definition: accordion_frame.h:18