/
NeoChapay
/
telegraf
Обзор
Документация
Войти
/
NeoChapay
/
telegraf
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/namedaction.cpp
48 строк
796 B
Mikhail Barashkov
refactor: remove standard comments from header of all source files
07 сен 2024, 14:40
07 сен 2024, 14:40
c79ea8f
Код
Авторство
О чём код?
#include "namedaction.h" // A workaroud for // ListElement: cannot use script for property value NamedAction::NamedAction(QObject *parent) : QObject(parent), visible(true), action(QJSValue::UndefinedValue) { } bool NamedAction::getVisible() const { return visible; } void NamedAction::setVisible(bool newVisible) { if (visible != newVisible) { visible = newVisible; emit visibleChanged(); } } QString NamedAction::getName() const { return name; } void NamedAction::setName(QString newName) { if (name != newName) { name = newName; emit nameChanged(); } } QJSValue NamedAction::getAction() const { return action; } void NamedAction::setAction(QJSValue newAction) { action = newAction; emit actionChanged(); }