pineapple-pictures/app/bottombuttongroup.h

28 lines
629 B
C
Raw Permalink Normal View History

// 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
#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