/
githubmirror
/
obs-studio
Обзор
Документация
Войти
/
githubmirror
/
obs-studio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
frontend/components/MuteCheckBox.hpp
26 строк
521 B
Warchamp7
Update C++ files with braces
09 июн 2026, 20:41
09 июн 2026, 20:41
30b63c6
Код
Авторство
О чём код?
#pragma once #include <QCheckBox> class MuteCheckBox : public QCheckBox { Q_OBJECT public: MuteCheckBox(QWidget *parent = nullptr) : QCheckBox(parent) { setTristate(true); setProperty("class", "indicator-mute"); } protected: /* While we need it to be tristate internally, we don't want a user being * able to manually get into the partial state. */ void nextCheckState() override { if (checkState() != Qt::Checked) { setCheckState(Qt::Checked); } else { setCheckState(Qt::Unchecked); } } };