CCIMXDesktop
 
Loading...
Searching...
No Matches
PanelWidget.h
1#ifndef PANELWIDGET_H
2#define PANELWIDGET_H
3
4#include <QWidget>
5class QPropertyAnimation;
9class PanelWidget : public QWidget {
10 Q_OBJECT
11public:
16 explicit PanelWidget(QWidget* parent = nullptr);
17
18 void slideIn();
19 void slideOut();
20
21private:
22 QPropertyAnimation* animation;
23 bool isSlidingIn { false };
24 void closePanel();
25 void updatePosition();
32 bool eventFilter(QObject* watched, QEvent* event) override;
33};
34
35#endif // PANELWIDGET_H
The PanelWidget class.
Definition PanelWidget.h:9
void slideOut()
slide the widget out
Definition PanelWidget.cpp:54
void slideIn()
slide the widget in
Definition PanelWidget.cpp:35