/
githubmirror
/
obs-studio
Обзор
Документация
Войти
/
githubmirror
/
obs-studio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
32.0.2
frontend/components/MuteCheckBox.hpp
25 строк
511 B
PatTheMav
frontend: Add renamed Qt UI components
08 янв 2025, 17:36
08 янв 2025, 17:36
3bbda48
Код
Авторство
О чём код?
#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); } };