summaryrefslogtreecommitdiffstats
path: root/tests/manual/barstest/buttonwrapper.h
blob: d01121176f16c896867b9857d8ffd6a64f7a4aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef BUTTONWRAPPER_H
#define BUTTONWRAPPER_H

#include <QObject>
class QPushButton;

class ButtonWrapper : public QObject
{
    Q_OBJECT
public:
    ButtonWrapper(QPushButton *button);

public Q_SLOTS:
    void setEnabled(int state);

private:
    QPushButton *m_button;
};

#endif // BUTTONWRAPPER_H