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
10 #ifndef ACCORDION_FRAME_H
11 #define ACCORDION_FRAME_H
15 class QPropertyAnimation
;
17 class AccordionFrame
: public QFrame
21 explicit AccordionFrame(QWidget
*parent
= 0);
24 void updateStyleSheet();
27 void visibilityChanged(bool visible
);
30 virtual void hideEvent(QHideEvent
*) { emit
visibilityChanged(false); }
31 virtual void showEvent(QShowEvent
*) { emit
visibilityChanged(true); }
35 QPropertyAnimation
*animation_
;
38 void animationFinished();
42 #endif // ACCORDION_FRAME_H