更新文档
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) {
|
||||
|
||||
Reference in New Issue
Block a user