更新文档

This commit is contained in:
feiyangqingyun
2023-09-08 13:52:30 +08:00
parent 9af16093a2
commit 8173abef29
39 changed files with 1556 additions and 1464 deletions

View File

@@ -185,71 +185,6 @@ void LightButton::drawOverlay(QPainter *painter)
painter->restore();
}
QString LightButton::getText() const
{
return this->text;
}
QColor LightButton::getTextColor() const
{
return this->textColor;
}
QColor LightButton::getAlarmColor() const
{
return this->alarmColor;
}
QColor LightButton::getNormalColor() const
{
return this->normalColor;
}
QColor LightButton::getBorderOutColorStart() const
{
return this->borderOutColorStart;
}
QColor LightButton::getBorderOutColorEnd() const
{
return this->borderOutColorEnd;
}
QColor LightButton::getBorderInColorStart() const
{
return this->borderInColorStart;
}
QColor LightButton::getBorderInColorEnd() const
{
return this->borderInColorEnd;
}
QColor LightButton::getBgColor() const
{
return this->bgColor;
}
bool LightButton::getCanMove() const
{
return this->canMove;
}
bool LightButton::getShowRect() const
{
return this->showRect;
}
bool LightButton::getShowOverlay() const
{
return this->showOverlay;
}
QColor LightButton::getOverlayColor() const
{
return this->overlayColor;
}
QSize LightButton::sizeHint() const
{
return QSize(100, 100);
@@ -260,6 +195,11 @@ QSize LightButton::minimumSizeHint() const
return QSize(10, 10);
}
QString LightButton::getText() const
{
return this->text;
}
void LightButton::setText(const QString &text)
{
if (this->text != text) {
@@ -268,6 +208,11 @@ void LightButton::setText(const QString &text)
}
}
QColor LightButton::getTextColor() const
{
return this->textColor;
}
void LightButton::setTextColor(const QColor &textColor)
{
if (this->textColor != textColor) {
@@ -276,6 +221,11 @@ void LightButton::setTextColor(const QColor &textColor)
}
}
QColor LightButton::getAlarmColor() const
{
return this->alarmColor;
}
void LightButton::setAlarmColor(const QColor &alarmColor)
{
if (this->alarmColor != alarmColor) {
@@ -284,6 +234,11 @@ void LightButton::setAlarmColor(const QColor &alarmColor)
}
}
QColor LightButton::getNormalColor() const
{
return this->normalColor;
}
void LightButton::setNormalColor(const QColor &normalColor)
{
if (this->normalColor != normalColor) {
@@ -292,6 +247,11 @@ void LightButton::setNormalColor(const QColor &normalColor)
}
}
QColor LightButton::getBorderOutColorStart() const
{
return this->borderOutColorStart;
}
void LightButton::setBorderOutColorStart(const QColor &borderOutColorStart)
{
if (this->borderOutColorStart != borderOutColorStart) {
@@ -300,6 +260,11 @@ void LightButton::setBorderOutColorStart(const QColor &borderOutColorStart)
}
}
QColor LightButton::getBorderOutColorEnd() const
{
return this->borderOutColorEnd;
}
void LightButton::setBorderOutColorEnd(const QColor &borderOutColorEnd)
{
if (this->borderOutColorEnd != borderOutColorEnd) {
@@ -308,6 +273,11 @@ void LightButton::setBorderOutColorEnd(const QColor &borderOutColorEnd)
}
}
QColor LightButton::getBorderInColorStart() const
{
return this->borderInColorStart;
}
void LightButton::setBorderInColorStart(const QColor &borderInColorStart)
{
if (this->borderInColorStart != borderInColorStart) {
@@ -316,6 +286,11 @@ void LightButton::setBorderInColorStart(const QColor &borderInColorStart)
}
}
QColor LightButton::getBorderInColorEnd() const
{
return this->borderInColorEnd;
}
void LightButton::setBorderInColorEnd(const QColor &borderInColorEnd)
{
if (this->borderInColorEnd != borderInColorEnd) {
@@ -324,6 +299,11 @@ void LightButton::setBorderInColorEnd(const QColor &borderInColorEnd)
}
}
QColor LightButton::getBgColor() const
{
return this->bgColor;
}
void LightButton::setBgColor(const QColor &bgColor)
{
if (this->bgColor != bgColor) {
@@ -332,6 +312,11 @@ void LightButton::setBgColor(const QColor &bgColor)
}
}
bool LightButton::getCanMove() const
{
return this->canMove;
}
void LightButton::setCanMove(bool canMove)
{
if (this->canMove != canMove) {
@@ -340,6 +325,11 @@ void LightButton::setCanMove(bool canMove)
}
}
bool LightButton::getShowRect() const
{
return this->showRect;
}
void LightButton::setShowRect(bool showRect)
{
if (this->showRect != showRect) {
@@ -348,6 +338,11 @@ void LightButton::setShowRect(bool showRect)
}
}
bool LightButton::getShowOverlay() const
{
return this->showOverlay;
}
void LightButton::setShowOverlay(bool showOverlay)
{
if (this->showOverlay != showOverlay) {
@@ -356,6 +351,11 @@ void LightButton::setShowOverlay(bool showOverlay)
}
}
QColor LightButton::getOverlayColor() const
{
return this->overlayColor;
}
void LightButton::setOverlayColor(const QColor &overlayColor)
{
if (this->overlayColor != overlayColor) {