Files
pineapple-pictures/app/bottombuttongroup.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
602 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
//
// SPDX-License-Identifier: MIT
2025-07-23 21:20:34 +08:00
2019-09-29 01:40:19 +08:00
#ifndef BOTTOMBUTTONGROUP_H
#define BOTTOMBUTTONGROUP_H
2025-07-23 21:20:34 +08:00
#include <vector>
2025-07-23 21:20:34 +08:00
2019-09-29 01:40:19 +08:00
#include <QAbstractButton>
#include <QGroupBox>
2025-07-23 21:20:34 +08:00
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);
2025-07-23 21:20:34 +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);
2025-07-23 21:20:34 +08:00
2019-10-06 14:58:01 +08:00
private:
OpacityHelper * m_opacityHelper;
2019-09-29 01:40:19 +08:00
};
2025-07-23 21:20:34 +08:00
2019-09-29 01:40:19 +08:00
#endif // BOTTOMBUTTONGROUP_H