mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
24 lines
512 B
C++
24 lines
512 B
C++
#pragma once
|
|
|
|
#include <QPushButton>
|
|
|
|
/* Button with its checked property not changed when clicked.
|
|
* Meant to be used in situations where manually changing the property
|
|
* is always preferred. */
|
|
class NonCheckableButton : public QPushButton {
|
|
Q_OBJECT
|
|
|
|
inline void nextCheckState() override {}
|
|
|
|
public:
|
|
inline NonCheckableButton(QWidget *parent = nullptr)
|
|
: QPushButton(parent)
|
|
{
|
|
}
|
|
inline NonCheckableButton(const QString &text,
|
|
QWidget *parent = nullptr)
|
|
: QPushButton(text, parent)
|
|
{
|
|
}
|
|
};
|