更新文档
This commit is contained in:
@@ -249,136 +249,6 @@ void NavButton::drawTriangle(QPainter *painter)
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
int NavButton::getPaddingLeft() const
|
||||
{
|
||||
return this->paddingLeft;
|
||||
}
|
||||
|
||||
int NavButton::getPaddingRight() const
|
||||
{
|
||||
return this->paddingRight;
|
||||
}
|
||||
|
||||
int NavButton::getPaddingTop() const
|
||||
{
|
||||
return this->paddingTop;
|
||||
}
|
||||
|
||||
int NavButton::getPaddingBottom() const
|
||||
{
|
||||
return this->paddingBottom;
|
||||
}
|
||||
|
||||
NavButton::TextAlign NavButton::getTextAlign() const
|
||||
{
|
||||
return this->textAlign;
|
||||
}
|
||||
|
||||
bool NavButton::getShowTriangle() const
|
||||
{
|
||||
return this->showTriangle;
|
||||
}
|
||||
|
||||
int NavButton::getTriangleLen() const
|
||||
{
|
||||
return this->triangleLen;
|
||||
}
|
||||
|
||||
NavButton::TrianglePosition NavButton::getTrianglePosition() const
|
||||
{
|
||||
return this->trianglePosition;
|
||||
}
|
||||
|
||||
QColor NavButton::getTriangleColor() const
|
||||
{
|
||||
return this->triangleColor;
|
||||
}
|
||||
|
||||
bool NavButton::getShowIcon() const
|
||||
{
|
||||
return this->showIcon;
|
||||
}
|
||||
|
||||
int NavButton::getIconSpace() const
|
||||
{
|
||||
return this->iconSpace;
|
||||
}
|
||||
|
||||
QSize NavButton::getIconSize() const
|
||||
{
|
||||
return this->iconSize;
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconNormal() const
|
||||
{
|
||||
return this->iconNormal;
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconHover() const
|
||||
{
|
||||
return this->iconHover;
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconCheck() const
|
||||
{
|
||||
return this->iconCheck;
|
||||
}
|
||||
|
||||
bool NavButton::getShowLine() const
|
||||
{
|
||||
return this->showLine;
|
||||
}
|
||||
|
||||
int NavButton::getLineSpace() const
|
||||
{
|
||||
return this->lineSpace;
|
||||
}
|
||||
|
||||
int NavButton::getLineWidth() const
|
||||
{
|
||||
return this->lineWidth;
|
||||
}
|
||||
|
||||
NavButton::LinePosition NavButton::getLinePosition() const
|
||||
{
|
||||
return this->linePosition;
|
||||
}
|
||||
|
||||
QColor NavButton::getLineColor() const
|
||||
{
|
||||
return this->lineColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getNormalBgColor() const
|
||||
{
|
||||
return this->normalBgColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getHoverBgColor() const
|
||||
{
|
||||
return this->hoverBgColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getCheckBgColor() const
|
||||
{
|
||||
return this->checkBgColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getNormalTextColor() const
|
||||
{
|
||||
return this->normalTextColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getHoverTextColor() const
|
||||
{
|
||||
return this->hoverTextColor;
|
||||
}
|
||||
|
||||
QColor NavButton::getCheckTextColor() const
|
||||
{
|
||||
return this->checkTextColor;
|
||||
}
|
||||
|
||||
QSize NavButton::sizeHint() const
|
||||
{
|
||||
return QSize(100, 30);
|
||||
@@ -389,6 +259,11 @@ QSize NavButton::minimumSizeHint() const
|
||||
return QSize(20, 10);
|
||||
}
|
||||
|
||||
int NavButton::getPaddingLeft() const
|
||||
{
|
||||
return this->paddingLeft;
|
||||
}
|
||||
|
||||
void NavButton::setPaddingLeft(int paddingLeft)
|
||||
{
|
||||
if (this->paddingLeft != paddingLeft) {
|
||||
@@ -397,6 +272,11 @@ void NavButton::setPaddingLeft(int paddingLeft)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getPaddingRight() const
|
||||
{
|
||||
return this->paddingRight;
|
||||
}
|
||||
|
||||
void NavButton::setPaddingRight(int paddingRight)
|
||||
{
|
||||
if (this->paddingRight != paddingRight) {
|
||||
@@ -405,6 +285,11 @@ void NavButton::setPaddingRight(int paddingRight)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getPaddingTop() const
|
||||
{
|
||||
return this->paddingTop;
|
||||
}
|
||||
|
||||
void NavButton::setPaddingTop(int paddingTop)
|
||||
{
|
||||
if (this->paddingTop != paddingTop) {
|
||||
@@ -413,6 +298,11 @@ void NavButton::setPaddingTop(int paddingTop)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getPaddingBottom() const
|
||||
{
|
||||
return this->paddingBottom;
|
||||
}
|
||||
|
||||
void NavButton::setPaddingBottom(int paddingBottom)
|
||||
{
|
||||
if (this->paddingBottom != paddingBottom) {
|
||||
@@ -435,6 +325,11 @@ void NavButton::setPadding(int paddingLeft, int paddingRight, int paddingTop, in
|
||||
this->update();
|
||||
}
|
||||
|
||||
NavButton::TextAlign NavButton::getTextAlign() const
|
||||
{
|
||||
return this->textAlign;
|
||||
}
|
||||
|
||||
void NavButton::setTextAlign(const NavButton::TextAlign &textAlign)
|
||||
{
|
||||
if (this->textAlign != textAlign) {
|
||||
@@ -443,6 +338,11 @@ void NavButton::setTextAlign(const NavButton::TextAlign &textAlign)
|
||||
}
|
||||
}
|
||||
|
||||
bool NavButton::getShowTriangle() const
|
||||
{
|
||||
return this->showTriangle;
|
||||
}
|
||||
|
||||
void NavButton::setShowTriangle(bool showTriangle)
|
||||
{
|
||||
if (this->showTriangle != showTriangle) {
|
||||
@@ -451,6 +351,11 @@ void NavButton::setShowTriangle(bool showTriangle)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getTriangleLen() const
|
||||
{
|
||||
return this->triangleLen;
|
||||
}
|
||||
|
||||
void NavButton::setTriangleLen(int triangleLen)
|
||||
{
|
||||
if (this->triangleLen != triangleLen) {
|
||||
@@ -459,6 +364,11 @@ void NavButton::setTriangleLen(int triangleLen)
|
||||
}
|
||||
}
|
||||
|
||||
NavButton::TrianglePosition NavButton::getTrianglePosition() const
|
||||
{
|
||||
return this->trianglePosition;
|
||||
}
|
||||
|
||||
void NavButton::setTrianglePosition(const NavButton::TrianglePosition &trianglePosition)
|
||||
{
|
||||
if (this->trianglePosition != trianglePosition) {
|
||||
@@ -467,6 +377,11 @@ void NavButton::setTrianglePosition(const NavButton::TrianglePosition &triangleP
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getTriangleColor() const
|
||||
{
|
||||
return this->triangleColor;
|
||||
}
|
||||
|
||||
void NavButton::setTriangleColor(const QColor &triangleColor)
|
||||
{
|
||||
if (this->triangleColor != triangleColor) {
|
||||
@@ -475,6 +390,11 @@ void NavButton::setTriangleColor(const QColor &triangleColor)
|
||||
}
|
||||
}
|
||||
|
||||
bool NavButton::getShowIcon() const
|
||||
{
|
||||
return this->showIcon;
|
||||
}
|
||||
|
||||
void NavButton::setShowIcon(bool showIcon)
|
||||
{
|
||||
if (this->showIcon != showIcon) {
|
||||
@@ -483,6 +403,11 @@ void NavButton::setShowIcon(bool showIcon)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getIconSpace() const
|
||||
{
|
||||
return this->iconSpace;
|
||||
}
|
||||
|
||||
void NavButton::setIconSpace(int iconSpace)
|
||||
{
|
||||
if (this->iconSpace != iconSpace) {
|
||||
@@ -491,6 +416,11 @@ void NavButton::setIconSpace(int iconSpace)
|
||||
}
|
||||
}
|
||||
|
||||
QSize NavButton::getIconSize() const
|
||||
{
|
||||
return this->iconSize;
|
||||
}
|
||||
|
||||
void NavButton::setIconSize(const QSize &iconSize)
|
||||
{
|
||||
if (this->iconSize != iconSize) {
|
||||
@@ -499,24 +429,44 @@ void NavButton::setIconSize(const QSize &iconSize)
|
||||
}
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconNormal() const
|
||||
{
|
||||
return this->iconNormal;
|
||||
}
|
||||
|
||||
void NavButton::setIconNormal(const QPixmap &iconNormal)
|
||||
{
|
||||
this->iconNormal = iconNormal;
|
||||
this->update();
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconHover() const
|
||||
{
|
||||
return this->iconHover;
|
||||
}
|
||||
|
||||
void NavButton::setIconHover(const QPixmap &iconHover)
|
||||
{
|
||||
this->iconHover = iconHover;
|
||||
this->update();
|
||||
}
|
||||
|
||||
QPixmap NavButton::getIconCheck() const
|
||||
{
|
||||
return this->iconCheck;
|
||||
}
|
||||
|
||||
void NavButton::setIconCheck(const QPixmap &iconCheck)
|
||||
{
|
||||
this->iconCheck = iconCheck;
|
||||
this->update();
|
||||
}
|
||||
|
||||
bool NavButton::getShowLine() const
|
||||
{
|
||||
return this->showLine;
|
||||
}
|
||||
|
||||
void NavButton::setShowLine(bool showLine)
|
||||
{
|
||||
if (this->showLine != showLine) {
|
||||
@@ -525,6 +475,11 @@ void NavButton::setShowLine(bool showLine)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getLineSpace() const
|
||||
{
|
||||
return this->lineSpace;
|
||||
}
|
||||
|
||||
void NavButton::setLineSpace(int lineSpace)
|
||||
{
|
||||
if (this->lineSpace != lineSpace) {
|
||||
@@ -533,6 +488,11 @@ void NavButton::setLineSpace(int lineSpace)
|
||||
}
|
||||
}
|
||||
|
||||
int NavButton::getLineWidth() const
|
||||
{
|
||||
return this->lineWidth;
|
||||
}
|
||||
|
||||
void NavButton::setLineWidth(int lineWidth)
|
||||
{
|
||||
if (this->lineWidth != lineWidth) {
|
||||
@@ -541,6 +501,11 @@ void NavButton::setLineWidth(int lineWidth)
|
||||
}
|
||||
}
|
||||
|
||||
NavButton::LinePosition NavButton::getLinePosition() const
|
||||
{
|
||||
return this->linePosition;
|
||||
}
|
||||
|
||||
void NavButton::setLinePosition(const NavButton::LinePosition &linePosition)
|
||||
{
|
||||
if (this->linePosition != linePosition) {
|
||||
@@ -549,6 +514,11 @@ void NavButton::setLinePosition(const NavButton::LinePosition &linePosition)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getLineColor() const
|
||||
{
|
||||
return this->lineColor;
|
||||
}
|
||||
|
||||
void NavButton::setLineColor(const QColor &lineColor)
|
||||
{
|
||||
if (this->lineColor != lineColor) {
|
||||
@@ -557,6 +527,11 @@ void NavButton::setLineColor(const QColor &lineColor)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getNormalBgColor() const
|
||||
{
|
||||
return this->normalBgColor;
|
||||
}
|
||||
|
||||
void NavButton::setNormalBgColor(const QColor &normalBgColor)
|
||||
{
|
||||
if (this->normalBgColor != normalBgColor) {
|
||||
@@ -565,6 +540,11 @@ void NavButton::setNormalBgColor(const QColor &normalBgColor)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getHoverBgColor() const
|
||||
{
|
||||
return this->hoverBgColor;
|
||||
}
|
||||
|
||||
void NavButton::setHoverBgColor(const QColor &hoverBgColor)
|
||||
{
|
||||
if (this->hoverBgColor != hoverBgColor) {
|
||||
@@ -573,6 +553,11 @@ void NavButton::setHoverBgColor(const QColor &hoverBgColor)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getCheckBgColor() const
|
||||
{
|
||||
return this->checkBgColor;
|
||||
}
|
||||
|
||||
void NavButton::setCheckBgColor(const QColor &checkBgColor)
|
||||
{
|
||||
if (this->checkBgColor != checkBgColor) {
|
||||
@@ -581,6 +566,11 @@ void NavButton::setCheckBgColor(const QColor &checkBgColor)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getNormalTextColor() const
|
||||
{
|
||||
return this->normalTextColor;
|
||||
}
|
||||
|
||||
void NavButton::setNormalTextColor(const QColor &normalTextColor)
|
||||
{
|
||||
if (this->normalTextColor != normalTextColor) {
|
||||
@@ -589,6 +579,12 @@ void NavButton::setNormalTextColor(const QColor &normalTextColor)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QColor NavButton::getHoverTextColor() const
|
||||
{
|
||||
return this->hoverTextColor;
|
||||
}
|
||||
|
||||
void NavButton::setHoverTextColor(const QColor &hoverTextColor)
|
||||
{
|
||||
if (this->hoverTextColor != hoverTextColor) {
|
||||
@@ -597,6 +593,11 @@ void NavButton::setHoverTextColor(const QColor &hoverTextColor)
|
||||
}
|
||||
}
|
||||
|
||||
QColor NavButton::getCheckTextColor() const
|
||||
{
|
||||
return this->checkTextColor;
|
||||
}
|
||||
|
||||
void NavButton::setCheckTextColor(const QColor &checkTextColor)
|
||||
{
|
||||
if (this->checkTextColor != checkTextColor) {
|
||||
|
||||
@@ -102,135 +102,154 @@ protected:
|
||||
void drawTriangle(QPainter *painter);
|
||||
|
||||
private:
|
||||
int paddingLeft; //文字左侧间隔
|
||||
int paddingRight; //文字右侧间隔
|
||||
int paddingTop; //文字顶部间隔
|
||||
int paddingBottom; //文字底部间隔
|
||||
TextAlign textAlign; //文字对齐
|
||||
int paddingLeft; //文字左侧间隔
|
||||
int paddingRight; //文字右侧间隔
|
||||
int paddingTop; //文字顶部间隔
|
||||
int paddingBottom; //文字底部间隔
|
||||
TextAlign textAlign; //文字对齐
|
||||
|
||||
bool showTriangle; //显示倒三角
|
||||
int triangleLen; //倒三角边长
|
||||
TrianglePosition trianglePosition; //倒三角位置
|
||||
QColor triangleColor; //倒三角颜色
|
||||
bool showTriangle; //显示倒三角
|
||||
int triangleLen; //倒三角边长
|
||||
TrianglePosition trianglePosition;//倒三角位置
|
||||
QColor triangleColor; //倒三角颜色
|
||||
|
||||
bool showIcon; //显示图标
|
||||
int iconSpace; //图标间隔
|
||||
QSize iconSize; //图标尺寸
|
||||
QPixmap iconNormal; //正常图标
|
||||
QPixmap iconHover; //悬停图标
|
||||
QPixmap iconCheck; //选中图标
|
||||
bool showIcon; //显示图标
|
||||
int iconSpace; //图标间隔
|
||||
QSize iconSize; //图标尺寸
|
||||
QPixmap iconNormal; //正常图标
|
||||
QPixmap iconHover; //悬停图标
|
||||
QPixmap iconCheck; //选中图标
|
||||
|
||||
bool showLine; //显示线条
|
||||
int lineSpace; //线条间隔
|
||||
int lineWidth; //线条宽度
|
||||
LinePosition linePosition; //线条位置
|
||||
QColor lineColor; //线条颜色
|
||||
bool showLine; //显示线条
|
||||
int lineSpace; //线条间隔
|
||||
int lineWidth; //线条宽度
|
||||
LinePosition linePosition; //线条位置
|
||||
QColor lineColor; //线条颜色
|
||||
|
||||
QColor normalBgColor; //正常背景颜色
|
||||
QColor hoverBgColor; //悬停背景颜色
|
||||
QColor checkBgColor; //选中背景颜色
|
||||
QColor normalTextColor; //正常文字颜色
|
||||
QColor hoverTextColor; //悬停文字颜色
|
||||
QColor checkTextColor; //选中文字颜色
|
||||
QColor normalBgColor; //正常背景颜色
|
||||
QColor hoverBgColor; //悬停背景颜色
|
||||
QColor checkBgColor; //选中背景颜色
|
||||
QColor normalTextColor; //正常文字颜色
|
||||
QColor hoverTextColor; //悬停文字颜色
|
||||
QColor checkTextColor; //选中文字颜色
|
||||
|
||||
QBrush normalBgBrush; //正常背景画刷
|
||||
QBrush hoverBgBrush; //悬停背景画刷
|
||||
QBrush checkBgBrush; //选中背景画刷
|
||||
QBrush normalBgBrush; //正常背景画刷
|
||||
QBrush hoverBgBrush; //悬停背景画刷
|
||||
QBrush checkBgBrush; //选中背景画刷
|
||||
|
||||
bool hover; //悬停标志位
|
||||
bool hover; //悬停标志位
|
||||
|
||||
public:
|
||||
int getPaddingLeft() const;
|
||||
int getPaddingRight() const;
|
||||
int getPaddingTop() const;
|
||||
int getPaddingBottom() const;
|
||||
TextAlign getTextAlign() const;
|
||||
//默认尺寸和最小尺寸
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
bool getShowTriangle() const;
|
||||
int getTriangleLen() const;
|
||||
TrianglePosition getTrianglePosition()const;
|
||||
QColor getTriangleColor() const;
|
||||
|
||||
bool getShowIcon() const;
|
||||
int getIconSpace() const;
|
||||
QSize getIconSize() const;
|
||||
QPixmap getIconNormal() const;
|
||||
QPixmap getIconHover() const;
|
||||
QPixmap getIconCheck() const;
|
||||
|
||||
bool getShowLine() const;
|
||||
int getLineSpace() const;
|
||||
int getLineWidth() const;
|
||||
LinePosition getLinePosition() const;
|
||||
QColor getLineColor() const;
|
||||
|
||||
QColor getNormalBgColor() const;
|
||||
QColor getHoverBgColor() const;
|
||||
QColor getCheckBgColor() const;
|
||||
QColor getNormalTextColor() const;
|
||||
QColor getHoverTextColor() const;
|
||||
QColor getCheckTextColor() const;
|
||||
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
//设置文字间隔
|
||||
//获取和设置文字左侧间隔
|
||||
int getPaddingLeft() const;
|
||||
void setPaddingLeft(int paddingLeft);
|
||||
|
||||
//获取和设置文字左侧间隔
|
||||
int getPaddingRight() const;
|
||||
void setPaddingRight(int paddingRight);
|
||||
|
||||
//获取和设置文字顶部间隔
|
||||
int getPaddingTop() const;
|
||||
void setPaddingTop(int paddingTop);
|
||||
|
||||
//获取和设置文字底部间隔
|
||||
int getPaddingBottom() const;
|
||||
void setPaddingBottom(int paddingBottom);
|
||||
|
||||
//设置边距
|
||||
void setPadding(int padding);
|
||||
void setPadding(int paddingLeft, int paddingRight, int paddingTop, int paddingBottom);
|
||||
|
||||
//设置文字对齐
|
||||
//获取和设置文字对齐
|
||||
TextAlign getTextAlign() const;
|
||||
void setTextAlign(const TextAlign &textAlign);
|
||||
|
||||
//设置显示倒三角
|
||||
//获取和设置显示倒三角
|
||||
bool getShowTriangle() const;
|
||||
void setShowTriangle(bool showTriangle);
|
||||
//设置倒三角边长
|
||||
|
||||
//获取和设置倒三角边长
|
||||
int getTriangleLen() const;
|
||||
void setTriangleLen(int triangleLen);
|
||||
//设置倒三角位置
|
||||
|
||||
//获取和设置倒三角位置
|
||||
TrianglePosition getTrianglePosition() const;
|
||||
void setTrianglePosition(const TrianglePosition &trianglePosition);
|
||||
//设置倒三角颜色
|
||||
|
||||
//获取和设置倒三角颜色
|
||||
QColor getTriangleColor() const;
|
||||
void setTriangleColor(const QColor &triangleColor);
|
||||
|
||||
//设置显示图标
|
||||
//获取和设置显示图标
|
||||
bool getShowIcon() const;
|
||||
void setShowIcon(bool showIcon);
|
||||
//设置图标间隔
|
||||
|
||||
//获取和设置图标间隔
|
||||
int getIconSpace() const;
|
||||
void setIconSpace(int iconSpace);
|
||||
//设置图标尺寸
|
||||
|
||||
//获取和设置图标尺寸
|
||||
QSize getIconSize() const;
|
||||
void setIconSize(const QSize &iconSize);
|
||||
//设置正常图标
|
||||
|
||||
//获取和设置正常图标
|
||||
QPixmap getIconNormal() const;
|
||||
void setIconNormal(const QPixmap &iconNormal);
|
||||
//设置悬停图标
|
||||
|
||||
//获取和设置悬停图标
|
||||
QPixmap getIconHover() const;
|
||||
void setIconHover(const QPixmap &iconHover);
|
||||
//设置按下图标
|
||||
|
||||
//获取和设置按下图标
|
||||
QPixmap getIconCheck() const;
|
||||
void setIconCheck(const QPixmap &iconCheck);
|
||||
|
||||
//设置显示线条
|
||||
//获取和设置显示线条
|
||||
bool getShowLine() const;
|
||||
void setShowLine(bool showLine);
|
||||
//设置线条间隔
|
||||
|
||||
//获取和设置线条间隔
|
||||
int getLineSpace() const;
|
||||
void setLineSpace(int lineSpace);
|
||||
//设置线条宽度
|
||||
|
||||
//获取和设置线条宽度
|
||||
int getLineWidth() const;
|
||||
void setLineWidth(int lineWidth);
|
||||
//设置线条位置
|
||||
|
||||
//获取和设置线条位置
|
||||
LinePosition getLinePosition() const;
|
||||
void setLinePosition(const LinePosition &linePosition);
|
||||
//设置线条颜色
|
||||
|
||||
//获取和设置线条颜色
|
||||
QColor getLineColor() const;
|
||||
void setLineColor(const QColor &lineColor);
|
||||
|
||||
//设置正常背景颜色
|
||||
//获取和设置正常背景颜色
|
||||
QColor getNormalBgColor() const;
|
||||
void setNormalBgColor(const QColor &normalBgColor);
|
||||
//设置悬停背景颜色
|
||||
|
||||
//获取和设置悬停背景颜色
|
||||
QColor getHoverBgColor() const;
|
||||
void setHoverBgColor(const QColor &hoverBgColor);
|
||||
//设置选中背景颜色
|
||||
|
||||
//获取和设置选中背景颜色
|
||||
QColor getCheckBgColor() const;
|
||||
void setCheckBgColor(const QColor &checkBgColor);
|
||||
|
||||
//设置正常文字颜色
|
||||
//获取和设置正常文字颜色
|
||||
QColor getNormalTextColor() const;
|
||||
void setNormalTextColor(const QColor &normalTextColor);
|
||||
//设置悬停文字颜色
|
||||
|
||||
//获取和设置悬停文字颜色
|
||||
QColor getHoverTextColor() const;
|
||||
void setHoverTextColor(const QColor &hoverTextColor);
|
||||
//设置选中文字颜色
|
||||
|
||||
//获取和设置选中文字颜色
|
||||
QColor getCheckTextColor() const;
|
||||
void setCheckTextColor(const QColor &checkTextColor);
|
||||
|
||||
//设置正常背景画刷
|
||||
@@ -239,7 +258,6 @@ public Q_SLOTS:
|
||||
void setHoverBgBrush(const QBrush &hoverBgBrush);
|
||||
//设置选中背景画刷
|
||||
void setCheckBgBrush(const QBrush &checkBgBrush);
|
||||
|
||||
};
|
||||
|
||||
#endif // NAVBUTTON_H
|
||||
|
||||
Reference in New Issue
Block a user