mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-31 01:22:08 -05:00
This commit only contains Qt UI components that are self-contained, i.e. the translation units only contain code for a single class or interface and don't mix implementations.
19 lines
534 B
C++
19 lines
534 B
C++
#pragma once
|
|
|
|
#include <QPushButton>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
|
|
/* 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) {}
|
|
};
|