pineapple-pictures/app/bottombuttongroup.h

24 lines
522 B
C
Raw Normal View History

2019-09-29 01:40:19 +08:00
#ifndef BOTTOMBUTTONGROUP_H
#define BOTTOMBUTTONGROUP_H
#include <vector>
2019-09-29 01:40:19 +08:00
#include <QAbstractButton>
#include <QGroupBox>
2019-10-06 14:58:01 +08:00
class OpacityHelper;
2019-09-29 01:40:19 +08:00
class BottomButtonGroup : public QGroupBox
{
Q_OBJECT
public:
explicit BottomButtonGroup(const std::vector<QAction *> & actionList, QWidget *parent = nullptr);
2019-09-29 01:40:19 +08:00
2019-10-06 14:58:01 +08:00
void setOpacity(qreal opacity, bool animated = true);
2019-09-29 01:40:19 +08:00
void addButton(QAbstractButton *button);
2019-09-30 23:02:44 +08:00
2019-10-06 14:58:01 +08:00
private:
OpacityHelper * m_opacityHelper;
2019-09-29 01:40:19 +08:00
};
#endif // BOTTOMBUTTONGROUP_H