Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / accordion_frame.h
blobbed421497f1bfd758ed26fee5b098978c1032622
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef ACCORDION_FRAME_H
11 #define ACCORDION_FRAME_H
13 #include <QFrame>
15 class QPropertyAnimation;
17 class AccordionFrame : public QFrame
19 Q_OBJECT
20 public:
21 explicit AccordionFrame(QWidget *parent = 0);
22 void animatedShow();
23 void animatedHide();
24 void updateStyleSheet();
26 signals:
27 void visibilityChanged(bool visible);
29 protected:
30 virtual void hideEvent(QHideEvent *) { emit visibilityChanged(false); }
31 virtual void showEvent(QShowEvent *) { emit visibilityChanged(true); }
33 private:
34 int frame_height_;
35 QPropertyAnimation *animation_;
37 private slots:
38 void animationFinished();
42 #endif // ACCORDION_FRAME_H