Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
15class QPropertyAnimation;
16
17class AccordionFrame : public QFrame
18{
19 Q_OBJECT
20public:
21 explicit AccordionFrame(QWidget *parent = 0);
22 void animatedShow();
23 void animatedHide();
24 void updateStyleSheet();
25
26signals:
27 void visibilityChanged(bool visible);
28
29protected:
30 virtual void hideEvent(QHideEvent *) { emit visibilityChanged(false); }
31 virtual void showEvent(QShowEvent *) { emit visibilityChanged(true); }
32
33private:
34 int frame_height_;
35 QPropertyAnimation *animation_;
36
37private slots:
38 void animationFinished();
39
40};
41
42#endif // ACCORDION_FRAME_H
Definition accordion_frame.h:18