更新文档
This commit is contained in:
@@ -114,36 +114,6 @@ bool DeviceButton::eventFilter(QObject *watched, QEvent *event)
|
||||
return QWidget::eventFilter(watched, event);
|
||||
}
|
||||
|
||||
bool DeviceButton::getCanMove() const
|
||||
{
|
||||
return this->canMove;
|
||||
}
|
||||
|
||||
QString DeviceButton::getText() const
|
||||
{
|
||||
return this->text;
|
||||
}
|
||||
|
||||
QString DeviceButton::getColorNormal() const
|
||||
{
|
||||
return this->colorNormal;
|
||||
}
|
||||
|
||||
QString DeviceButton::getColorAlarm() const
|
||||
{
|
||||
return this->colorAlarm;
|
||||
}
|
||||
|
||||
DeviceButton::ButtonStyle DeviceButton::getButtonStyle() const
|
||||
{
|
||||
return this->buttonStyle;
|
||||
}
|
||||
|
||||
DeviceButton::ButtonColor DeviceButton::getButtonColor() const
|
||||
{
|
||||
return this->buttonColor;
|
||||
}
|
||||
|
||||
QSize DeviceButton::sizeHint() const
|
||||
{
|
||||
return QSize(50, 50);
|
||||
@@ -166,11 +136,21 @@ void DeviceButton::checkAlarm()
|
||||
this->update();
|
||||
}
|
||||
|
||||
bool DeviceButton::getCanMove() const
|
||||
{
|
||||
return this->canMove;
|
||||
}
|
||||
|
||||
void DeviceButton::setCanMove(bool canMove)
|
||||
{
|
||||
this->canMove = canMove;
|
||||
}
|
||||
|
||||
QString DeviceButton::getText() const
|
||||
{
|
||||
return this->text;
|
||||
}
|
||||
|
||||
void DeviceButton::setText(const QString &text)
|
||||
{
|
||||
if (this->text != text) {
|
||||
@@ -179,6 +159,11 @@ void DeviceButton::setText(const QString &text)
|
||||
}
|
||||
}
|
||||
|
||||
QString DeviceButton::getColorNormal() const
|
||||
{
|
||||
return this->colorNormal;
|
||||
}
|
||||
|
||||
void DeviceButton::setColorNormal(const QString &colorNormal)
|
||||
{
|
||||
if (this->colorNormal != colorNormal) {
|
||||
@@ -187,6 +172,11 @@ void DeviceButton::setColorNormal(const QString &colorNormal)
|
||||
}
|
||||
}
|
||||
|
||||
QString DeviceButton::getColorAlarm() const
|
||||
{
|
||||
return this->colorAlarm;
|
||||
}
|
||||
|
||||
void DeviceButton::setColorAlarm(const QString &colorAlarm)
|
||||
{
|
||||
if (this->colorAlarm != colorAlarm) {
|
||||
@@ -195,6 +185,11 @@ void DeviceButton::setColorAlarm(const QString &colorAlarm)
|
||||
}
|
||||
}
|
||||
|
||||
DeviceButton::ButtonStyle DeviceButton::getButtonStyle() const
|
||||
{
|
||||
return this->buttonStyle;
|
||||
}
|
||||
|
||||
void DeviceButton::setButtonStyle(const DeviceButton::ButtonStyle &buttonStyle)
|
||||
{
|
||||
this->buttonStyle = buttonStyle;
|
||||
@@ -217,6 +212,11 @@ void DeviceButton::setButtonStyle(const DeviceButton::ButtonStyle &buttonStyle)
|
||||
setButtonColor(buttonColor);
|
||||
}
|
||||
|
||||
DeviceButton::ButtonColor DeviceButton::getButtonColor() const
|
||||
{
|
||||
return this->buttonColor;
|
||||
}
|
||||
|
||||
void DeviceButton::setButtonColor(const DeviceButton::ButtonColor &buttonColor)
|
||||
{
|
||||
//先停止定时器
|
||||
|
||||
Reference in New Issue
Block a user