DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
buttongroup.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#pragma once
6
7#include <QScopedPointer>
8#include <QFrame>
9
11class ButtonGroup : public QFrame
12{
13 Q_OBJECT
14public:
15 explicit ButtonGroup(QWidget *parent = 0);
17
18Q_SIGNALS:
19 void buttonChecked(int id);
20
21public Q_SLOTS:
22 void setCheckedButton(int id);
23 void setButtons(const QStringList &texts);
24
25private:
26 QScopedPointer<ButtonGroupPrivate> d_ptr;
27 Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), ButtonGroup)
28};
29
Definition buttongroup.cpp:12
Definition buttongroup.h:12