PowerMaster/include/functionNavigationBar.h

46 lines
847 B
C
Raw Normal View History

2024-10-10 16:59:51 +08:00
#ifndef FUNCTIONNAVIGATIONBAR_H
#define FUNCTIONNAVIGATIONBAR_H
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
class functionNavigationBar;
}
QT_END_NAMESPACE
class QPushButton;
class QPropertyAnimation;
class FunctionNavigationBar : public QWidget
{
Q_OBJECT
public:
FunctionNavigationBar(QWidget *parent = nullptr);
~FunctionNavigationBar();
void expand();
void collapse();
2024-10-10 16:59:51 +08:00
protected:
void enterEvent(QEnterEvent*);
void leaveEvent(QEvent*);
public slots:
void onBtnClicked_funBtn();
signals:
void sgl_funBtnClicke(QString);
private:
2025-01-14 18:39:52 +08:00
void initialize();
2024-10-10 16:59:51 +08:00
Ui::functionNavigationBar* ui;
QPushButton* m_pLastFunButton;
QPropertyAnimation* m_pAni_geo;
QString m_strCurState;
bool m_bInAnimation;
};
#endif