2022-06-19 16:17:38 +08:00
|
|
|
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2019-09-29 01:40:19 +08:00
|
|
|
#ifndef BOTTOMBUTTONGROUP_H
|
|
|
|
#define BOTTOMBUTTONGROUP_H
|
|
|
|
|
2021-07-02 00:06:23 +08:00
|
|
|
#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:
|
2021-07-02 00:06:23 +08:00
|
|
|
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
|